From 8d5dd0e871939949ec9a61d704d98327810ac9e5 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sun, 20 Nov 2022 08:49:29 +0000 Subject: [PATCH 1/2] feat: add polling timeouts config for RevertInstance operation PiperOrigin-RevId: 489758239 Source-Link: https://github.com/googleapis/googleapis/commit/9de27c9c549173eac194ec80153963234a05a8b5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/bc6f9be813dca095c8867b4bb2e8eb736e9c0f91 Copy-Tag: eyJwIjoiamF2YS1maWxlc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6ImJjNmY5YmU4MTNkY2EwOTVjODg2N2I0YmIyZThlYjczNmU5YzBmOTEifQ== --- .../v1/CloudFilestoreManagerGrpc.java | 1602 --------- .../v1beta1/CloudFilestoreManagerGrpc.java | 2912 ----------------- .../common/OperationMetadataOuterClass.java | 88 - .../v1/CloudFilestoreServiceProto.java | 515 --- .../v1/DeleteBackupRequestOrBuilder.java | 56 - .../v1/DeleteInstanceRequestOrBuilder.java | 56 - .../v1/GetBackupRequestOrBuilder.java | 56 - .../v1/GetInstanceRequestOrBuilder.java | 56 - .../common/OperationMetadataOuterClass.java | 88 - .../v1beta1/CloudFilestoreServiceProto.java | 888 ----- .../v1beta1/DeleteBackupRequestOrBuilder.java | 56 - .../v1beta1/DeleteShareRequestOrBuilder.java | 56 - .../DeleteSnapshotRequestOrBuilder.java | 56 - .../v1beta1/GetBackupRequestOrBuilder.java | 56 - .../v1beta1/GetInstanceRequestOrBuilder.java | 56 - .../v1beta1/GetShareRequestOrBuilder.java | 56 - .../v1beta1/GetSnapshotRequestOrBuilder.java | 56 - .../v1/CloudFilestoreManagerClient.java | 0 .../v1/CloudFilestoreManagerSettings.java | 1 + .../cloud/filestore/v1/gapic_metadata.json | 0 .../cloud/filestore/v1/package-info.java | 0 .../v1/stub/CloudFilestoreManagerStub.java | 0 .../CloudFilestoreManagerStubSettings.java | 0 ...cCloudFilestoreManagerCallableFactory.java | 0 .../stub/GrpcCloudFilestoreManagerStub.java | 1 + ...nCloudFilestoreManagerCallableFactory.java | 0 .../HttpJsonCloudFilestoreManagerStub.java | 1 + ...oudFilestoreManagerClientHttpJsonTest.java | 0 .../v1/CloudFilestoreManagerClientTest.java | 0 .../v1/MockCloudFilestoreManager.java | 0 .../v1/MockCloudFilestoreManagerImpl.java | 0 .../v1/CloudFilestoreManagerGrpc.java | 1270 +++++++ .../cloud/common/OperationMetadata.java | 838 ++--- .../common/OperationMetadataOrBuilder.java | 91 +- .../common/OperationMetadataOuterClass.java | 67 + .../com/google/cloud/filestore/v1/Backup.java | 1444 ++++---- .../google/cloud/filestore/v1/BackupName.java | 0 .../cloud/filestore/v1/BackupOrBuilder.java | 159 +- .../v1/CloudFilestoreServiceProto.java | 460 +++ .../filestore/v1/CreateBackupRequest.java | 549 ++-- .../v1/CreateBackupRequestOrBuilder.java | 61 +- .../filestore/v1/CreateInstanceRequest.java | 565 ++-- .../v1/CreateInstanceRequestOrBuilder.java | 64 +- .../filestore/v1/DeleteBackupRequest.java | 355 +- .../v1/DeleteBackupRequestOrBuilder.java | 31 + .../filestore/v1/DeleteInstanceRequest.java | 355 +- .../v1/DeleteInstanceRequestOrBuilder.java | 31 + .../cloud/filestore/v1/FileShareConfig.java | 624 ++-- .../v1/FileShareConfigOrBuilder.java | 60 +- .../cloud/filestore/v1/GetBackupRequest.java | 348 +- .../v1/GetBackupRequestOrBuilder.java | 31 + .../filestore/v1/GetInstanceRequest.java | 355 +- .../v1/GetInstanceRequestOrBuilder.java | 31 + .../google/cloud/filestore/v1/Instance.java | 1701 ++++------ .../cloud/filestore/v1/InstanceName.java | 0 .../cloud/filestore/v1/InstanceOrBuilder.java | 178 +- .../filestore/v1/ListBackupsRequest.java | 619 ++-- .../v1/ListBackupsRequestOrBuilder.java | 65 +- .../filestore/v1/ListBackupsResponse.java | 588 ++-- .../v1/ListBackupsResponseOrBuilder.java | 64 +- .../filestore/v1/ListInstancesRequest.java | 619 ++-- .../v1/ListInstancesRequestOrBuilder.java | 65 +- .../filestore/v1/ListInstancesResponse.java | 589 ++-- .../v1/ListInstancesResponseOrBuilder.java | 63 +- .../cloud/filestore/v1/LocationName.java | 0 .../cloud/filestore/v1/NetworkConfig.java | 695 ++-- .../filestore/v1/NetworkConfigOrBuilder.java | 72 +- .../cloud/filestore/v1/NfsExportOptions.java | 696 ++-- .../v1/NfsExportOptionsOrBuilder.java | 54 +- .../filestore/v1/RestoreInstanceRequest.java | 563 ++-- .../v1/RestoreInstanceRequestOrBuilder.java | 56 +- .../filestore/v1/UpdateBackupRequest.java | 491 ++- .../v1/UpdateBackupRequestOrBuilder.java | 52 +- .../filestore/v1/UpdateInstanceRequest.java | 419 +-- .../v1/UpdateInstanceRequestOrBuilder.java | 34 +- .../v1/cloud_filestore_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbackup/AsyncCreateBackup.java | 0 .../createbackup/AsyncCreateBackupLRO.java | 0 .../createbackup/SyncCreateBackup.java | 0 ...cCreateBackupLocationnameBackupString.java | 0 .../SyncCreateBackupStringBackupString.java | 0 .../createinstance/AsyncCreateInstance.java | 0 .../AsyncCreateInstanceLRO.java | 0 .../createinstance/SyncCreateInstance.java | 0 ...ateInstanceLocationnameInstanceString.java | 0 ...yncCreateInstanceStringInstanceString.java | 0 .../deletebackup/AsyncDeleteBackup.java | 0 .../deletebackup/AsyncDeleteBackupLRO.java | 0 .../deletebackup/SyncDeleteBackup.java | 0 .../SyncDeleteBackupBackupname.java | 0 .../deletebackup/SyncDeleteBackupString.java | 0 .../deleteinstance/AsyncDeleteInstance.java | 0 .../AsyncDeleteInstanceLRO.java | 0 .../deleteinstance/SyncDeleteInstance.java | 0 .../SyncDeleteInstanceInstancename.java | 0 .../SyncDeleteInstanceString.java | 0 .../getbackup/AsyncGetBackup.java | 0 .../getbackup/SyncGetBackup.java | 0 .../getbackup/SyncGetBackupBackupname.java | 0 .../getbackup/SyncGetBackupString.java | 0 .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../listbackups/AsyncListBackups.java | 0 .../listbackups/AsyncListBackupsPaged.java | 0 .../listbackups/SyncListBackups.java | 0 .../SyncListBackupsLocationname.java | 0 .../listbackups/SyncListBackupsString.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../restoreinstance/AsyncRestoreInstance.java | 0 .../AsyncRestoreInstanceLRO.java | 0 .../restoreinstance/SyncRestoreInstance.java | 0 .../updatebackup/AsyncUpdateBackup.java | 0 .../updatebackup/AsyncUpdateBackupLRO.java | 0 .../updatebackup/SyncUpdateBackup.java | 0 .../SyncUpdateBackupBackupFieldmask.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceInstanceFieldmask.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../v1beta1/CloudFilestoreManagerClient.java | 0 .../CloudFilestoreManagerSettings.java | 1 + .../filestore/v1beta1/gapic_metadata.json | 0 .../cloud/filestore/v1beta1/package-info.java | 0 .../stub/CloudFilestoreManagerStub.java | 0 .../CloudFilestoreManagerStubSettings.java | 6 +- ...cCloudFilestoreManagerCallableFactory.java | 0 .../stub/GrpcCloudFilestoreManagerStub.java | 1 + ...nCloudFilestoreManagerCallableFactory.java | 0 .../HttpJsonCloudFilestoreManagerStub.java | 1 + ...oudFilestoreManagerClientHttpJsonTest.java | 0 .../CloudFilestoreManagerClientTest.java | 0 .../v1beta1/MockCloudFilestoreManager.java | 0 .../MockCloudFilestoreManagerImpl.java | 0 .../v1beta1/CloudFilestoreManagerGrpc.java | 2235 +++++++++++++ .../cloud/common/OperationMetadata.java | 838 ++--- .../common/OperationMetadataOrBuilder.java | 91 +- .../common/OperationMetadataOuterClass.java | 67 + .../cloud/filestore/v1beta1/Backup.java | 1534 ++++----- .../cloud/filestore/v1beta1/BackupName.java | 0 .../filestore/v1beta1/BackupOrBuilder.java | 168 +- .../v1beta1/CloudFilestoreServiceProto.java | 801 +++++ .../v1beta1/CreateBackupRequest.java | 568 ++-- .../v1beta1/CreateBackupRequestOrBuilder.java | 64 +- .../v1beta1/CreateInstanceRequest.java | 565 ++-- .../CreateInstanceRequestOrBuilder.java | 64 +- .../filestore/v1beta1/CreateShareRequest.java | 564 ++-- .../v1beta1/CreateShareRequestOrBuilder.java | 64 +- .../v1beta1/CreateSnapshotRequest.java | 565 ++-- .../CreateSnapshotRequestOrBuilder.java | 64 +- .../v1beta1/DeleteBackupRequest.java | 358 +- .../v1beta1/DeleteBackupRequestOrBuilder.java | 31 + .../v1beta1/DeleteInstanceRequest.java | 396 +-- .../DeleteInstanceRequestOrBuilder.java | 38 +- .../filestore/v1beta1/DeleteShareRequest.java | 358 +- .../v1beta1/DeleteShareRequestOrBuilder.java | 31 + .../v1beta1/DeleteSnapshotRequest.java | 358 +- .../DeleteSnapshotRequestOrBuilder.java | 31 + .../filestore/v1beta1/FileShareConfig.java | 697 ++-- .../v1beta1/FileShareConfigOrBuilder.java | 57 +- .../filestore/v1beta1/GetBackupRequest.java | 355 +- .../v1beta1/GetBackupRequestOrBuilder.java | 31 + .../filestore/v1beta1/GetInstanceRequest.java | 358 +- .../v1beta1/GetInstanceRequestOrBuilder.java | 31 + .../filestore/v1beta1/GetShareRequest.java | 355 +- .../v1beta1/GetShareRequestOrBuilder.java | 31 + .../filestore/v1beta1/GetSnapshotRequest.java | 358 +- .../v1beta1/GetSnapshotRequestOrBuilder.java | 31 + .../cloud/filestore/v1beta1/Instance.java | 2287 +++++-------- .../cloud/filestore/v1beta1/InstanceName.java | 0 .../filestore/v1beta1/InstanceOrBuilder.java | 243 +- .../filestore/v1beta1/ListBackupsRequest.java | 622 ++-- .../v1beta1/ListBackupsRequestOrBuilder.java | 65 +- .../v1beta1/ListBackupsResponse.java | 592 ++-- .../v1beta1/ListBackupsResponseOrBuilder.java | 63 +- .../v1beta1/ListInstancesRequest.java | 622 ++-- .../ListInstancesRequestOrBuilder.java | 65 +- .../v1beta1/ListInstancesResponse.java | 592 ++-- .../ListInstancesResponseOrBuilder.java | 63 +- .../filestore/v1beta1/ListSharesRequest.java | 619 ++-- .../v1beta1/ListSharesRequestOrBuilder.java | 65 +- .../filestore/v1beta1/ListSharesResponse.java | 591 ++-- .../v1beta1/ListSharesResponseOrBuilder.java | 63 +- .../v1beta1/ListSnapshotsRequest.java | 622 ++-- .../ListSnapshotsRequestOrBuilder.java | 65 +- .../v1beta1/ListSnapshotsResponse.java | 486 ++- .../ListSnapshotsResponseOrBuilder.java | 45 +- .../cloud/filestore/v1beta1/LocationName.java | 0 .../filestore/v1beta1/NetworkConfig.java | 847 ++--- .../v1beta1/NetworkConfigOrBuilder.java | 78 +- .../filestore/v1beta1/NfsExportOptions.java | 717 ++-- .../v1beta1/NfsExportOptionsOrBuilder.java | 54 +- .../v1beta1/RestoreInstanceRequest.java | 665 ++-- .../RestoreInstanceRequestOrBuilder.java | 68 +- .../v1beta1/RevertInstanceRequest.java | 437 ++- .../RevertInstanceRequestOrBuilder.java | 44 +- .../google/cloud/filestore/v1beta1/Share.java | 1259 +++---- .../cloud/filestore/v1beta1/ShareName.java | 0 .../filestore/v1beta1/ShareOrBuilder.java | 125 +- .../cloud/filestore/v1beta1/Snapshot.java | 983 +++--- .../cloud/filestore/v1beta1/SnapshotName.java | 0 .../filestore/v1beta1/SnapshotOrBuilder.java | 101 +- .../v1beta1/UpdateBackupRequest.java | 510 ++- .../v1beta1/UpdateBackupRequestOrBuilder.java | 55 +- .../v1beta1/UpdateInstanceRequest.java | 503 ++- .../UpdateInstanceRequestOrBuilder.java | 55 +- .../filestore/v1beta1/UpdateShareRequest.java | 502 ++- .../v1beta1/UpdateShareRequestOrBuilder.java | 55 +- .../v1beta1/UpdateSnapshotRequest.java | 507 ++- .../UpdateSnapshotRequestOrBuilder.java | 55 +- .../v1beta1/cloud_filestore_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbackup/AsyncCreateBackup.java | 0 .../createbackup/AsyncCreateBackupLRO.java | 0 .../createbackup/SyncCreateBackup.java | 0 ...cCreateBackupLocationnameBackupString.java | 0 .../SyncCreateBackupStringBackupString.java | 0 .../createinstance/AsyncCreateInstance.java | 0 .../AsyncCreateInstanceLRO.java | 0 .../createinstance/SyncCreateInstance.java | 0 ...ateInstanceLocationnameInstanceString.java | 0 ...yncCreateInstanceStringInstanceString.java | 0 .../createshare/AsyncCreateShare.java | 0 .../createshare/AsyncCreateShareLRO.java | 0 .../createshare/SyncCreateShare.java | 0 ...yncCreateShareInstancenameShareString.java | 0 .../SyncCreateShareStringShareString.java | 0 .../createsnapshot/AsyncCreateSnapshot.java | 0 .../AsyncCreateSnapshotLRO.java | 0 .../createsnapshot/SyncCreateSnapshot.java | 0 ...ateSnapshotInstancenameSnapshotString.java | 0 ...yncCreateSnapshotStringSnapshotString.java | 0 .../deletebackup/AsyncDeleteBackup.java | 0 .../deletebackup/AsyncDeleteBackupLRO.java | 0 .../deletebackup/SyncDeleteBackup.java | 0 .../SyncDeleteBackupBackupname.java | 0 .../deletebackup/SyncDeleteBackupString.java | 0 .../deleteinstance/AsyncDeleteInstance.java | 0 .../AsyncDeleteInstanceLRO.java | 0 .../deleteinstance/SyncDeleteInstance.java | 0 .../SyncDeleteInstanceInstancename.java | 0 .../SyncDeleteInstanceString.java | 0 .../deleteshare/AsyncDeleteShare.java | 0 .../deleteshare/AsyncDeleteShareLRO.java | 0 .../deleteshare/SyncDeleteShare.java | 0 .../deleteshare/SyncDeleteShareSharename.java | 0 .../deleteshare/SyncDeleteShareString.java | 0 .../deletesnapshot/AsyncDeleteSnapshot.java | 0 .../AsyncDeleteSnapshotLRO.java | 0 .../deletesnapshot/SyncDeleteSnapshot.java | 0 .../SyncDeleteSnapshotSnapshotname.java | 0 .../SyncDeleteSnapshotString.java | 0 .../getbackup/AsyncGetBackup.java | 0 .../getbackup/SyncGetBackup.java | 0 .../getbackup/SyncGetBackupBackupname.java | 0 .../getbackup/SyncGetBackupString.java | 0 .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../getshare/AsyncGetShare.java | 0 .../getshare/SyncGetShare.java | 0 .../getshare/SyncGetShareSharename.java | 0 .../getshare/SyncGetShareString.java | 0 .../getsnapshot/AsyncGetSnapshot.java | 0 .../getsnapshot/SyncGetSnapshot.java | 0 .../SyncGetSnapshotSnapshotname.java | 0 .../getsnapshot/SyncGetSnapshotString.java | 0 .../listbackups/AsyncListBackups.java | 0 .../listbackups/AsyncListBackupsPaged.java | 0 .../listbackups/SyncListBackups.java | 0 .../SyncListBackupsLocationname.java | 0 .../listbackups/SyncListBackupsString.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../listshares/AsyncListShares.java | 0 .../listshares/AsyncListSharesPaged.java | 0 .../listshares/SyncListShares.java | 0 .../SyncListSharesInstancename.java | 0 .../listshares/SyncListSharesString.java | 0 .../listsnapshots/AsyncListSnapshots.java | 0 .../AsyncListSnapshotsPaged.java | 0 .../listsnapshots/SyncListSnapshots.java | 0 .../SyncListSnapshotsInstancename.java | 0 .../SyncListSnapshotsString.java | 0 .../restoreinstance/AsyncRestoreInstance.java | 0 .../AsyncRestoreInstanceLRO.java | 0 .../restoreinstance/SyncRestoreInstance.java | 0 .../revertinstance/AsyncRevertInstance.java | 0 .../AsyncRevertInstanceLRO.java | 0 .../revertinstance/SyncRevertInstance.java | 0 .../updatebackup/AsyncUpdateBackup.java | 0 .../updatebackup/AsyncUpdateBackupLRO.java | 0 .../updatebackup/SyncUpdateBackup.java | 0 .../SyncUpdateBackupBackupFieldmask.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceInstanceFieldmask.java | 0 .../updateshare/AsyncUpdateShare.java | 0 .../updateshare/AsyncUpdateShareLRO.java | 0 .../updateshare/SyncUpdateShare.java | 0 .../SyncUpdateShareShareFieldmask.java | 0 .../updatesnapshot/AsyncUpdateSnapshot.java | 0 .../AsyncUpdateSnapshotLRO.java | 0 .../updatesnapshot/SyncUpdateSnapshot.java | 0 .../SyncUpdateSnapshotSnapshotFieldmask.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 324 files changed, 19474 insertions(+), 30266 deletions(-) delete mode 100644 java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java delete mode 100644 java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java delete mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java rename {java-filestore => owl-bot-staging/java-filestore/v1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java (99%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerCallableFactory.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java (99%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java (99%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManager.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java (100%) create mode 100644 owl-bot-staging/java-filestore/v1/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java (71%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java (74%) create mode 100644 owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java (67%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java (71%) create mode 100644 owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java (69%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java (67%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java (65%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java (57%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java (63%) create mode 100644 owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java (63%) create mode 100644 owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java (75%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java (78%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java (64%) create mode 100644 owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java (63%) create mode 100644 owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java (71%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java (75%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java (70%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java (66%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java (77%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java (80%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java (70%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java (66%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java (77%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java (80%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java (77%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java (83%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java (76%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java (84%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java (69%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java (66%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java (67%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java (64%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java (71%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java (75%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/AsyncGetBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/AsyncGetInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackups.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackups.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstances.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstances.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1}/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java (99%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java (99%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerCallableFactory.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java (99%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java (99%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManager.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java (100%) create mode 100644 owl-bot-staging/java-filestore/v1beta1/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java (71%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java (74%) create mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java (67%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java (71%) create mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java (66%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java (60%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java (66%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java (61%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java (65%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java (58%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java (66%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java (58%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java (64%) create mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java (66%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java (50%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java (64%) create mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java (64%) create mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java (73%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java (80%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java (64%) create mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java (64%) create mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java (64%) create mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java (64%) create mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java (72%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java (75%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java (70%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java (66%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java (77%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java (80%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java (70%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java (66%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java (77%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java (80%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java (69%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java (63%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java (73%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java (73%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java (69%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java (63%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java (73%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java (69%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java (78%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java (87%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java (75%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java (84%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java (71%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java (72%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java (68%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java (60%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java (69%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java (74%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java (65%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java (68%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java (65%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java (58%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java (67%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java (62%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java (67%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java (64%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java (65%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java (56%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShare.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShareLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShare.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareInstancenameShareString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareStringShareString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshot.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshotLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshot.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotInstancenameSnapshotString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotStringSnapshotString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShare.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShareLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShare.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareSharename.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshot.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshotLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshot.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotSnapshotname.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/AsyncGetBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/AsyncGetInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/AsyncGetShare.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShare.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareSharename.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/AsyncGetSnapshot.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshot.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotSnapshotname.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackups.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackups.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstances.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstances.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListShares.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListSharesPaged.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListShares.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesInstancename.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshots.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshotsPaged.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshots.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsInstancename.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsString.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShare.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShareLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShare.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShareShareFieldmask.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshot.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshotLRO.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshot.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshotSnapshotFieldmask.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java (100%) rename {java-filestore => owl-bot-staging/java-filestore/v1beta1}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java (100%) diff --git a/java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java b/java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java deleted file mode 100644 index f9a23b1235b1..000000000000 --- a/java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java +++ /dev/null @@ -1,1602 +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.filestore.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Configures and manages Cloud Filestore resources.
- * Cloud Filestore Manager v1.
- * The `file.googleapis.com` service implements the Cloud Filestore API and
- * defines the following resource model for managing instances:
- * * The service works with a collection of cloud projects, named: `/projects/*`
- * * Each project has a collection of available locations, named: `/locations/*`
- * * Each location has a collection of instances and backups, named:
- * `/instances/*` and `/backups/*` respectively.
- * * As such, Cloud Filestore instances are resources of the form:
- *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
- *   and backups are resources of the form:
- *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
- * Note that location_id must be a GCP `zone` for instances and but to a GCP
- * `region` for backups; for example:
- * * `projects/12345/locations/us-central1-c/instances/my-filestore`
- * * `projects/12345/locations/us-central1/backups/my-backup`
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/filestore/v1/cloud_filestore_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudFilestoreManagerGrpc { - - private CloudFilestoreManagerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.filestore.v1.CloudFilestoreManager"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.ListInstancesRequest, - com.google.cloud.filestore.v1.ListInstancesResponse> - getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.filestore.v1.ListInstancesRequest.class, - responseType = com.google.cloud.filestore.v1.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.ListInstancesRequest, - com.google.cloud.filestore.v1.ListInstancesResponse> - getListInstancesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.ListInstancesRequest, - com.google.cloud.filestore.v1.ListInstancesResponse> - getListInstancesMethod; - if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { - CloudFilestoreManagerGrpc.getListInstancesMethod = - getListInstancesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.ListInstancesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.ListInstancesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.GetInstanceRequest, com.google.cloud.filestore.v1.Instance> - getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.filestore.v1.GetInstanceRequest.class, - responseType = com.google.cloud.filestore.v1.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.GetInstanceRequest, com.google.cloud.filestore.v1.Instance> - getGetInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.GetInstanceRequest, - com.google.cloud.filestore.v1.Instance> - getGetInstanceMethod; - if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getGetInstanceMethod = - getGetInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.GetInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.Instance.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.CreateInstanceRequest, com.google.longrunning.Operation> - getCreateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateInstance", - requestType = com.google.cloud.filestore.v1.CreateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.CreateInstanceRequest, com.google.longrunning.Operation> - getCreateInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.CreateInstanceRequest, com.google.longrunning.Operation> - getCreateInstanceMethod; - if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getCreateInstanceMethod = - getCreateInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.CreateInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("CreateInstance")) - .build(); - } - } - } - return getCreateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.UpdateInstanceRequest, com.google.longrunning.Operation> - getUpdateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", - requestType = com.google.cloud.filestore.v1.UpdateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.UpdateInstanceRequest, com.google.longrunning.Operation> - getUpdateInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.UpdateInstanceRequest, com.google.longrunning.Operation> - getUpdateInstanceMethod; - if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getUpdateInstanceMethod = - getUpdateInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.UpdateInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("UpdateInstance")) - .build(); - } - } - } - return getUpdateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.RestoreInstanceRequest, com.google.longrunning.Operation> - getRestoreInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RestoreInstance", - requestType = com.google.cloud.filestore.v1.RestoreInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.RestoreInstanceRequest, com.google.longrunning.Operation> - getRestoreInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.RestoreInstanceRequest, com.google.longrunning.Operation> - getRestoreInstanceMethod; - if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) - == null) { - CloudFilestoreManagerGrpc.getRestoreInstanceMethod = - getRestoreInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.RestoreInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("RestoreInstance")) - .build(); - } - } - } - return getRestoreInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.DeleteInstanceRequest, com.google.longrunning.Operation> - getDeleteInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", - requestType = com.google.cloud.filestore.v1.DeleteInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.DeleteInstanceRequest, com.google.longrunning.Operation> - getDeleteInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.DeleteInstanceRequest, com.google.longrunning.Operation> - getDeleteInstanceMethod; - if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getDeleteInstanceMethod = - getDeleteInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.DeleteInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("DeleteInstance")) - .build(); - } - } - } - return getDeleteInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.ListBackupsRequest, - com.google.cloud.filestore.v1.ListBackupsResponse> - getListBackupsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBackups", - requestType = com.google.cloud.filestore.v1.ListBackupsRequest.class, - responseType = com.google.cloud.filestore.v1.ListBackupsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.ListBackupsRequest, - com.google.cloud.filestore.v1.ListBackupsResponse> - getListBackupsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.ListBackupsRequest, - com.google.cloud.filestore.v1.ListBackupsResponse> - getListBackupsMethod; - if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1.ListBackupsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.ListBackupsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("ListBackups")) - .build(); - } - } - } - return getListBackupsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.GetBackupRequest, com.google.cloud.filestore.v1.Backup> - getGetBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBackup", - requestType = com.google.cloud.filestore.v1.GetBackupRequest.class, - responseType = com.google.cloud.filestore.v1.Backup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.GetBackupRequest, com.google.cloud.filestore.v1.Backup> - getGetBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.GetBackupRequest, com.google.cloud.filestore.v1.Backup> - getGetBackupMethod; - if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1.GetBackupRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.Backup.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("GetBackup")) - .build(); - } - } - } - return getGetBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.CreateBackupRequest, com.google.longrunning.Operation> - getCreateBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBackup", - requestType = com.google.cloud.filestore.v1.CreateBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.CreateBackupRequest, com.google.longrunning.Operation> - getCreateBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.CreateBackupRequest, com.google.longrunning.Operation> - getCreateBackupMethod; - if ((getCreateBackupMethod = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getCreateBackupMethod = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1.CreateBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("CreateBackup")) - .build(); - } - } - } - return getCreateBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.DeleteBackupRequest, com.google.longrunning.Operation> - getDeleteBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", - requestType = com.google.cloud.filestore.v1.DeleteBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.DeleteBackupRequest, com.google.longrunning.Operation> - getDeleteBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.DeleteBackupRequest, com.google.longrunning.Operation> - getDeleteBackupMethod; - if ((getDeleteBackupMethod = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getDeleteBackupMethod = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1.DeleteBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("DeleteBackup")) - .build(); - } - } - } - return getDeleteBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.UpdateBackupRequest, com.google.longrunning.Operation> - getUpdateBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", - requestType = com.google.cloud.filestore.v1.UpdateBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.UpdateBackupRequest, com.google.longrunning.Operation> - getUpdateBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1.UpdateBackupRequest, com.google.longrunning.Operation> - getUpdateBackupMethod; - if ((getUpdateBackupMethod = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getUpdateBackupMethod = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1.UpdateBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("UpdateBackup")) - .build(); - } - } - } - return getUpdateBackupMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static CloudFilestoreManagerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFilestoreManagerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerStub(channel, callOptions); - } - }; - return CloudFilestoreManagerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CloudFilestoreManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFilestoreManagerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerBlockingStub(channel, callOptions); - } - }; - return CloudFilestoreManagerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CloudFilestoreManagerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFilestoreManagerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerFutureStub(channel, callOptions); - } - }; - return CloudFilestoreManagerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Configures and manages Cloud Filestore resources.
-   * Cloud Filestore Manager v1.
-   * The `file.googleapis.com` service implements the Cloud Filestore API and
-   * defines the following resource model for managing instances:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Cloud Filestore instances are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
-   *   and backups are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id must be a GCP `zone` for instances and but to a GCP
-   * `region` for backups; for example:
-   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
-   * * `projects/12345/locations/us-central1/backups/my-backup`
-   * 
- */ - public abstract static class CloudFilestoreManagerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public void listInstances( - com.google.cloud.filestore.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListInstancesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific instance.
-     * 
- */ - public void getInstance( - com.google.cloud.filestore.v1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public void createInstance( - com.google.cloud.filestore.v1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public void updateInstance( - com.google.cloud.filestore.v1.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public void restoreInstance( - com.google.cloud.filestore.v1.RestoreInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestoreInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an instance.
-     * 
- */ - public void deleteInstance( - com.google.cloud.filestore.v1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public void listBackups( - com.google.cloud.filestore.v1.ListBackupsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBackupsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific backup.
-     * 
- */ - public void getBackup( - com.google.cloud.filestore.v1.GetBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a backup.
-     * 
- */ - public void createBackup( - com.google.cloud.filestore.v1.CreateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a backup.
-     * 
- */ - public void deleteBackup( - com.google.cloud.filestore.v1.DeleteBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public void updateBackup( - com.google.cloud.filestore.v1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBackupMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.ListInstancesRequest, - com.google.cloud.filestore.v1.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.GetInstanceRequest, - com.google.cloud.filestore.v1.Instance>(this, METHODID_GET_INSTANCE))) - .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.CreateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.UpdateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getRestoreInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.RestoreInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_RESTORE_INSTANCE))) - .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.DeleteInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) - .addMethod( - getListBackupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.ListBackupsRequest, - com.google.cloud.filestore.v1.ListBackupsResponse>( - this, METHODID_LIST_BACKUPS))) - .addMethod( - getGetBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.GetBackupRequest, - com.google.cloud.filestore.v1.Backup>(this, METHODID_GET_BACKUP))) - .addMethod( - getCreateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.CreateBackupRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_BACKUP))) - .addMethod( - getDeleteBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.DeleteBackupRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_BACKUP))) - .addMethod( - getUpdateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.UpdateBackupRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_BACKUP))) - .build(); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Filestore resources.
-   * Cloud Filestore Manager v1.
-   * The `file.googleapis.com` service implements the Cloud Filestore API and
-   * defines the following resource model for managing instances:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Cloud Filestore instances are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
-   *   and backups are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id must be a GCP `zone` for instances and but to a GCP
-   * `region` for backups; for example:
-   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
-   * * `projects/12345/locations/us-central1/backups/my-backup`
-   * 
- */ - public static final class CloudFilestoreManagerStub - extends io.grpc.stub.AbstractAsyncStub { - private CloudFilestoreManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudFilestoreManagerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public void listInstances( - com.google.cloud.filestore.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific instance.
-     * 
- */ - public void getInstance( - com.google.cloud.filestore.v1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public void createInstance( - com.google.cloud.filestore.v1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public void updateInstance( - com.google.cloud.filestore.v1.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public void restoreInstance( - com.google.cloud.filestore.v1.RestoreInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an instance.
-     * 
- */ - public void deleteInstance( - com.google.cloud.filestore.v1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public void listBackups( - com.google.cloud.filestore.v1.ListBackupsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific backup.
-     * 
- */ - public void getBackup( - com.google.cloud.filestore.v1.GetBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a backup.
-     * 
- */ - public void createBackup( - com.google.cloud.filestore.v1.CreateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBackupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a backup.
-     * 
- */ - public void deleteBackup( - com.google.cloud.filestore.v1.DeleteBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public void updateBackup( - com.google.cloud.filestore.v1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Filestore resources.
-   * Cloud Filestore Manager v1.
-   * The `file.googleapis.com` service implements the Cloud Filestore API and
-   * defines the following resource model for managing instances:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Cloud Filestore instances are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
-   *   and backups are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id must be a GCP `zone` for instances and but to a GCP
-   * `region` for backups; for example:
-   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
-   * * `projects/12345/locations/us-central1/backups/my-backup`
-   * 
- */ - public static final class CloudFilestoreManagerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CloudFilestoreManagerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudFilestoreManagerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public com.google.cloud.filestore.v1.ListInstancesResponse listInstances( - com.google.cloud.filestore.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a specific instance.
-     * 
- */ - public com.google.cloud.filestore.v1.Instance getInstance( - com.google.cloud.filestore.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public com.google.longrunning.Operation createInstance( - com.google.cloud.filestore.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public com.google.longrunning.Operation updateInstance( - com.google.cloud.filestore.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public com.google.longrunning.Operation restoreInstance( - com.google.cloud.filestore.v1.RestoreInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestoreInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an instance.
-     * 
- */ - public com.google.longrunning.Operation deleteInstance( - com.google.cloud.filestore.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public com.google.cloud.filestore.v1.ListBackupsResponse listBackups( - com.google.cloud.filestore.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBackupsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a specific backup.
-     * 
- */ - public com.google.cloud.filestore.v1.Backup getBackup( - com.google.cloud.filestore.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a backup.
-     * 
- */ - public com.google.longrunning.Operation createBackup( - com.google.cloud.filestore.v1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a backup.
-     * 
- */ - public com.google.longrunning.Operation deleteBackup( - com.google.cloud.filestore.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public com.google.longrunning.Operation updateBackup( - com.google.cloud.filestore.v1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBackupMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Filestore resources.
-   * Cloud Filestore Manager v1.
-   * The `file.googleapis.com` service implements the Cloud Filestore API and
-   * defines the following resource model for managing instances:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Cloud Filestore instances are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
-   *   and backups are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id must be a GCP `zone` for instances and but to a GCP
-   * `region` for backups; for example:
-   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
-   * * `projects/12345/locations/us-central1/backups/my-backup`
-   * 
- */ - public static final class CloudFilestoreManagerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CloudFilestoreManagerFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudFilestoreManagerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.filestore.v1.ListInstancesResponse> - listInstances(com.google.cloud.filestore.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the details of a specific instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.filestore.v1.Instance> - getInstance(com.google.cloud.filestore.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createInstance(com.google.cloud.filestore.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateInstance(com.google.cloud.filestore.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - restoreInstance(com.google.cloud.filestore.v1.RestoreInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteInstance(com.google.cloud.filestore.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.filestore.v1.ListBackupsResponse> - listBackups(com.google.cloud.filestore.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the details of a specific backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getBackup(com.google.cloud.filestore.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createBackup(com.google.cloud.filestore.v1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteBackup(com.google.cloud.filestore.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateBackup(com.google.cloud.filestore.v1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_CREATE_INSTANCE = 2; - private static final int METHODID_UPDATE_INSTANCE = 3; - private static final int METHODID_RESTORE_INSTANCE = 4; - private static final int METHODID_DELETE_INSTANCE = 5; - private static final int METHODID_LIST_BACKUPS = 6; - private static final int METHODID_GET_BACKUP = 7; - private static final int METHODID_CREATE_BACKUP = 8; - private static final int METHODID_DELETE_BACKUP = 9; - private static final int METHODID_UPDATE_BACKUP = 10; - - 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 CloudFilestoreManagerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CloudFilestoreManagerImplBase 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_LIST_INSTANCES: - serviceImpl.listInstances( - (com.google.cloud.filestore.v1.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance( - (com.google.cloud.filestore.v1.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance( - (com.google.cloud.filestore.v1.CreateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance( - (com.google.cloud.filestore.v1.UpdateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESTORE_INSTANCE: - serviceImpl.restoreInstance( - (com.google.cloud.filestore.v1.RestoreInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance( - (com.google.cloud.filestore.v1.DeleteInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BACKUPS: - serviceImpl.listBackups( - (com.google.cloud.filestore.v1.ListBackupsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_BACKUP: - serviceImpl.getBackup( - (com.google.cloud.filestore.v1.GetBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_BACKUP: - serviceImpl.createBackup( - (com.google.cloud.filestore.v1.CreateBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_BACKUP: - serviceImpl.deleteBackup( - (com.google.cloud.filestore.v1.DeleteBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_BACKUP: - serviceImpl.updateBackup( - (com.google.cloud.filestore.v1.UpdateBackupRequest) 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 CloudFilestoreManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CloudFilestoreManagerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CloudFilestoreManager"); - } - } - - private static final class CloudFilestoreManagerFileDescriptorSupplier - extends CloudFilestoreManagerBaseDescriptorSupplier { - CloudFilestoreManagerFileDescriptorSupplier() {} - } - - private static final class CloudFilestoreManagerMethodDescriptorSupplier - extends CloudFilestoreManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CloudFilestoreManagerMethodDescriptorSupplier(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 (CloudFilestoreManagerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudFilestoreManagerFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getRestoreInstanceMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getListBackupsMethod()) - .addMethod(getGetBackupMethod()) - .addMethod(getCreateBackupMethod()) - .addMethod(getDeleteBackupMethod()) - .addMethod(getUpdateBackupMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java b/java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java deleted file mode 100644 index 45f7ce382d65..000000000000 --- a/java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java +++ /dev/null @@ -1,2912 +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.filestore.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Configures and manages Filestore resources.
- * Filestore Manager v1beta1.
- * The `file.googleapis.com` service implements the Filestore API and
- * defines the following model for managing resources:
- * * The service works with a collection of cloud projects, named: `/projects/*`
- * * Each project has a collection of available locations, named: `/locations/*`
- * * Each location has a collection of instances and backups, named:
- * `/instances/*` and `/backups/*` respectively.
- * * As such, Filestore instances are resources of the form:
- *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- *   backups are resources of the form:
- *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
- * Note that location_id can represent a GCP `zone` or `region` depending on the
- * resource.
- * for example:
- * A zonal Filestore instance:
- * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
- * A regional Filestore instance:
- * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudFilestoreManagerGrpc { - - private CloudFilestoreManagerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.filestore.v1beta1.CloudFilestoreManager"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListInstancesRequest, - com.google.cloud.filestore.v1beta1.ListInstancesResponse> - getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, - responseType = com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListInstancesRequest, - com.google.cloud.filestore.v1beta1.ListInstancesResponse> - getListInstancesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListInstancesRequest, - com.google.cloud.filestore.v1beta1.ListInstancesResponse> - getListInstancesMethod; - if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { - CloudFilestoreManagerGrpc.getListInstancesMethod = - getListInstancesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListInstancesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListInstancesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetInstanceRequest, - com.google.cloud.filestore.v1beta1.Instance> - getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, - responseType = com.google.cloud.filestore.v1beta1.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetInstanceRequest, - com.google.cloud.filestore.v1beta1.Instance> - getGetInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetInstanceRequest, - com.google.cloud.filestore.v1beta1.Instance> - getGetInstanceMethod; - if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getGetInstanceMethod = - getGetInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.GetInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateInstanceRequest, - com.google.longrunning.Operation> - getCreateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateInstance", - requestType = com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateInstanceRequest, - com.google.longrunning.Operation> - getCreateInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateInstanceRequest, - com.google.longrunning.Operation> - getCreateInstanceMethod; - if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getCreateInstanceMethod = - getCreateInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("CreateInstance")) - .build(); - } - } - } - return getCreateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", - requestType = com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod; - if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getUpdateInstanceMethod = - getUpdateInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("UpdateInstance")) - .build(); - } - } - } - return getUpdateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest, - com.google.longrunning.Operation> - getRestoreInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RestoreInstance", - requestType = com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest, - com.google.longrunning.Operation> - getRestoreInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest, - com.google.longrunning.Operation> - getRestoreInstanceMethod; - if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) - == null) { - CloudFilestoreManagerGrpc.getRestoreInstanceMethod = - getRestoreInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("RestoreInstance")) - .build(); - } - } - } - return getRestoreInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.RevertInstanceRequest, - com.google.longrunning.Operation> - getRevertInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RevertInstance", - requestType = com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.RevertInstanceRequest, - com.google.longrunning.Operation> - getRevertInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.RevertInstanceRequest, - com.google.longrunning.Operation> - getRevertInstanceMethod; - if ((getRevertInstanceMethod = CloudFilestoreManagerGrpc.getRevertInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getRevertInstanceMethod = CloudFilestoreManagerGrpc.getRevertInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getRevertInstanceMethod = - getRevertInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevertInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.RevertInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("RevertInstance")) - .build(); - } - } - } - return getRevertInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest, - com.google.longrunning.Operation> - getDeleteInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", - requestType = com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest, - com.google.longrunning.Operation> - getDeleteInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest, - com.google.longrunning.Operation> - getDeleteInstanceMethod; - if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getDeleteInstanceMethod = - getDeleteInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("DeleteInstance")) - .build(); - } - } - } - return getDeleteInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest, - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse> - getListSnapshotsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSnapshots", - requestType = com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, - responseType = com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest, - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse> - getListSnapshotsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest, - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse> - getListSnapshotsMethod; - if ((getListSnapshotsMethod = CloudFilestoreManagerGrpc.getListSnapshotsMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getListSnapshotsMethod = CloudFilestoreManagerGrpc.getListSnapshotsMethod) == null) { - CloudFilestoreManagerGrpc.getListSnapshotsMethod = - getListSnapshotsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSnapshots")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("ListSnapshots")) - .build(); - } - } - } - return getListSnapshotsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetSnapshotRequest, - com.google.cloud.filestore.v1beta1.Snapshot> - getGetSnapshotMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSnapshot", - requestType = com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, - responseType = com.google.cloud.filestore.v1beta1.Snapshot.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetSnapshotRequest, - com.google.cloud.filestore.v1beta1.Snapshot> - getGetSnapshotMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetSnapshotRequest, - com.google.cloud.filestore.v1beta1.Snapshot> - getGetSnapshotMethod; - if ((getGetSnapshotMethod = CloudFilestoreManagerGrpc.getGetSnapshotMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getGetSnapshotMethod = CloudFilestoreManagerGrpc.getGetSnapshotMethod) == null) { - CloudFilestoreManagerGrpc.getGetSnapshotMethod = - getGetSnapshotMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSnapshot")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.GetSnapshotRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("GetSnapshot")) - .build(); - } - } - } - return getGetSnapshotMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest, - com.google.longrunning.Operation> - getCreateSnapshotMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSnapshot", - requestType = com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest, - com.google.longrunning.Operation> - getCreateSnapshotMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest, - com.google.longrunning.Operation> - getCreateSnapshotMethod; - if ((getCreateSnapshotMethod = CloudFilestoreManagerGrpc.getCreateSnapshotMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getCreateSnapshotMethod = CloudFilestoreManagerGrpc.getCreateSnapshotMethod) == null) { - CloudFilestoreManagerGrpc.getCreateSnapshotMethod = - getCreateSnapshotMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSnapshot")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("CreateSnapshot")) - .build(); - } - } - } - return getCreateSnapshotMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest, - com.google.longrunning.Operation> - getDeleteSnapshotMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSnapshot", - requestType = com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest, - com.google.longrunning.Operation> - getDeleteSnapshotMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest, - com.google.longrunning.Operation> - getDeleteSnapshotMethod; - if ((getDeleteSnapshotMethod = CloudFilestoreManagerGrpc.getDeleteSnapshotMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getDeleteSnapshotMethod = CloudFilestoreManagerGrpc.getDeleteSnapshotMethod) == null) { - CloudFilestoreManagerGrpc.getDeleteSnapshotMethod = - getDeleteSnapshotMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSnapshot")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("DeleteSnapshot")) - .build(); - } - } - } - return getDeleteSnapshotMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest, - com.google.longrunning.Operation> - getUpdateSnapshotMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSnapshot", - requestType = com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest, - com.google.longrunning.Operation> - getUpdateSnapshotMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest, - com.google.longrunning.Operation> - getUpdateSnapshotMethod; - if ((getUpdateSnapshotMethod = CloudFilestoreManagerGrpc.getUpdateSnapshotMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getUpdateSnapshotMethod = CloudFilestoreManagerGrpc.getUpdateSnapshotMethod) == null) { - CloudFilestoreManagerGrpc.getUpdateSnapshotMethod = - getUpdateSnapshotMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSnapshot")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("UpdateSnapshot")) - .build(); - } - } - } - return getUpdateSnapshotMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListBackupsRequest, - com.google.cloud.filestore.v1beta1.ListBackupsResponse> - getListBackupsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBackups", - requestType = com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, - responseType = com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListBackupsRequest, - com.google.cloud.filestore.v1beta1.ListBackupsResponse> - getListBackupsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListBackupsRequest, - com.google.cloud.filestore.v1beta1.ListBackupsResponse> - getListBackupsMethod; - if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1beta1.ListBackupsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListBackupsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("ListBackups")) - .build(); - } - } - } - return getListBackupsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetBackupRequest, - com.google.cloud.filestore.v1beta1.Backup> - getGetBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBackup", - requestType = com.google.cloud.filestore.v1beta1.GetBackupRequest.class, - responseType = com.google.cloud.filestore.v1beta1.Backup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetBackupRequest, - com.google.cloud.filestore.v1beta1.Backup> - getGetBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetBackupRequest, - com.google.cloud.filestore.v1beta1.Backup> - getGetBackupMethod; - if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1beta1.GetBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("GetBackup")) - .build(); - } - } - } - return getGetBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateBackupRequest, com.google.longrunning.Operation> - getCreateBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBackup", - requestType = com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateBackupRequest, com.google.longrunning.Operation> - getCreateBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateBackupRequest, - com.google.longrunning.Operation> - getCreateBackupMethod; - if ((getCreateBackupMethod = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getCreateBackupMethod = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1beta1.CreateBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("CreateBackup")) - .build(); - } - } - } - return getCreateBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.DeleteBackupRequest, com.google.longrunning.Operation> - getDeleteBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", - requestType = com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.DeleteBackupRequest, com.google.longrunning.Operation> - getDeleteBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.DeleteBackupRequest, - com.google.longrunning.Operation> - getDeleteBackupMethod; - if ((getDeleteBackupMethod = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getDeleteBackupMethod = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1beta1.DeleteBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("DeleteBackup")) - .build(); - } - } - } - return getDeleteBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.UpdateBackupRequest, com.google.longrunning.Operation> - getUpdateBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", - requestType = com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.UpdateBackupRequest, com.google.longrunning.Operation> - getUpdateBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.UpdateBackupRequest, - com.google.longrunning.Operation> - getUpdateBackupMethod; - if ((getUpdateBackupMethod = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getUpdateBackupMethod = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1beta1.UpdateBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("UpdateBackup")) - .build(); - } - } - } - return getUpdateBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListSharesRequest, - com.google.cloud.filestore.v1beta1.ListSharesResponse> - getListSharesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListShares", - requestType = com.google.cloud.filestore.v1beta1.ListSharesRequest.class, - responseType = com.google.cloud.filestore.v1beta1.ListSharesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListSharesRequest, - com.google.cloud.filestore.v1beta1.ListSharesResponse> - getListSharesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListSharesRequest, - com.google.cloud.filestore.v1beta1.ListSharesResponse> - getListSharesMethod; - if ((getListSharesMethod = CloudFilestoreManagerGrpc.getListSharesMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getListSharesMethod = CloudFilestoreManagerGrpc.getListSharesMethod) == null) { - CloudFilestoreManagerGrpc.getListSharesMethod = - getListSharesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListShares")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListSharesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListSharesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("ListShares")) - .build(); - } - } - } - return getListSharesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetShareRequest, - com.google.cloud.filestore.v1beta1.Share> - getGetShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetShare", - requestType = com.google.cloud.filestore.v1beta1.GetShareRequest.class, - responseType = com.google.cloud.filestore.v1beta1.Share.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetShareRequest, - com.google.cloud.filestore.v1beta1.Share> - getGetShareMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetShareRequest, - com.google.cloud.filestore.v1beta1.Share> - getGetShareMethod; - if ((getGetShareMethod = CloudFilestoreManagerGrpc.getGetShareMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getGetShareMethod = CloudFilestoreManagerGrpc.getGetShareMethod) == null) { - CloudFilestoreManagerGrpc.getGetShareMethod = - getGetShareMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.GetShareRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.Share.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("GetShare")) - .build(); - } - } - } - return getGetShareMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateShareRequest, com.google.longrunning.Operation> - getCreateShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateShare", - requestType = com.google.cloud.filestore.v1beta1.CreateShareRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateShareRequest, com.google.longrunning.Operation> - getCreateShareMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateShareRequest, com.google.longrunning.Operation> - getCreateShareMethod; - if ((getCreateShareMethod = CloudFilestoreManagerGrpc.getCreateShareMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getCreateShareMethod = CloudFilestoreManagerGrpc.getCreateShareMethod) == null) { - CloudFilestoreManagerGrpc.getCreateShareMethod = - getCreateShareMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.CreateShareRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("CreateShare")) - .build(); - } - } - } - return getCreateShareMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.DeleteShareRequest, com.google.longrunning.Operation> - getDeleteShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteShare", - requestType = com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.DeleteShareRequest, com.google.longrunning.Operation> - getDeleteShareMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.DeleteShareRequest, com.google.longrunning.Operation> - getDeleteShareMethod; - if ((getDeleteShareMethod = CloudFilestoreManagerGrpc.getDeleteShareMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getDeleteShareMethod = CloudFilestoreManagerGrpc.getDeleteShareMethod) == null) { - CloudFilestoreManagerGrpc.getDeleteShareMethod = - getDeleteShareMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.DeleteShareRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("DeleteShare")) - .build(); - } - } - } - return getDeleteShareMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.UpdateShareRequest, com.google.longrunning.Operation> - getUpdateShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateShare", - requestType = com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.UpdateShareRequest, com.google.longrunning.Operation> - getUpdateShareMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.UpdateShareRequest, com.google.longrunning.Operation> - getUpdateShareMethod; - if ((getUpdateShareMethod = CloudFilestoreManagerGrpc.getUpdateShareMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getUpdateShareMethod = CloudFilestoreManagerGrpc.getUpdateShareMethod) == null) { - CloudFilestoreManagerGrpc.getUpdateShareMethod = - getUpdateShareMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.UpdateShareRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("UpdateShare")) - .build(); - } - } - } - return getUpdateShareMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static CloudFilestoreManagerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFilestoreManagerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerStub(channel, callOptions); - } - }; - return CloudFilestoreManagerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CloudFilestoreManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFilestoreManagerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerBlockingStub(channel, callOptions); - } - }; - return CloudFilestoreManagerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CloudFilestoreManagerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFilestoreManagerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerFutureStub(channel, callOptions); - } - }; - return CloudFilestoreManagerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Configures and manages Filestore resources.
-   * Filestore Manager v1beta1.
-   * The `file.googleapis.com` service implements the Filestore API and
-   * defines the following model for managing resources:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Filestore instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   *   backups are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id can represent a GCP `zone` or `region` depending on the
-   * resource.
-   * for example:
-   * A zonal Filestore instance:
-   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
-   * A regional Filestore instance:
-   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
-   * 
- */ - public abstract static class CloudFilestoreManagerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public void listInstances( - com.google.cloud.filestore.v1beta1.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListInstancesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific instance.
-     * 
- */ - public void getInstance( - com.google.cloud.filestore.v1beta1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public void createInstance( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public void updateInstance( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public void restoreInstance( - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestoreInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Revert an existing instance's file system to a specified snapshot.
-     * 
- */ - public void revertInstance( - com.google.cloud.filestore.v1beta1.RevertInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRevertInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an instance.
-     * 
- */ - public void deleteInstance( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all snapshots in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public void listSnapshots( - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSnapshotsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific snapshot.
-     * 
- */ - public void getSnapshot( - com.google.cloud.filestore.v1beta1.GetSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSnapshotMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a snapshot.
-     * 
- */ - public void createSnapshot( - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSnapshotMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a snapshot.
-     * 
- */ - public void deleteSnapshot( - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSnapshotMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific snapshot.
-     * 
- */ - public void updateSnapshot( - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSnapshotMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public void listBackups( - com.google.cloud.filestore.v1beta1.ListBackupsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBackupsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific backup.
-     * 
- */ - public void getBackup( - com.google.cloud.filestore.v1beta1.GetBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a backup.
-     * 
- */ - public void createBackup( - com.google.cloud.filestore.v1beta1.CreateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a backup.
-     * 
- */ - public void deleteBackup( - com.google.cloud.filestore.v1beta1.DeleteBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public void updateBackup( - com.google.cloud.filestore.v1beta1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all shares for a specified instance.
-     * 
- */ - public void listShares( - com.google.cloud.filestore.v1beta1.ListSharesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSharesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific share.
-     * 
- */ - public void getShare( - com.google.cloud.filestore.v1beta1.GetShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetShareMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a share.
-     * 
- */ - public void createShare( - com.google.cloud.filestore.v1beta1.CreateShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateShareMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a share.
-     * 
- */ - public void deleteShare( - com.google.cloud.filestore.v1beta1.DeleteShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteShareMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific share.
-     * 
- */ - public void updateShare( - com.google.cloud.filestore.v1beta1.UpdateShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateShareMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.ListInstancesRequest, - com.google.cloud.filestore.v1beta1.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.GetInstanceRequest, - com.google.cloud.filestore.v1beta1.Instance>(this, METHODID_GET_INSTANCE))) - .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.CreateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getRestoreInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_RESTORE_INSTANCE))) - .addMethod( - getRevertInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.RevertInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_REVERT_INSTANCE))) - .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) - .addMethod( - getListSnapshotsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest, - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse>( - this, METHODID_LIST_SNAPSHOTS))) - .addMethod( - getGetSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.GetSnapshotRequest, - com.google.cloud.filestore.v1beta1.Snapshot>(this, METHODID_GET_SNAPSHOT))) - .addMethod( - getCreateSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_SNAPSHOT))) - .addMethod( - getDeleteSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_SNAPSHOT))) - .addMethod( - getUpdateSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_SNAPSHOT))) - .addMethod( - getListBackupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.ListBackupsRequest, - com.google.cloud.filestore.v1beta1.ListBackupsResponse>( - this, METHODID_LIST_BACKUPS))) - .addMethod( - getGetBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.GetBackupRequest, - com.google.cloud.filestore.v1beta1.Backup>(this, METHODID_GET_BACKUP))) - .addMethod( - getCreateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.CreateBackupRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_BACKUP))) - .addMethod( - getDeleteBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.DeleteBackupRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_BACKUP))) - .addMethod( - getUpdateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.UpdateBackupRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_BACKUP))) - .addMethod( - getListSharesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.ListSharesRequest, - com.google.cloud.filestore.v1beta1.ListSharesResponse>( - this, METHODID_LIST_SHARES))) - .addMethod( - getGetShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.GetShareRequest, - com.google.cloud.filestore.v1beta1.Share>(this, METHODID_GET_SHARE))) - .addMethod( - getCreateShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.CreateShareRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_SHARE))) - .addMethod( - getDeleteShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.DeleteShareRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_SHARE))) - .addMethod( - getUpdateShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.UpdateShareRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_SHARE))) - .build(); - } - } - - /** - * - * - *
-   * Configures and manages Filestore resources.
-   * Filestore Manager v1beta1.
-   * The `file.googleapis.com` service implements the Filestore API and
-   * defines the following model for managing resources:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Filestore instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   *   backups are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id can represent a GCP `zone` or `region` depending on the
-   * resource.
-   * for example:
-   * A zonal Filestore instance:
-   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
-   * A regional Filestore instance:
-   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
-   * 
- */ - public static final class CloudFilestoreManagerStub - extends io.grpc.stub.AbstractAsyncStub { - private CloudFilestoreManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudFilestoreManagerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public void listInstances( - com.google.cloud.filestore.v1beta1.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific instance.
-     * 
- */ - public void getInstance( - com.google.cloud.filestore.v1beta1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public void createInstance( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public void updateInstance( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public void restoreInstance( - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Revert an existing instance's file system to a specified snapshot.
-     * 
- */ - public void revertInstance( - com.google.cloud.filestore.v1beta1.RevertInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRevertInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an instance.
-     * 
- */ - public void deleteInstance( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all snapshots in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public void listSnapshots( - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific snapshot.
-     * 
- */ - public void getSnapshot( - com.google.cloud.filestore.v1beta1.GetSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a snapshot.
-     * 
- */ - public void createSnapshot( - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a snapshot.
-     * 
- */ - public void deleteSnapshot( - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific snapshot.
-     * 
- */ - public void updateSnapshot( - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public void listBackups( - com.google.cloud.filestore.v1beta1.ListBackupsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific backup.
-     * 
- */ - public void getBackup( - com.google.cloud.filestore.v1beta1.GetBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a backup.
-     * 
- */ - public void createBackup( - com.google.cloud.filestore.v1beta1.CreateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBackupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a backup.
-     * 
- */ - public void deleteBackup( - com.google.cloud.filestore.v1beta1.DeleteBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public void updateBackup( - com.google.cloud.filestore.v1beta1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all shares for a specified instance.
-     * 
- */ - public void listShares( - com.google.cloud.filestore.v1beta1.ListSharesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSharesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific share.
-     * 
- */ - public void getShare( - com.google.cloud.filestore.v1beta1.GetShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetShareMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a share.
-     * 
- */ - public void createShare( - com.google.cloud.filestore.v1beta1.CreateShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateShareMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a share.
-     * 
- */ - public void deleteShare( - com.google.cloud.filestore.v1beta1.DeleteShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteShareMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific share.
-     * 
- */ - public void updateShare( - com.google.cloud.filestore.v1beta1.UpdateShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateShareMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Configures and manages Filestore resources.
-   * Filestore Manager v1beta1.
-   * The `file.googleapis.com` service implements the Filestore API and
-   * defines the following model for managing resources:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Filestore instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   *   backups are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id can represent a GCP `zone` or `region` depending on the
-   * resource.
-   * for example:
-   * A zonal Filestore instance:
-   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
-   * A regional Filestore instance:
-   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
-   * 
- */ - public static final class CloudFilestoreManagerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CloudFilestoreManagerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudFilestoreManagerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.ListInstancesResponse listInstances( - com.google.cloud.filestore.v1beta1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a specific instance.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.Instance getInstance( - com.google.cloud.filestore.v1beta1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public com.google.longrunning.Operation createInstance( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public com.google.longrunning.Operation updateInstance( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public com.google.longrunning.Operation restoreInstance( - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestoreInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Revert an existing instance's file system to a specified snapshot.
-     * 
- */ - public com.google.longrunning.Operation revertInstance( - com.google.cloud.filestore.v1beta1.RevertInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRevertInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an instance.
-     * 
- */ - public com.google.longrunning.Operation deleteInstance( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all snapshots in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse listSnapshots( - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSnapshotsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a specific snapshot.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot( - com.google.cloud.filestore.v1beta1.GetSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSnapshotMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a snapshot.
-     * 
- */ - public com.google.longrunning.Operation createSnapshot( - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a snapshot.
-     * 
- */ - public com.google.longrunning.Operation deleteSnapshot( - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the settings of a specific snapshot.
-     * 
- */ - public com.google.longrunning.Operation updateSnapshot( - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.ListBackupsResponse listBackups( - com.google.cloud.filestore.v1beta1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBackupsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a specific backup.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.Backup getBackup( - com.google.cloud.filestore.v1beta1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a backup.
-     * 
- */ - public com.google.longrunning.Operation createBackup( - com.google.cloud.filestore.v1beta1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a backup.
-     * 
- */ - public com.google.longrunning.Operation deleteBackup( - com.google.cloud.filestore.v1beta1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public com.google.longrunning.Operation updateBackup( - com.google.cloud.filestore.v1beta1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all shares for a specified instance.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.ListSharesResponse listShares( - com.google.cloud.filestore.v1beta1.ListSharesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSharesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a specific share.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.Share getShare( - com.google.cloud.filestore.v1beta1.GetShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetShareMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a share.
-     * 
- */ - public com.google.longrunning.Operation createShare( - com.google.cloud.filestore.v1beta1.CreateShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateShareMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a share.
-     * 
- */ - public com.google.longrunning.Operation deleteShare( - com.google.cloud.filestore.v1beta1.DeleteShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteShareMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the settings of a specific share.
-     * 
- */ - public com.google.longrunning.Operation updateShare( - com.google.cloud.filestore.v1beta1.UpdateShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateShareMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Configures and manages Filestore resources.
-   * Filestore Manager v1beta1.
-   * The `file.googleapis.com` service implements the Filestore API and
-   * defines the following model for managing resources:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Filestore instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   *   backups are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id can represent a GCP `zone` or `region` depending on the
-   * resource.
-   * for example:
-   * A zonal Filestore instance:
-   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
-   * A regional Filestore instance:
-   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
-   * 
- */ - public static final class CloudFilestoreManagerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CloudFilestoreManagerFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudFilestoreManagerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.filestore.v1beta1.ListInstancesResponse> - listInstances(com.google.cloud.filestore.v1beta1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the details of a specific instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.filestore.v1beta1.Instance> - getInstance(com.google.cloud.filestore.v1beta1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createInstance(com.google.cloud.filestore.v1beta1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateInstance(com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - restoreInstance(com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Revert an existing instance's file system to a specified snapshot.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - revertInstance(com.google.cloud.filestore.v1beta1.RevertInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRevertInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteInstance(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all snapshots in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse> - listSnapshots(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the details of a specific snapshot.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.filestore.v1beta1.Snapshot> - getSnapshot(com.google.cloud.filestore.v1beta1.GetSnapshotRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a snapshot.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createSnapshot(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a snapshot.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSnapshot(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the settings of a specific snapshot.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateSnapshot(com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.filestore.v1beta1.ListBackupsResponse> - listBackups(com.google.cloud.filestore.v1beta1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the details of a specific backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.filestore.v1beta1.Backup> - getBackup(com.google.cloud.filestore.v1beta1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createBackup(com.google.cloud.filestore.v1beta1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteBackup(com.google.cloud.filestore.v1beta1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateBackup(com.google.cloud.filestore.v1beta1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all shares for a specified instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.filestore.v1beta1.ListSharesResponse> - listShares(com.google.cloud.filestore.v1beta1.ListSharesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSharesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the details of a specific share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.filestore.v1beta1.Share> - getShare(com.google.cloud.filestore.v1beta1.GetShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetShareMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createShare(com.google.cloud.filestore.v1beta1.CreateShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateShareMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteShare(com.google.cloud.filestore.v1beta1.DeleteShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteShareMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the settings of a specific share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateShare(com.google.cloud.filestore.v1beta1.UpdateShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateShareMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_CREATE_INSTANCE = 2; - private static final int METHODID_UPDATE_INSTANCE = 3; - private static final int METHODID_RESTORE_INSTANCE = 4; - private static final int METHODID_REVERT_INSTANCE = 5; - private static final int METHODID_DELETE_INSTANCE = 6; - private static final int METHODID_LIST_SNAPSHOTS = 7; - private static final int METHODID_GET_SNAPSHOT = 8; - private static final int METHODID_CREATE_SNAPSHOT = 9; - private static final int METHODID_DELETE_SNAPSHOT = 10; - private static final int METHODID_UPDATE_SNAPSHOT = 11; - private static final int METHODID_LIST_BACKUPS = 12; - private static final int METHODID_GET_BACKUP = 13; - private static final int METHODID_CREATE_BACKUP = 14; - private static final int METHODID_DELETE_BACKUP = 15; - private static final int METHODID_UPDATE_BACKUP = 16; - private static final int METHODID_LIST_SHARES = 17; - private static final int METHODID_GET_SHARE = 18; - private static final int METHODID_CREATE_SHARE = 19; - private static final int METHODID_DELETE_SHARE = 20; - private static final int METHODID_UPDATE_SHARE = 21; - - 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 CloudFilestoreManagerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CloudFilestoreManagerImplBase 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_LIST_INSTANCES: - serviceImpl.listInstances( - (com.google.cloud.filestore.v1beta1.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.filestore.v1beta1.ListInstancesResponse>) - responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance( - (com.google.cloud.filestore.v1beta1.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance( - (com.google.cloud.filestore.v1beta1.CreateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance( - (com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESTORE_INSTANCE: - serviceImpl.restoreInstance( - (com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REVERT_INSTANCE: - serviceImpl.revertInstance( - (com.google.cloud.filestore.v1beta1.RevertInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance( - (com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SNAPSHOTS: - serviceImpl.listSnapshots( - (com.google.cloud.filestore.v1beta1.ListSnapshotsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse>) - responseObserver); - break; - case METHODID_GET_SNAPSHOT: - serviceImpl.getSnapshot( - (com.google.cloud.filestore.v1beta1.GetSnapshotRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SNAPSHOT: - serviceImpl.createSnapshot( - (com.google.cloud.filestore.v1beta1.CreateSnapshotRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SNAPSHOT: - serviceImpl.deleteSnapshot( - (com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SNAPSHOT: - serviceImpl.updateSnapshot( - (com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BACKUPS: - serviceImpl.listBackups( - (com.google.cloud.filestore.v1beta1.ListBackupsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_BACKUP: - serviceImpl.getBackup( - (com.google.cloud.filestore.v1beta1.GetBackupRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_BACKUP: - serviceImpl.createBackup( - (com.google.cloud.filestore.v1beta1.CreateBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_BACKUP: - serviceImpl.deleteBackup( - (com.google.cloud.filestore.v1beta1.DeleteBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_BACKUP: - serviceImpl.updateBackup( - (com.google.cloud.filestore.v1beta1.UpdateBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SHARES: - serviceImpl.listShares( - (com.google.cloud.filestore.v1beta1.ListSharesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SHARE: - serviceImpl.getShare( - (com.google.cloud.filestore.v1beta1.GetShareRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SHARE: - serviceImpl.createShare( - (com.google.cloud.filestore.v1beta1.CreateShareRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SHARE: - serviceImpl.deleteShare( - (com.google.cloud.filestore.v1beta1.DeleteShareRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SHARE: - serviceImpl.updateShare( - (com.google.cloud.filestore.v1beta1.UpdateShareRequest) 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 CloudFilestoreManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CloudFilestoreManagerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CloudFilestoreManager"); - } - } - - private static final class CloudFilestoreManagerFileDescriptorSupplier - extends CloudFilestoreManagerBaseDescriptorSupplier { - CloudFilestoreManagerFileDescriptorSupplier() {} - } - - private static final class CloudFilestoreManagerMethodDescriptorSupplier - extends CloudFilestoreManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CloudFilestoreManagerMethodDescriptorSupplier(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 (CloudFilestoreManagerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudFilestoreManagerFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getRestoreInstanceMethod()) - .addMethod(getRevertInstanceMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getListSnapshotsMethod()) - .addMethod(getGetSnapshotMethod()) - .addMethod(getCreateSnapshotMethod()) - .addMethod(getDeleteSnapshotMethod()) - .addMethod(getUpdateSnapshotMethod()) - .addMethod(getListBackupsMethod()) - .addMethod(getGetBackupMethod()) - .addMethod(getCreateBackupMethod()) - .addMethod(getDeleteBackupMethod()) - .addMethod(getUpdateBackupMethod()) - .addMethod(getListSharesMethod()) - .addMethod(getGetShareMethod()) - .addMethod(getCreateShareMethod()) - .addMethod(getDeleteShareMethod()) - .addMethod(getUpdateShareMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java deleted file mode 100644 index 7ed9837c9bbd..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java +++ /dev/null @@ -1,88 +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/common/operation_metadata.proto - -package com.google.cloud.common; - -public final class OperationMetadataOuterClass { - private OperationMetadataOuterClass() {} - - 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_common_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_common_OperationMetadata_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/common/operation_metadata" - + ".proto\022\023google.cloud.common\032\037google/api/" - + "field_behavior.proto\032\037google/protobuf/ti" - + "mestamp.proto\"\371\001\n\021OperationMetadata\0224\n\013c" - + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pro" - + "tobuf.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\032\n\rstatus_detail\030\005 " - + "\001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022" - + "\030\n\013api_version\030\007 \001(\tB\003\340A\003BV\n\027com.google." - + "cloud.commonP\001Z9google.golang.org/genpro" - + "to/googleapis/cloud/common;commonb\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_common_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_common_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusDetail", - "CancelRequested", - "ApiVersion", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java deleted file mode 100644 index 108e446f3604..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java +++ /dev/null @@ -1,515 +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/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public final class CloudFilestoreServiceProto { - private CloudFilestoreServiceProto() {} - - 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_filestore_v1_NetworkConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_Instance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_Backup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/filestore/v1/cloud_filest" - + "ore_service.proto\022\031google.cloud.filestor" - + "e.v1\032\034google/api/annotations.proto\032\027goog" - + "le/api/client.proto\032\037google/api/field_be" - + "havior.proto\032\031google/api/resource.proto\032" - + ",google/cloud/common/operation_metadata." - + "proto\032#google/longrunning/operations.pro" - + "to\032 google/protobuf/field_mask.proto\032\037go" - + "ogle/protobuf/timestamp.proto\032\036google/pr" - + "otobuf/wrappers.proto\"\327\001\n\rNetworkConfig\022" - + "\017\n\007network\030\001 \001(\t\022C\n\005modes\030\003 \003(\01624.google" - + ".cloud.filestore.v1.NetworkConfig.Addres" - + "sMode\022\031\n\021reserved_ip_range\030\004 \001(\t\022\031\n\014ip_a" - + "ddresses\030\005 \003(\tB\003\340A\003\":\n\013AddressMode\022\034\n\030AD" - + "DRESS_MODE_UNSPECIFIED\020\000\022\r\n\tMODE_IPV4\020\001\"" - + "\301\001\n\017FileShareConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013cap" - + "acity_gb\030\002 \001(\003\0228\n\rsource_backup\030\010 \001(\tB\037\372" - + "A\034\n\032file.googleapis.com/BackupH\000\022G\n\022nfs_" - + "export_options\030\007 \003(\0132+.google.cloud.file" - + "store.v1.NfsExportOptionsB\010\n\006source\"\375\002\n\020" - + "NfsExportOptions\022\021\n\tip_ranges\030\001 \003(\t\022K\n\013a" - + "ccess_mode\030\002 \001(\01626.google.cloud.filestor" - + "e.v1.NfsExportOptions.AccessMode\022K\n\013squa" - + "sh_mode\030\003 \001(\01626.google.cloud.filestore.v" - + "1.NfsExportOptions.SquashMode\022\020\n\010anon_ui" - + "d\030\004 \001(\003\022\020\n\010anon_gid\030\005 \001(\003\"H\n\nAccessMode\022" - + "\033\n\027ACCESS_MODE_UNSPECIFIED\020\000\022\r\n\tREAD_ONL" - + "Y\020\001\022\016\n\nREAD_WRITE\020\002\"N\n\nSquashMode\022\033\n\027SQU" - + "ASH_MODE_UNSPECIFIED\020\000\022\022\n\016NO_ROOT_SQUASH" - + "\020\001\022\017\n\013ROOT_SQUASH\020\002\"\353\006\n\010Instance\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\003\022\023\n\013description\030\002 \001(\t\022=\n\005stat" - + "e\030\005 \001(\0162).google.cloud.filestore.v1.Inst" - + "ance.StateB\003\340A\003\022\033\n\016status_message\030\006 \001(\tB" - + "\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0226\n\004tier\030\010 \001(\0162(.googl" - + "e.cloud.filestore.v1.Instance.Tier\022?\n\006la" - + "bels\030\t \003(\0132/.google.cloud.filestore.v1.I" - + "nstance.LabelsEntry\022?\n\013file_shares\030\n \003(\013" - + "2*.google.cloud.filestore.v1.FileShareCo" - + "nfig\022:\n\010networks\030\013 \003(\0132(.google.cloud.fi" - + "lestore.v1.NetworkConfig\022\014\n\004etag\030\014 \001(\t\0226" - + "\n\rsatisfies_pzs\030\r \001(\0132\032.google.protobuf." - + "BoolValueB\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\n\005State\022\025\n\021STATE_" - + "UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\r" - + "\n\tREPAIRING\020\003\022\014\n\010DELETING\020\004\022\t\n\005ERROR\020\006\022\r" - + "\n\tRESTORING\020\007\"i\n\004Tier\022\024\n\020TIER_UNSPECIFIE" - + "D\020\000\022\014\n\010STANDARD\020\001\022\013\n\007PREMIUM\020\002\022\r\n\tBASIC_" - + "HDD\020\003\022\r\n\tBASIC_SSD\020\004\022\022\n\016HIGH_SCALE_SSD\020\005" - + ":_\352A\\\n\034file.googleapis.com/Instance\022\202\323\344\223\002/\022-/v1/{paren" - + "t=projects/*/locations/*}/instances\332A\006pa" - + "rent\022\237\001\n\013GetInstance\022-.google.cloud.file" - + "store.v1.GetInstanceRequest\032#.google.clo" - + "ud.filestore.v1.Instance\"<\202\323\344\223\002/\022-/v1/{n" - + "ame=projects/*/locations/*/instances/*}\332" - + "A\004name\022\365\001\n\016CreateInstance\0220.google.cloud" - + ".filestore.v1.CreateInstanceRequest\032\035.go" - + "ogle.longrunning.Operation\"\221\001\202\323\344\223\0029\"-/v1" - + "/{parent=projects/*/locations/*}/instanc" - + "es:\010instance\332A\033parent,instance,instance_" - + "id\312A1\n\010Instance\022%google.cloud.common.Ope" - + "rationMetadata\022\367\001\n\016UpdateInstance\0220.goog" - + "le.cloud.filestore.v1.UpdateInstanceRequ" - + "est\032\035.google.longrunning.Operation\"\223\001\202\323\344" - + "\223\002B26/v1/{instance.name=projects/*/locat" - + "ions/*/instances/*}:\010instance\332A\024instance" - + ",update_mask\312A1\n\010Instance\022%google.cloud." - + "common.OperationMetadata\022\331\001\n\017RestoreInst" - + "ance\0221.google.cloud.filestore.v1.Restore" - + "InstanceRequest\032\035.google.longrunning.Ope" - + "ration\"t\202\323\344\223\002:\"5/v1/{name=projects/*/loc" - + "ations/*/instances/*}:restore:\001*\312A1\n\010Ins" - + "tance\022%google.cloud.common.OperationMeta" - + "data\022\340\001\n\016DeleteInstance\0220.google.cloud.f" - + "ilestore.v1.DeleteInstanceRequest\032\035.goog" - + "le.longrunning.Operation\"}\202\323\344\223\002/*-/v1/{n" - + "ame=projects/*/locations/*/instances/*}\332" - + "A\004name\312A>\n\025google.protobuf.Empty\022%google" - + ".cloud.common.OperationMetadata\022\252\001\n\013List" - + "Backups\022-.google.cloud.filestore.v1.List" - + "BackupsRequest\032..google.cloud.filestore." - + "v1.ListBackupsResponse\"<\202\323\344\223\002-\022+/v1/{par" - + "ent=projects/*/locations/*}/backups\332A\006pa" - + "rent\022\227\001\n\tGetBackup\022+.google.cloud.filest" - + "ore.v1.GetBackupRequest\032!.google.cloud.f" - + "ilestore.v1.Backup\":\202\323\344\223\002-\022+/v1/{name=pr" - + "ojects/*/locations/*/backups/*}\332A\004name\022\347" - + "\001\n\014CreateBackup\022..google.cloud.filestore" - + ".v1.CreateBackupRequest\032\035.google.longrun" - + "ning.Operation\"\207\001\202\323\344\223\0025\"+/v1/{parent=pro" - + "jects/*/locations/*}/backups:\006backup\332A\027p" - + "arent,backup,backup_id\312A/\n\006Backup\022%googl" - + "e.cloud.common.OperationMetadata\022\332\001\n\014Del" - + "eteBackup\022..google.cloud.filestore.v1.De" - + "leteBackupRequest\032\035.google.longrunning.O" - + "peration\"{\202\323\344\223\002-*+/v1/{name=projects/*/l" - + "ocations/*/backups/*}\332A\004name\312A>\n\025google." - + "protobuf.Empty\022%google.cloud.common.Oper" - + "ationMetadata\022\351\001\n\014UpdateBackup\022..google." - + "cloud.filestore.v1.UpdateBackupRequest\032\035" - + ".google.longrunning.Operation\"\211\001\202\323\344\223\002<22" - + "/v1/{backup.name=projects/*/locations/*/" - + "backups/*}:\006backup\332A\022backup,update_mask\312" - + "A/\n\006Backup\022%google.cloud.common.Operatio" - + "nMetadata\032G\312A\023file.googleapis.com\322A.http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rmB\271\001\n\035com.google.cloud.filestore.v1B\032Cl" - + "oudFilestoreServiceProtoP\001ZBgoogle.golan" - + "g.org/genproto/googleapis/cloud/filestor" - + "e/v1;filestore\252\002\031Google.Cloud.Filestore." - + "V1\312\002\031Google\\Cloud\\Filestore\\V1b\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.common.OperationMetadataOuterClass.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor, - new java.lang.String[] { - "Network", "Modes", "ReservedIpRange", "IpAddresses", - }); - internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor, - new java.lang.String[] { - "Name", "CapacityGb", "SourceBackup", "NfsExportOptions", "Source", - }); - internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor, - new java.lang.String[] { - "IpRanges", "AccessMode", "SquashMode", "AnonUid", "AnonGid", - }); - internal_static_google_cloud_filestore_v1_Instance_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_Instance_descriptor, - new java.lang.String[] { - "Name", - "Description", - "State", - "StatusMessage", - "CreateTime", - "Tier", - "Labels", - "FileShares", - "Networks", - "Etag", - "SatisfiesPzs", - }); - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor, - new java.lang.String[] { - "Parent", "InstanceId", "Instance", - }); - internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "Instance", - }); - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor, - new java.lang.String[] { - "Name", "FileShare", "SourceBackup", "Source", - }); - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "OrderBy", "Filter", - }); - internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor, - new java.lang.String[] { - "Instances", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_filestore_v1_Backup_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_Backup_descriptor, - new java.lang.String[] { - "Name", - "Description", - "State", - "CreateTime", - "Labels", - "CapacityGb", - "StorageBytes", - "SourceInstance", - "SourceFileShare", - "SourceInstanceTier", - "DownloadBytes", - "SatisfiesPzs", - }); - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1_Backup_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor, - new java.lang.String[] { - "Parent", "Backup", "BackupId", - }); - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor, - new java.lang.String[] { - "Backup", "UpdateMask", - }); - internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "OrderBy", "Filter", - }); - internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor, - new java.lang.String[] { - "Backups", "NextPageToken", "Unreachable", - }); - 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.resource); - 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.common.OperationMetadataOuterClass.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java deleted file mode 100644 index 1bb22b9f9443..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.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/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public interface DeleteBackupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.DeleteBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_number}/locations/{location}/backups/{backup_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_number}/locations/{location}/backups/{backup_id}`
-   * 
- * - * - * 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/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java deleted file mode 100644 index 27d695f82985..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.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/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public interface DeleteInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.DeleteInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
-   * 
- * - * - * 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/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java deleted file mode 100644 index 04888e424ad5..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/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/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public interface GetBackupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.GetBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
-   * 
- * - * - * 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/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java deleted file mode 100644 index 424aad60461b..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.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/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public interface GetInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
-   * 
- * - * - * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java deleted file mode 100644 index 7ed9837c9bbd..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java +++ /dev/null @@ -1,88 +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/common/operation_metadata.proto - -package com.google.cloud.common; - -public final class OperationMetadataOuterClass { - private OperationMetadataOuterClass() {} - - 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_common_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_common_OperationMetadata_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/common/operation_metadata" - + ".proto\022\023google.cloud.common\032\037google/api/" - + "field_behavior.proto\032\037google/protobuf/ti" - + "mestamp.proto\"\371\001\n\021OperationMetadata\0224\n\013c" - + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pro" - + "tobuf.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\032\n\rstatus_detail\030\005 " - + "\001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022" - + "\030\n\013api_version\030\007 \001(\tB\003\340A\003BV\n\027com.google." - + "cloud.commonP\001Z9google.golang.org/genpro" - + "to/googleapis/cloud/common;commonb\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_common_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_common_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusDetail", - "CancelRequested", - "ApiVersion", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java deleted file mode 100644 index b1e955c7dee7..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java +++ /dev/null @@ -1,888 +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/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public final class CloudFilestoreServiceProto { - private CloudFilestoreServiceProto() {} - - 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_filestore_v1beta1_NetworkConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Share_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_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\"2/v" - + "1beta1/{parent=projects/*/locations/*}/i" - + "nstances:\010instance\332A\033parent,instance,ins" - + "tance_id\312A1\n\010Instance\022%google.cloud.comm" - + "on.OperationMetadata\022\201\002\n\016UpdateInstance\022" - + "5.google.cloud.filestore.v1beta1.UpdateI" - + "nstanceRequest\032\035.google.longrunning.Oper" - + "ation\"\230\001\202\323\344\223\002G2;/v1beta1/{instance.name=" - + "projects/*/locations/*/instances/*}:\010ins" - + "tance\332A\024instance,update_mask\312A1\n\010Instanc" - + "e\022%google.cloud.common.OperationMetadata" - + "\022\343\001\n\017RestoreInstance\0226.google.cloud.file" - + "store.v1beta1.RestoreInstanceRequest\032\035.g" - + "oogle.longrunning.Operation\"y\202\323\344\223\002?\":/v1" - + "beta1/{name=projects/*/locations/*/insta" - + "nces/*}:restore:\001*\312A1\n\010Instance\022%google." - + "cloud.common.OperationMetadata\022\340\001\n\016Rever" - + "tInstance\0225.google.cloud.filestore.v1bet" - + "a1.RevertInstanceRequest\032\035.google.longru" - + "nning.Operation\"x\202\323\344\223\002>\"9/v1beta1/{name=" - + "projects/*/locations/*/instances/*}:reve" - + "rt:\001*\312A1\n\010Instance\022%google.cloud.common." - + "OperationMetadata\022\353\001\n\016DeleteInstance\0225.g" - + "oogle.cloud.filestore.v1beta1.DeleteInst" - + "anceRequest\032\035.google.longrunning.Operati" - + "on\"\202\001\202\323\344\223\0024*2/v1beta1/{name=projects/*/l" - + "ocations/*/instances/*}\332A\004name\312A>\n\025googl" - + "e.protobuf.Empty\022%google.cloud.common.Op" - + "erationMetadata\022\315\001\n\rListSnapshots\0224.goog" - + "le.cloud.filestore.v1beta1.ListSnapshots" - + "Request\0325.google.cloud.filestore.v1beta1" - + ".ListSnapshotsResponse\"O\202\323\344\223\002@\022>/v1beta1" - + "/{parent=projects/*/locations/*/instance" - + "s/*}/snapshots\332A\006parent\022\272\001\n\013GetSnapshot\022" - + "2.google.cloud.filestore.v1beta1.GetSnap" - + "shotRequest\032(.google.cloud.filestore.v1b" - + "eta1.Snapshot\"M\202\323\344\223\002@\022>/v1beta1/{name=pr" - + "ojects/*/locations/*/instances/*/snapsho" - + "ts/*}\332A\004name\022\213\002\n\016CreateSnapshot\0225.google" - + ".cloud.filestore.v1beta1.CreateSnapshotR" - + "equest\032\035.google.longrunning.Operation\"\242\001" - + "\202\323\344\223\002J\">/v1beta1/{parent=projects/*/loca" - + "tions/*/instances/*}/snapshots:\010snapshot" - + "\332A\033parent,snapshot,snapshot_id\312A1\n\010Snaps" - + "hot\022%google.cloud.common.OperationMetada" - + "ta\022\367\001\n\016DeleteSnapshot\0225.google.cloud.fil" - + "estore.v1beta1.DeleteSnapshotRequest\032\035.g" - + "oogle.longrunning.Operation\"\216\001\202\323\344\223\002@*>/v" - + "1beta1/{name=projects/*/locations/*/inst" - + "ances/*/snapshots/*}\332A\004name\312A>\n\025google.p" - + "rotobuf.Empty\022%google.cloud.common.Opera" - + "tionMetadata\022\215\002\n\016UpdateSnapshot\0225.google" - + ".cloud.filestore.v1beta1.UpdateSnapshotR" - + "equest\032\035.google.longrunning.Operation\"\244\001" - + "\202\323\344\223\002S2G/v1beta1/{snapshot.name=projects" - + "/*/locations/*/instances/*/snapshots/*}:" - + "\010snapshot\332A\024snapshot,update_mask\312A1\n\010Sna" - + "pshot\022%google.cloud.common.OperationMeta" - + "data\022\271\001\n\013ListBackups\0222.google.cloud.file" - + "store.v1beta1.ListBackupsRequest\0323.googl" - + "e.cloud.filestore.v1beta1.ListBackupsRes" - + "ponse\"A\202\323\344\223\0022\0220/v1beta1/{parent=projects" - + "/*/locations/*}/backups\332A\006parent\022\246\001\n\tGet" - + "Backup\0220.google.cloud.filestore.v1beta1." - + "GetBackupRequest\032&.google.cloud.filestor" - + "e.v1beta1.Backup\"?\202\323\344\223\0022\0220/v1beta1/{name" - + "=projects/*/locations/*/backups/*}\332A\004nam" - + "e\022\361\001\n\014CreateBackup\0223.google.cloud.filest" - + "ore.v1beta1.CreateBackupRequest\032\035.google" - + ".longrunning.Operation\"\214\001\202\323\344\223\002:\"0/v1beta" - + "1/{parent=projects/*/locations/*}/backup" - + "s:\006backup\332A\027parent,backup,backup_id\312A/\n\006" - + "Backup\022%google.cloud.common.OperationMet" - + "adata\022\345\001\n\014DeleteBackup\0223.google.cloud.fi" - + "lestore.v1beta1.DeleteBackupRequest\032\035.go" - + "ogle.longrunning.Operation\"\200\001\202\323\344\223\0022*0/v1" - + "beta1/{name=projects/*/locations/*/backu" - + "ps/*}\332A\004name\312A>\n\025google.protobuf.Empty\022%" - + "google.cloud.common.OperationMetadata\022\363\001" - + "\n\014UpdateBackup\0223.google.cloud.filestore." - + "v1beta1.UpdateBackupRequest\032\035.google.lon" - + "grunning.Operation\"\216\001\202\323\344\223\002A27/v1beta1/{b" - + "ackup.name=projects/*/locations/*/backup" - + "s/*}:\006backup\332A\022backup,update_mask\312A/\n\006Ba" - + "ckup\022%google.cloud.common.OperationMetad" - + "ata\022\301\001\n\nListShares\0221.google.cloud.filest" - + "ore.v1beta1.ListSharesRequest\0322.google.c" - + "loud.filestore.v1beta1.ListSharesRespons" - + "e\"L\202\323\344\223\002=\022;/v1beta1/{parent=projects/*/l" - + "ocations/*/instances/*}/shares\332A\006parent\022" - + "\256\001\n\010GetShare\022/.google.cloud.filestore.v1" - + "beta1.GetShareRequest\032%.google.cloud.fil" - + "estore.v1beta1.Share\"J\202\323\344\223\002=\022;/v1beta1/{" - + "name=projects/*/locations/*/instances/*/" - + "shares/*}\332A\004name\022\366\001\n\013CreateShare\0222.googl" - + "e.cloud.filestore.v1beta1.CreateShareReq" - + "uest\032\035.google.longrunning.Operation\"\223\001\202\323" - + "\344\223\002D\";/v1beta1/{parent=projects/*/locati" - + "ons/*/instances/*}/shares:\005share\332A\025paren" - + "t,share,share_id\312A.\n\005Share\022%google.cloud" - + ".common.OperationMetadata\022\356\001\n\013DeleteShar" - + "e\0222.google.cloud.filestore.v1beta1.Delet" - + "eShareRequest\032\035.google.longrunning.Opera" - + "tion\"\213\001\202\323\344\223\002=*;/v1beta1/{name=projects/*" - + "/locations/*/instances/*/shares/*}\332A\004nam" - + "e\312A>\n\025google.protobuf.Empty\022%google.clou" - + "d.common.OperationMetadata\022\370\001\n\013UpdateSha" - + "re\0222.google.cloud.filestore.v1beta1.Upda" - + "teShareRequest\032\035.google.longrunning.Oper" - + "ation\"\225\001\202\323\344\223\002J2A/v1beta1/{share.name=pro" - + "jects/*/locations/*/instances/*/shares/*" - + "}:\005share\332A\021share,update_mask\312A.\n\005Share\022%" - + "google.cloud.common.OperationMetadata\032G\312" - + "A\023file.googleapis.com\322A.https://www.goog" - + "leapis.com/auth/cloud-platformB\315\001\n\"com.g" - + "oogle.cloud.filestore.v1beta1B\032CloudFile" - + "storeServiceProtoP\001ZGgoogle.golang.org/g" - + "enproto/googleapis/cloud/filestore/v1bet" - + "a1;filestore\252\002\036Google.Cloud.Filestore.V1" - + "Beta1\312\002\036Google\\Cloud\\Filestore\\V1beta1b\006" - + "proto3" - }; - 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.common.OperationMetadataOuterClass.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor, - new java.lang.String[] { - "Network", "Modes", "ReservedIpRange", "IpAddresses", "ConnectMode", - }); - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor, - new java.lang.String[] { - "Name", "CapacityGb", "SourceBackup", "NfsExportOptions", "Source", - }); - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor, - new java.lang.String[] { - "IpRanges", "AccessMode", "SquashMode", "AnonUid", "AnonGid", - }); - internal_static_google_cloud_filestore_v1beta1_Instance_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Instance_descriptor, - new java.lang.String[] { - "Name", - "Description", - "State", - "StatusMessage", - "CreateTime", - "Tier", - "Labels", - "FileShares", - "Networks", - "Etag", - "SatisfiesPzs", - "KmsKeyName", - "SuspensionReasons", - "MaxCapacityGb", - "CapacityStepSizeGb", - "MaxShareCount", - "CapacityGb", - "MultiShareEnabled", - }); - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1beta1_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor, - new java.lang.String[] { - "Parent", "InstanceId", "Instance", - }); - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "Instance", - }); - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor, - new java.lang.String[] { - "Name", "FileShare", "SourceSnapshot", "SourceBackup", "Source", - }); - internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor, - new java.lang.String[] { - "Name", "TargetSnapshotId", - }); - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor, - new java.lang.String[] { - "Name", "Force", - }); - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "OrderBy", "Filter", - }); - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor, - new java.lang.String[] { - "Instances", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor, - new java.lang.String[] { - "Name", "Description", "State", "CreateTime", "Labels", "FilesystemUsedBytes", - }); - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor, - new java.lang.String[] { - "Parent", "SnapshotId", "Snapshot", - }); - internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "Snapshot", - }); - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "OrderBy", "Filter", - }); - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor, - new java.lang.String[] { - "Snapshots", "NextPageToken", - }); - internal_static_google_cloud_filestore_v1beta1_Backup_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Backup_descriptor, - new java.lang.String[] { - "Name", - "Description", - "State", - "CreateTime", - "Labels", - "CapacityGb", - "StorageBytes", - "SourceInstance", - "SourceFileShare", - "SourceInstanceTier", - "DownloadBytes", - "SatisfiesPzs", - "KmsKeyName", - }); - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1beta1_Backup_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor, - new java.lang.String[] { - "Parent", "Backup", "BackupId", - }); - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor, - new java.lang.String[] { - "Backup", "UpdateMask", - }); - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "OrderBy", "Filter", - }); - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor, - new java.lang.String[] { - "Backups", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_filestore_v1beta1_Share_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Share_descriptor, - new java.lang.String[] { - "Name", - "MountName", - "Description", - "CapacityGb", - "NfsExportOptions", - "State", - "CreateTime", - "Labels", - }); - internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1beta1_Share_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor, - new java.lang.String[] { - "Parent", "ShareId", "Share", - }); - internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "OrderBy", "Filter", - }); - internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor, - new java.lang.String[] { - "Shares", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor, - new java.lang.String[] { - "Share", "UpdateMask", - }); - 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.resource); - 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.common.OperationMetadataOuterClass.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java deleted file mode 100644 index fae4deaa5d9c..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface DeleteBackupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_id}/locations/{location}/backups/{backup_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_id}/locations/{location}/backups/{backup_id}`
-   * 
- * - * - * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java deleted file mode 100644 index 17734c29beda..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface DeleteShareRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteShareRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The share resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The share resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
-   * 
- * - * - * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java deleted file mode 100644 index d43d14ab5296..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface DeleteSnapshotRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The snapshot resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The snapshot resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
-   * 
- * - * - * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java deleted file mode 100644 index f3dee8caed94..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/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/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface GetBackupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
-   * 
- * - * - * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java deleted file mode 100644 index 0e9ef0cd5a51..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface GetInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
-   * 
- * - * - * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java deleted file mode 100644 index 7bb0a84a149c..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface GetShareRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetShareRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The share resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The share resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
-   * 
- * - * - * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java deleted file mode 100644 index 1ce175fa576b..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface GetSnapshotRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetSnapshotRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The snapshot resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The snapshot resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
-   * 
- * - * - * 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/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java similarity index 99% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java index 467082ec489c..359f2d88baef 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java +++ b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java @@ -30,6 +30,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.common.OperationMetadata; diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerCallableFactory.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerCallableFactory.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerCallableFactory.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerCallableFactory.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java similarity index 99% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java index 9b40d2cb2c20..8883443cffbb 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java +++ b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java @@ -49,6 +49,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/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java similarity index 99% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java index 268519024da1..c937c1f32ca2 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java +++ b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java @@ -31,6 +31,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/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManager.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManager.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManager.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManager.java diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java diff --git a/owl-bot-staging/java-filestore/v1/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java b/owl-bot-staging/java-filestore/v1/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java new file mode 100644 index 000000000000..f132c8392cdc --- /dev/null +++ b/owl-bot-staging/java-filestore/v1/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java @@ -0,0 +1,1270 @@ +package com.google.cloud.filestore.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Configures and manages Cloud Filestore resources.
+ * Cloud Filestore Manager v1.
+ * The `file.googleapis.com` service implements the Cloud Filestore API and
+ * defines the following resource model for managing instances:
+ * * The service works with a collection of cloud projects, named: `/projects/*`
+ * * Each project has a collection of available locations, named: `/locations/*`
+ * * Each location has a collection of instances and backups, named:
+ * `/instances/*` and `/backups/*` respectively.
+ * * As such, Cloud Filestore instances are resources of the form:
+ *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
+ *   and backups are resources of the form:
+ *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
+ * Note that location_id must be a GCP `zone` for instances and but to a GCP
+ * `region` for backups; for example:
+ * * `projects/12345/locations/us-central1-c/instances/my-filestore`
+ * * `projects/12345/locations/us-central1/backups/my-backup`
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/filestore/v1/cloud_filestore_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CloudFilestoreManagerGrpc { + + private CloudFilestoreManagerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.filestore.v1.CloudFilestoreManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.filestore.v1.ListInstancesRequest.class, + responseType = com.google.cloud.filestore.v1.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListInstancesMethod() { + io.grpc.MethodDescriptor getListInstancesMethod; + if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { + CloudFilestoreManagerGrpc.getListInstancesMethod = getListInstancesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.ListInstancesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.ListInstancesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.filestore.v1.GetInstanceRequest.class, + responseType = com.google.cloud.filestore.v1.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetInstanceMethod() { + io.grpc.MethodDescriptor getGetInstanceMethod; + if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getGetInstanceMethod = getGetInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.GetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.Instance.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInstance", + requestType = com.google.cloud.filestore.v1.CreateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateInstanceMethod() { + io.grpc.MethodDescriptor getCreateInstanceMethod; + if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getCreateInstanceMethod = getCreateInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.CreateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("CreateInstance")) + .build(); + } + } + } + return getCreateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.filestore.v1.UpdateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateInstanceMethod() { + io.grpc.MethodDescriptor getUpdateInstanceMethod; + if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.UpdateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getRestoreInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreInstance", + requestType = com.google.cloud.filestore.v1.RestoreInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRestoreInstanceMethod() { + io.grpc.MethodDescriptor getRestoreInstanceMethod; + if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getRestoreInstanceMethod = getRestoreInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.RestoreInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("RestoreInstance")) + .build(); + } + } + } + return getRestoreInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", + requestType = com.google.cloud.filestore.v1.DeleteInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteInstanceMethod() { + io.grpc.MethodDescriptor getDeleteInstanceMethod; + if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getDeleteInstanceMethod = getDeleteInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.DeleteInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("DeleteInstance")) + .build(); + } + } + } + return getDeleteInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getListBackupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackups", + requestType = com.google.cloud.filestore.v1.ListBackupsRequest.class, + responseType = com.google.cloud.filestore.v1.ListBackupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListBackupsMethod() { + io.grpc.MethodDescriptor getListBackupsMethod; + if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1.ListBackupsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.ListBackupsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListBackups")) + .build(); + } + } + } + return getListBackupsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackup", + requestType = com.google.cloud.filestore.v1.GetBackupRequest.class, + responseType = com.google.cloud.filestore.v1.Backup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBackupMethod() { + io.grpc.MethodDescriptor getGetBackupMethod; + if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1.GetBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.Backup.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetBackup")) + .build(); + } + } + } + return getGetBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBackup", + requestType = com.google.cloud.filestore.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 = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getCreateBackupMethod = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1.CreateBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("CreateBackup")) + .build(); + } + } + } + return getCreateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", + requestType = com.google.cloud.filestore.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 = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getDeleteBackupMethod = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1.DeleteBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("DeleteBackup")) + .build(); + } + } + } + return getDeleteBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", + requestType = com.google.cloud.filestore.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 = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getUpdateBackupMethod = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1.UpdateBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("UpdateBackup")) + .build(); + } + } + } + return getUpdateBackupMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static CloudFilestoreManagerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFilestoreManagerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerStub(channel, callOptions); + } + }; + return CloudFilestoreManagerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CloudFilestoreManagerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFilestoreManagerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerBlockingStub(channel, callOptions); + } + }; + return CloudFilestoreManagerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CloudFilestoreManagerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFilestoreManagerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerFutureStub(channel, callOptions); + } + }; + return CloudFilestoreManagerFutureStub.newStub(factory, channel); + } + + /** + *
+   * Configures and manages Cloud Filestore resources.
+   * Cloud Filestore Manager v1.
+   * The `file.googleapis.com` service implements the Cloud Filestore API and
+   * defines the following resource model for managing instances:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Cloud Filestore instances are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
+   *   and backups are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id must be a GCP `zone` for instances and but to a GCP
+   * `region` for backups; for example:
+   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
+   * * `projects/12345/locations/us-central1/backups/my-backup`
+   * 
+ */ + public static abstract class CloudFilestoreManagerImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public void listInstances(com.google.cloud.filestore.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public void getInstance(com.google.cloud.filestore.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); + } + + /** + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public void createInstance(com.google.cloud.filestore.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); + } + + /** + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public void updateInstance(com.google.cloud.filestore.v1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); + } + + /** + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public void restoreInstance(com.google.cloud.filestore.v1.RestoreInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreInstanceMethod(), responseObserver); + } + + /** + *
+     * Deletes an instance.
+     * 
+ */ + public void deleteInstance(com.google.cloud.filestore.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); + } + + /** + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public void listBackups(com.google.cloud.filestore.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBackupsMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public void getBackup(com.google.cloud.filestore.v1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); + } + + /** + *
+     * Creates a backup.
+     * 
+ */ + public void createBackup(com.google.cloud.filestore.v1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBackupMethod(), responseObserver); + } + + /** + *
+     * Deletes a backup.
+     * 
+ */ + public void deleteBackup(com.google.cloud.filestore.v1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBackupMethod(), responseObserver); + } + + /** + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public void updateBackup(com.google.cloud.filestore.v1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBackupMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.ListInstancesRequest, + com.google.cloud.filestore.v1.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.GetInstanceRequest, + com.google.cloud.filestore.v1.Instance>( + this, METHODID_GET_INSTANCE))) + .addMethod( + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.CreateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.UpdateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getRestoreInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.RestoreInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_RESTORE_INSTANCE))) + .addMethod( + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.DeleteInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_INSTANCE))) + .addMethod( + getListBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.ListBackupsRequest, + com.google.cloud.filestore.v1.ListBackupsResponse>( + this, METHODID_LIST_BACKUPS))) + .addMethod( + getGetBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.GetBackupRequest, + com.google.cloud.filestore.v1.Backup>( + this, METHODID_GET_BACKUP))) + .addMethod( + getCreateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.CreateBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_BACKUP))) + .addMethod( + getDeleteBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.DeleteBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_BACKUP))) + .addMethod( + getUpdateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.UpdateBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_BACKUP))) + .build(); + } + } + + /** + *
+   * Configures and manages Cloud Filestore resources.
+   * Cloud Filestore Manager v1.
+   * The `file.googleapis.com` service implements the Cloud Filestore API and
+   * defines the following resource model for managing instances:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Cloud Filestore instances are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
+   *   and backups are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id must be a GCP `zone` for instances and but to a GCP
+   * `region` for backups; for example:
+   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
+   * * `projects/12345/locations/us-central1/backups/my-backup`
+   * 
+ */ + public static final class CloudFilestoreManagerStub extends io.grpc.stub.AbstractAsyncStub { + private CloudFilestoreManagerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudFilestoreManagerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerStub(channel, callOptions); + } + + /** + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public void listInstances(com.google.cloud.filestore.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public void getInstance(com.google.cloud.filestore.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public void createInstance(com.google.cloud.filestore.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public void updateInstance(com.google.cloud.filestore.v1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public void restoreInstance(com.google.cloud.filestore.v1.RestoreInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an instance.
+     * 
+ */ + public void deleteInstance(com.google.cloud.filestore.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public void listBackups(com.google.cloud.filestore.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public void getBackup(com.google.cloud.filestore.v1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a backup.
+     * 
+ */ + public void createBackup(com.google.cloud.filestore.v1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a backup.
+     * 
+ */ + public void deleteBackup(com.google.cloud.filestore.v1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public void updateBackup(com.google.cloud.filestore.v1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Configures and manages Cloud Filestore resources.
+   * Cloud Filestore Manager v1.
+   * The `file.googleapis.com` service implements the Cloud Filestore API and
+   * defines the following resource model for managing instances:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Cloud Filestore instances are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
+   *   and backups are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id must be a GCP `zone` for instances and but to a GCP
+   * `region` for backups; for example:
+   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
+   * * `projects/12345/locations/us-central1/backups/my-backup`
+   * 
+ */ + public static final class CloudFilestoreManagerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private CloudFilestoreManagerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudFilestoreManagerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public com.google.cloud.filestore.v1.ListInstancesResponse listInstances(com.google.cloud.filestore.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public com.google.cloud.filestore.v1.Instance getInstance(com.google.cloud.filestore.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public com.google.longrunning.Operation createInstance(com.google.cloud.filestore.v1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance(com.google.cloud.filestore.v1.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public com.google.longrunning.Operation restoreInstance(com.google.cloud.filestore.v1.RestoreInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an instance.
+     * 
+ */ + public com.google.longrunning.Operation deleteInstance(com.google.cloud.filestore.v1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public com.google.cloud.filestore.v1.ListBackupsResponse listBackups(com.google.cloud.filestore.v1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public com.google.cloud.filestore.v1.Backup getBackup(com.google.cloud.filestore.v1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a backup.
+     * 
+ */ + public com.google.longrunning.Operation createBackup(com.google.cloud.filestore.v1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBackupMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a backup.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackup(com.google.cloud.filestore.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackupMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public com.google.longrunning.Operation updateBackup(com.google.cloud.filestore.v1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBackupMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Configures and manages Cloud Filestore resources.
+   * Cloud Filestore Manager v1.
+   * The `file.googleapis.com` service implements the Cloud Filestore API and
+   * defines the following resource model for managing instances:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Cloud Filestore instances are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
+   *   and backups are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id must be a GCP `zone` for instances and but to a GCP
+   * `region` for backups; for example:
+   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
+   * * `projects/12345/locations/us-central1/backups/my-backup`
+   * 
+ */ + public static final class CloudFilestoreManagerFutureStub extends io.grpc.stub.AbstractFutureStub { + private CloudFilestoreManagerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudFilestoreManagerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerFutureStub(channel, callOptions); + } + + /** + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listInstances( + com.google.cloud.filestore.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getInstance( + com.google.cloud.filestore.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createInstance( + com.google.cloud.filestore.v1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateInstance( + com.google.cloud.filestore.v1.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture restoreInstance( + com.google.cloud.filestore.v1.RestoreInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteInstance( + com.google.cloud.filestore.v1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listBackups( + com.google.cloud.filestore.v1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getBackup( + com.google.cloud.filestore.v1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createBackup( + com.google.cloud.filestore.v1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteBackup( + com.google.cloud.filestore.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateBackup( + com.google.cloud.filestore.v1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_CREATE_INSTANCE = 2; + private static final int METHODID_UPDATE_INSTANCE = 3; + private static final int METHODID_RESTORE_INSTANCE = 4; + private static final int METHODID_DELETE_INSTANCE = 5; + private static final int METHODID_LIST_BACKUPS = 6; + private static final int METHODID_GET_BACKUP = 7; + private static final int METHODID_CREATE_BACKUP = 8; + private static final int METHODID_DELETE_BACKUP = 9; + private static final int METHODID_UPDATE_BACKUP = 10; + + 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 CloudFilestoreManagerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CloudFilestoreManagerImplBase 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_LIST_INSTANCES: + serviceImpl.listInstances((com.google.cloud.filestore.v1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance((com.google.cloud.filestore.v1.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_INSTANCE: + serviceImpl.createInstance((com.google.cloud.filestore.v1.CreateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance((com.google.cloud.filestore.v1.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESTORE_INSTANCE: + serviceImpl.restoreInstance((com.google.cloud.filestore.v1.RestoreInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INSTANCE: + serviceImpl.deleteInstance((com.google.cloud.filestore.v1.DeleteInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BACKUPS: + serviceImpl.listBackups((com.google.cloud.filestore.v1.ListBackupsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BACKUP: + serviceImpl.getBackup((com.google.cloud.filestore.v1.GetBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_BACKUP: + serviceImpl.createBackup((com.google.cloud.filestore.v1.CreateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BACKUP: + serviceImpl.deleteBackup((com.google.cloud.filestore.v1.DeleteBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BACKUP: + serviceImpl.updateBackup((com.google.cloud.filestore.v1.UpdateBackupRequest) 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 CloudFilestoreManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CloudFilestoreManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CloudFilestoreManager"); + } + } + + private static final class CloudFilestoreManagerFileDescriptorSupplier + extends CloudFilestoreManagerBaseDescriptorSupplier { + CloudFilestoreManagerFileDescriptorSupplier() {} + } + + private static final class CloudFilestoreManagerMethodDescriptorSupplier + extends CloudFilestoreManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CloudFilestoreManagerMethodDescriptorSupplier(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 (CloudFilestoreManagerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudFilestoreManagerFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getRestoreInstanceMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getListBackupsMethod()) + .addMethod(getGetBackupMethod()) + .addMethod(getCreateBackupMethod()) + .addMethod(getDeleteBackupMethod()) + .addMethod(getUpdateBackupMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java similarity index 71% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java index cd3f8c6dcec5..07036dbcf704 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/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/common/operation_metadata.proto package com.google.cloud.common; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.common.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.common.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,42 +28,37 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.common.OperationMetadata.class, - com.google.cloud.common.OperationMetadata.Builder.class); + com.google.cloud.common.OperationMetadata.class, com.google.cloud.common.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 @@ -89,15 +66,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 @@ -105,14 +78,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() { @@ -122,15 +92,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 @@ -138,15 +104,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 @@ -154,14 +116,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() { @@ -171,14 +130,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 @@ -187,29 +143,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 { @@ -220,14 +176,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 @@ -236,29 +189,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 { @@ -269,14 +222,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ @java.lang.Override @@ -285,29 +235,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -318,8 +268,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -328,7 +276,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -339,14 +286,11 @@ public boolean getCancelRequested() { 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 @@ -355,29 +299,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 { @@ -386,7 +330,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -398,7 +341,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -430,10 +374,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_); @@ -445,7 +391,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -458,27 +405,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.common.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.common.OperationMetadata other = - (com.google.cloud.common.OperationMetadata) obj; + com.google.cloud.common.OperationMetadata other = (com.google.cloud.common.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 (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (getCancelRequested() != other.getCancelRequested()) 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 (!getStatusDetail() + .equals(other.getStatusDetail())) return false; + if (getCancelRequested() + != other.getCancelRequested()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -505,7 +458,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -513,136 +467,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.common.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.common.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.common.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.common.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.common.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.common.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.common.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.common.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.common.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.common.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.common.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.common.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.common.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.common.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.common.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.common.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.common.OperationMetadata) com.google.cloud.common.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.common.OperationMetadata.class, - com.google.cloud.common.OperationMetadata.Builder.class); + com.google.cloud.common.OperationMetadata.class, com.google.cloud.common.OperationMetadata.Builder.class); } // Construct using com.google.cloud.common.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -672,9 +620,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override @@ -693,8 +641,7 @@ public com.google.cloud.common.OperationMetadata build() { @java.lang.Override public com.google.cloud.common.OperationMetadata buildPartial() { - com.google.cloud.common.OperationMetadata result = - new com.google.cloud.common.OperationMetadata(this); + com.google.cloud.common.OperationMetadata result = new com.google.cloud.common.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -718,39 +665,38 @@ public com.google.cloud.common.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.common.OperationMetadata) { - return mergeFrom((com.google.cloud.common.OperationMetadata) other); + return mergeFrom((com.google.cloud.common.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -810,55 +756,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - statusDetail_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: - { - cancelRequested_ = input.readBool(); - - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + statusDetail_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: { + cancelRequested_ = input.readBool(); + + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -871,58 +813,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) { @@ -938,17 +861,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(); @@ -959,21 +879,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; } @@ -985,15 +901,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) { @@ -1007,64 +919,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_; @@ -1072,35 +968,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() { @@ -1111,14 +996,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) { @@ -1134,16 +1016,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(); @@ -1154,20 +1034,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; } @@ -1179,14 +1056,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) { @@ -1200,59 +1074,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_; @@ -1260,20 +1123,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; @@ -1282,21 +1143,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 { @@ -1304,61 +1164,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; @@ -1366,20 +1219,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; @@ -1388,21 +1239,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 { @@ -1410,61 +1260,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; @@ -1472,20 +1315,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusDetail_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1494,21 +1335,20 @@ public java.lang.String getStatusDetail() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1516,70 +1356,61 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail(java.lang.String value) { + public Builder setStatusDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_; + private boolean cancelRequested_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1588,7 +1419,6 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -1596,8 +1426,6 @@ public boolean getCancelRequested() { return cancelRequested_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1606,19 +1434,16 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1627,11 +1452,10 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1639,20 +1463,18 @@ public Builder clearCancelRequested() { 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; @@ -1661,21 +1483,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 { @@ -1683,68 +1504,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); } @@ -1754,12 +1568,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.common.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.common.OperationMetadata) private static final com.google.cloud.common.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.common.OperationMetadata(); } @@ -1768,27 +1582,27 @@ public static com.google.cloud.common.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1803,4 +1617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.common.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java similarity index 74% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java index 9d77fb3b23d3..03b8d68c0be5 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/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/common/operation_metadata.proto package com.google.cloud.common; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.common.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_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString getStatusDetailBytes(); + com.google.protobuf.ByteString + getStatusDetailBytes(); /** - * - * *
    * 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 cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ boolean getCancelRequested(); /** - * - * *
    * 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/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java new file mode 100644 index 000000000000..8b00f4c11630 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/common/operation_metadata.proto + +package com.google.cloud.common; + +public final class OperationMetadataOuterClass { + private OperationMetadataOuterClass() {} + 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_common_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_common_OperationMetadata_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/common/operation_metadata" + + ".proto\022\023google.cloud.common\032\037google/api/" + + "field_behavior.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\371\001\n\021OperationMetadata\0224\n\013c" + + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pro" + + "tobuf.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\032\n\rstatus_detail\030\005 " + + "\001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022" + + "\030\n\013api_version\030\007 \001(\tB\003\340A\003BV\n\027com.google." + + "cloud.commonP\001Z9google.golang.org/genpro" + + "to/googleapis/cloud/common;commonb\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_common_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_common_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java similarity index 67% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java index 9995923d37c8..205aea38ffee 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * A Cloud Filestore backup.
  * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.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_ = ""; description_ = ""; @@ -48,54 +30,51 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Backup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_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 5: 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.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.Backup.class, - com.google.cloud.filestore.v1.Backup.Builder.class); + com.google.cloud.filestore.v1.Backup.class, com.google.cloud.filestore.v1.Backup.Builder.class); } /** - * - * *
    * The backup state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.Backup.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State not set.
      * 
@@ -104,8 +83,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Backup is being created.
      * 
@@ -114,8 +91,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * Backup has been taken and the operation is being finalized. At this
      * point, changes to the file share will not be reflected in the backup.
@@ -125,8 +100,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     FINALIZING(2),
     /**
-     *
-     *
      * 
      * Backup is available for use.
      * 
@@ -135,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(3), /** - * - * *
      * Backup is being deleted.
      * 
@@ -148,8 +119,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * State not set.
      * 
@@ -158,8 +127,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Backup is being created.
      * 
@@ -168,8 +135,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * Backup has been taken and the operation is being finalized. At this
      * point, changes to the file share will not be reflected in the backup.
@@ -179,8 +144,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FINALIZING_VALUE = 2;
     /**
-     *
-     *
      * 
      * Backup is available for use.
      * 
@@ -189,8 +152,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 3; /** - * - * *
      * Backup is being deleted.
      * 
@@ -199,6 +160,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -223,53 +185,51 @@ 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 FINALIZING; - case 3: - return READY; - case 4: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return FINALIZING; + case 3: return READY; + case 4: 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.filestore.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; @@ -289,15 +249,12 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -306,30 +263,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 resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -340,15 +297,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -357,30 +311,30 @@ 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; } } /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @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 { @@ -391,55 +345,38 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
    * Output only. The backup state.
    * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.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 backup state.
    * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.filestore.v1.Backup.State getState() { + @java.lang.Override public com.google.cloud.filestore.v1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Backup.State result = - com.google.cloud.filestore.v1.Backup.State.valueOf(state_); + com.google.cloud.filestore.v1.Backup.State result = com.google.cloud.filestore.v1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1.Backup.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -447,15 +384,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -463,14 +396,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -478,23 +408,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_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() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_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() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -503,30 +434,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ + @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(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -534,12 +463,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -547,16 +475,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @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; } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -564,11 +492,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 5; */ @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(); } @@ -578,14 +507,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int CAPACITY_GB_FIELD_NUMBER = 6; private long capacityGb_; /** - * - * *
    * Output only. Capacity of the source file share when the backup was created.
    * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityGb. */ @java.lang.Override @@ -596,15 +522,12 @@ public long getCapacityGb() { public static final int STORAGE_BYTES_FIELD_NUMBER = 7; private long storageBytes_; /** - * - * *
    * Output only. The size of the storage used by the backup. As backups share
    * storage, this number is expected to change with backup creation/deletion.
    * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ @java.lang.Override @@ -615,8 +538,6 @@ public long getStorageBytes() { public static final int SOURCE_INSTANCE_FIELD_NUMBER = 8; private volatile java.lang.Object sourceInstance_; /** - * - * *
    * The resource name of the source Cloud Filestore instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -624,7 +545,6 @@ public long getStorageBytes() {
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceInstance. */ @java.lang.Override @@ -633,15 +553,14 @@ public java.lang.String getSourceInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceInstance_ = s; return s; } } /** - * - * *
    * The resource name of the source Cloud Filestore instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -649,15 +568,16 @@ public java.lang.String getSourceInstance() {
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceInstance. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceInstanceBytes() { + public com.google.protobuf.ByteString + getSourceInstanceBytes() { java.lang.Object ref = sourceInstance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceInstance_ = b; return b; } else { @@ -668,15 +588,12 @@ public com.google.protobuf.ByteString getSourceInstanceBytes() { public static final int SOURCE_FILE_SHARE_FIELD_NUMBER = 9; private volatile java.lang.Object sourceFileShare_; /** - * - * *
    * Name of the file share in the source Cloud Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The sourceFileShare. */ @java.lang.Override @@ -685,30 +602,30 @@ public java.lang.String getSourceFileShare() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFileShare_ = s; return s; } } /** - * - * *
    * Name of the file share in the source Cloud Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The bytes for sourceFileShare. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceFileShareBytes() { + public com.google.protobuf.ByteString + getSourceFileShareBytes() { java.lang.Object ref = sourceFileShare_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFileShare_ = b; return b; } else { @@ -719,50 +636,35 @@ public com.google.protobuf.ByteString getSourceFileShareBytes() { public static final int SOURCE_INSTANCE_TIER_FIELD_NUMBER = 10; private int sourceInstanceTier_; /** - * - * *
    * Output only. The service tier of the source Cloud Filestore instance that
    * this backup is created from.
    * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for sourceInstanceTier. */ - @java.lang.Override - public int getSourceInstanceTierValue() { + @java.lang.Override public int getSourceInstanceTierValue() { return sourceInstanceTier_; } /** - * - * *
    * Output only. The service tier of the source Cloud Filestore instance that
    * this backup is created from.
    * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceInstanceTier. */ - @java.lang.Override - public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() { + @java.lang.Override public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.Tier result = - com.google.cloud.filestore.v1.Instance.Tier.valueOf(sourceInstanceTier_); + com.google.cloud.filestore.v1.Instance.Tier result = com.google.cloud.filestore.v1.Instance.Tier.valueOf(sourceInstanceTier_); return result == null ? com.google.cloud.filestore.v1.Instance.Tier.UNRECOGNIZED : result; } public static final int DOWNLOAD_BYTES_FIELD_NUMBER = 11; private long downloadBytes_; /** - * - * *
    * Output only. Amount of bytes that will be downloaded if the backup is
    * restored. This may be different than storage bytes, since sequential
@@ -770,7 +672,6 @@ public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() {
    * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The downloadBytes. */ @java.lang.Override @@ -781,16 +682,11 @@ public long getDownloadBytes() { public static final int SATISFIES_PZS_FIELD_NUMBER = 12; private com.google.protobuf.BoolValue satisfiesPzs_; /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ @java.lang.Override @@ -798,34 +694,23 @@ public boolean hasSatisfiesPzs() { return satisfiesPzs_ != null; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ @java.lang.Override public com.google.protobuf.BoolValue getSatisfiesPzs() { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { @@ -833,7 +718,6 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -845,7 +729,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -858,8 +743,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(4, getCreateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); if (capacityGb_ != 0L) { output.writeInt64(6, capacityGb_); } @@ -872,8 +761,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sourceFileShare_); } - if (sourceInstanceTier_ - != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { + if (sourceInstanceTier_ != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(10, sourceInstanceTier_); } if (downloadBytes_ != 0L) { @@ -898,26 +786,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - 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(5, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); + } + 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(5, labels__); } if (capacityGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, capacityGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, capacityGb_); } if (storageBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, storageBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, storageBytes_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceInstance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceInstance_); @@ -925,15 +817,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sourceFileShare_); } - if (sourceInstanceTier_ - != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sourceInstanceTier_); + if (sourceInstanceTier_ != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, sourceInstanceTier_); } if (downloadBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, downloadBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, downloadBytes_); } if (satisfiesPzs_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSatisfiesPzs()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getSatisfiesPzs()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -943,30 +837,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.Backup)) { return super.equals(obj); } com.google.cloud.filestore.v1.Backup other = (com.google.cloud.filestore.v1.Backup) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (getCapacityGb() != other.getCapacityGb()) return false; - if (getStorageBytes() != other.getStorageBytes()) return false; - if (!getSourceInstance().equals(other.getSourceInstance())) return false; - if (!getSourceFileShare().equals(other.getSourceFileShare())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (getCapacityGb() + != other.getCapacityGb()) return false; + if (getStorageBytes() + != other.getStorageBytes()) return false; + if (!getSourceInstance() + .equals(other.getSourceInstance())) return false; + if (!getSourceFileShare() + .equals(other.getSourceFileShare())) return false; if (sourceInstanceTier_ != other.sourceInstanceTier_) return false; - if (getDownloadBytes() != other.getDownloadBytes()) return false; + if (getDownloadBytes() + != other.getDownloadBytes()) return false; if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { - if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; + if (!getSatisfiesPzs() + .equals(other.getSatisfiesPzs())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -994,9 +898,11 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCapacityGb()); 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) + SOURCE_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getSourceInstance().hashCode(); hash = (37 * hash) + SOURCE_FILE_SHARE_FIELD_NUMBER; @@ -1004,7 +910,8 @@ public int hashCode() { hash = (37 * hash) + SOURCE_INSTANCE_TIER_FIELD_NUMBER; hash = (53 * hash) + sourceInstanceTier_; hash = (37 * hash) + DOWNLOAD_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDownloadBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDownloadBytes()); if (hasSatisfiesPzs()) { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + getSatisfiesPzs().hashCode(); @@ -1014,155 +921,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.Backup parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.Backup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.Backup parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.filestore.v1.Backup parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.Backup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.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.filestore.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.filestore.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.filestore.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.filestore.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; } /** - * - * *
    * A Cloud Filestore backup.
    * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.v1.Backup) com.google.cloud.filestore.v1.BackupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Backup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: 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 5: 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.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.Backup.class, - com.google.cloud.filestore.v1.Backup.Builder.class); + com.google.cloud.filestore.v1.Backup.class, com.google.cloud.filestore.v1.Backup.Builder.class); } // Construct using com.google.cloud.filestore.v1.Backup.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1201,9 +1105,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Backup_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_descriptor; } @java.lang.Override @@ -1253,39 +1157,38 @@ public com.google.cloud.filestore.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.filestore.v1.Backup) { - return mergeFrom((com.google.cloud.filestore.v1.Backup) other); + return mergeFrom((com.google.cloud.filestore.v1.Backup)other); } else { super.mergeFrom(other); return this; @@ -1308,7 +1211,8 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.Backup other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.getCapacityGb() != 0L) { setCapacityGb(other.getCapacityGb()); } @@ -1358,90 +1262,79 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - state_ = input.readEnum(); - - break; - } // case 24 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 42 - case 48: - { - capacityGb_ = input.readInt64(); - - break; - } // case 48 - case 56: - { - storageBytes_ = input.readInt64(); - - break; - } // case 56 - case 66: - { - sourceInstance_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: - { - sourceFileShare_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 80: - { - sourceInstanceTier_ = input.readEnum(); - - break; - } // case 80 - case 88: - { - downloadBytes_ = input.readInt64(); - - break; - } // case 88 - case 98: - { - input.readMessage(getSatisfiesPzsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + state_ = input.readEnum(); + + break; + } // case 24 + case 34: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 42 + case 48: { + capacityGb_ = input.readInt64(); + + break; + } // case 48 + case 56: { + storageBytes_ = input.readInt64(); + + break; + } // case 56 + case 66: { + sourceInstance_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: { + sourceFileShare_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 80: { + sourceInstanceTier_ = input.readEnum(); + + break; + } // case 80 + case 88: { + downloadBytes_ = input.readInt64(); + + break; + } // case 88 + case 98: { + input.readMessage( + getSatisfiesPzsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 98 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1451,26 +1344,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1479,22 +1369,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1502,64 +1391,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * 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 resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + 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; @@ -1567,21 +1449,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @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; @@ -1590,22 +1470,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @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 { @@ -1613,64 +1492,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @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; } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @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; @@ -1678,73 +1550,51 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.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 backup state.
      * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.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 backup state.
      * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Backup.State result = - com.google.cloud.filestore.v1.Backup.State.valueOf(state_); + com.google.cloud.filestore.v1.Backup.State result = com.google.cloud.filestore.v1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1.Backup.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -1752,26 +1602,21 @@ public Builder setState(com.google.cloud.filestore.v1.Backup.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1779,58 +1624,39 @@ public Builder clearState() { 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 when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1846,17 +1672,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1867,21 +1690,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1893,15 +1712,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1915,84 +1730,69 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - 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(); @@ -2004,30 +1804,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ + @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(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2035,12 +1833,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2048,17 +1845,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @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; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2066,11 +1862,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5; */ @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(); } @@ -2078,74 +1875,74 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - 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(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - 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; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - 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 long capacityGb_; + private long capacityGb_ ; /** - * - * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityGb. */ @java.lang.Override @@ -2153,52 +1950,43 @@ public long getCapacityGb() { return capacityGb_; } /** - * - * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } - private long storageBytes_; + private long storageBytes_ ; /** - * - * *
      * Output only. The size of the storage used by the backup. As backups share
      * storage, this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ @java.lang.Override @@ -2206,38 +1994,32 @@ public long getStorageBytes() { return storageBytes_; } /** - * - * *
      * Output only. The size of the storage used by the backup. As backups share
      * storage, this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.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 size of the storage used by the backup. As backups share
      * storage, this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStorageBytes() { - + storageBytes_ = 0L; onChanged(); return this; @@ -2245,8 +2027,6 @@ public Builder clearStorageBytes() { private java.lang.Object sourceInstance_ = ""; /** - * - * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2254,13 +2034,13 @@ public Builder clearStorageBytes() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceInstance. */ public java.lang.String getSourceInstance() { java.lang.Object ref = sourceInstance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceInstance_ = s; return s; @@ -2269,8 +2049,6 @@ public java.lang.String getSourceInstance() { } } /** - * - * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2278,14 +2056,15 @@ public java.lang.String getSourceInstance() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceInstance. */ - public com.google.protobuf.ByteString getSourceInstanceBytes() { + public com.google.protobuf.ByteString + getSourceInstanceBytes() { java.lang.Object ref = sourceInstance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceInstance_ = b; return b; } else { @@ -2293,8 +2072,6 @@ public com.google.protobuf.ByteString getSourceInstanceBytes() { } } /** - * - * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2302,22 +2079,20 @@ public com.google.protobuf.ByteString getSourceInstanceBytes() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @param value The sourceInstance to set. * @return This builder for chaining. */ - public Builder setSourceInstance(java.lang.String value) { + public Builder setSourceInstance( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceInstance_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2325,18 +2100,15 @@ public Builder setSourceInstance(java.lang.String value) {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSourceInstance() { - + sourceInstance_ = getDefaultInstance().getSourceInstance(); onChanged(); return this; } /** - * - * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2344,16 +2116,16 @@ public Builder clearSourceInstance() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for sourceInstance to set. * @return This builder for chaining. */ - public Builder setSourceInstanceBytes(com.google.protobuf.ByteString value) { + public Builder setSourceInstanceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceInstance_ = value; onChanged(); return this; @@ -2361,21 +2133,19 @@ public Builder setSourceInstanceBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceFileShare_ = ""; /** - * - * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @return The sourceFileShare. */ public java.lang.String getSourceFileShare() { java.lang.Object ref = sourceFileShare_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFileShare_ = s; return s; @@ -2384,22 +2154,21 @@ public java.lang.String getSourceFileShare() { } } /** - * - * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @return The bytes for sourceFileShare. */ - public com.google.protobuf.ByteString getSourceFileShareBytes() { + public com.google.protobuf.ByteString + getSourceFileShareBytes() { java.lang.Object ref = sourceFileShare_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFileShare_ = b; return b; } else { @@ -2407,64 +2176,57 @@ public com.google.protobuf.ByteString getSourceFileShareBytes() { } } /** - * - * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @param value The sourceFileShare to set. * @return This builder for chaining. */ - public Builder setSourceFileShare(java.lang.String value) { + public Builder setSourceFileShare( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceFileShare_ = value; onChanged(); return this; } /** - * - * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @return This builder for chaining. */ public Builder clearSourceFileShare() { - + sourceFileShare_ = getDefaultInstance().getSourceFileShare(); onChanged(); return this; } /** - * - * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @param value The bytes for sourceFileShare to set. * @return This builder for chaining. */ - public Builder setSourceFileShareBytes(com.google.protobuf.ByteString value) { + public Builder setSourceFileShareBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceFileShare_ = value; onChanged(); return this; @@ -2472,77 +2234,55 @@ public Builder setSourceFileShareBytes(com.google.protobuf.ByteString value) { private int sourceInstanceTier_ = 0; /** - * - * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for sourceInstanceTier. */ - @java.lang.Override - public int getSourceInstanceTierValue() { + @java.lang.Override public int getSourceInstanceTierValue() { return sourceInstanceTier_; } /** - * - * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for sourceInstanceTier to set. * @return This builder for chaining. */ public Builder setSourceInstanceTierValue(int value) { - + sourceInstanceTier_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceInstanceTier. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.Tier result = - com.google.cloud.filestore.v1.Instance.Tier.valueOf(sourceInstanceTier_); + com.google.cloud.filestore.v1.Instance.Tier result = com.google.cloud.filestore.v1.Instance.Tier.valueOf(sourceInstanceTier_); return result == null ? com.google.cloud.filestore.v1.Instance.Tier.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The sourceInstanceTier to set. * @return This builder for chaining. */ @@ -2550,36 +2290,29 @@ public Builder setSourceInstanceTier(com.google.cloud.filestore.v1.Instance.Tier if (value == null) { throw new NullPointerException(); } - + sourceInstanceTier_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSourceInstanceTier() { - + sourceInstanceTier_ = 0; onChanged(); return this; } - private long downloadBytes_; + private long downloadBytes_ ; /** - * - * *
      * Output only. Amount of bytes that will be downloaded if the backup is
      * restored. This may be different than storage bytes, since sequential
@@ -2587,7 +2320,6 @@ public Builder clearSourceInstanceTier() {
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The downloadBytes. */ @java.lang.Override @@ -2595,8 +2327,6 @@ public long getDownloadBytes() { return downloadBytes_; } /** - * - * *
      * Output only. Amount of bytes that will be downloaded if the backup is
      * restored. This may be different than storage bytes, since sequential
@@ -2604,19 +2334,16 @@ public long getDownloadBytes() {
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The downloadBytes to set. * @return This builder for chaining. */ public Builder setDownloadBytes(long value) { - + downloadBytes_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Amount of bytes that will be downloaded if the backup is
      * restored. This may be different than storage bytes, since sequential
@@ -2624,11 +2351,10 @@ public Builder setDownloadBytes(long value) {
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDownloadBytes() { - + downloadBytes_ = 0L; onChanged(); return this; @@ -2636,58 +2362,39 @@ public Builder clearDownloadBytes() { private com.google.protobuf.BoolValue satisfiesPzs_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - satisfiesPzsBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> satisfiesPzsBuilder_; /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ public boolean hasSatisfiesPzs() { return satisfiesPzsBuilder_ != null || satisfiesPzs_ != null; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ public com.google.protobuf.BoolValue getSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } else { return satisfiesPzsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { @@ -2703,17 +2410,14 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setSatisfiesPzs( + com.google.protobuf.BoolValue.Builder builderForValue) { if (satisfiesPzsBuilder_ == null) { satisfiesPzs_ = builderForValue.build(); onChanged(); @@ -2724,23 +2428,17 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForV return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { if (satisfiesPzs_ != null) { satisfiesPzs_ = - com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_).mergeFrom(value).buildPartial(); } else { satisfiesPzs_ = value; } @@ -2752,15 +2450,11 @@ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { @@ -2774,71 +2468,55 @@ public Builder clearSatisfiesPzs() { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder() { - + onChanged(); return getSatisfiesPzsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { if (satisfiesPzsBuilder_ != null) { return satisfiesPzsBuilder_.getMessageOrBuilder(); } else { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getSatisfiesPzsFieldBuilder() { if (satisfiesPzsBuilder_ == null) { - satisfiesPzsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getSatisfiesPzs(), getParentForChildren(), isClean()); + satisfiesPzsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getSatisfiesPzs(), + getParentForChildren(), + isClean()); satisfiesPzs_ = null; } return satisfiesPzsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2848,12 +2526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.Backup) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.Backup) private static final com.google.cloud.filestore.v1.Backup DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.Backup(); } @@ -2862,27 +2540,27 @@ public static com.google.cloud.filestore.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2897,4 +2575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.Backup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java similarity index 71% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java index 83d8c00f0352..32cee1f9ac05 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java @@ -1,152 +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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface BackupOrBuilder - extends +public interface BackupOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.Backup) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The backup state.
    * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The backup state.
    * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.filestore.v1.Backup.State getState(); /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -155,31 +106,30 @@ public interface BackupOrBuilder */ int getLabelsCount(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - 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(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -188,51 +138,43 @@ 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); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. Capacity of the source file share when the backup was created.
    * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityGb. */ long getCapacityGb(); /** - * - * *
    * Output only. The size of the storage used by the backup. As backups share
    * storage, this number is expected to change with backup creation/deletion.
    * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ long getStorageBytes(); /** - * - * *
    * The resource name of the source Cloud Filestore instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -240,13 +182,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceInstance. */ java.lang.String getSourceInstance(); /** - * - * *
    * The resource name of the source Cloud Filestore instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -254,72 +193,55 @@ java.lang.String getLabelsOrDefault(
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceInstance. */ - com.google.protobuf.ByteString getSourceInstanceBytes(); + com.google.protobuf.ByteString + getSourceInstanceBytes(); /** - * - * *
    * Name of the file share in the source Cloud Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The sourceFileShare. */ java.lang.String getSourceFileShare(); /** - * - * *
    * Name of the file share in the source Cloud Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The bytes for sourceFileShare. */ - com.google.protobuf.ByteString getSourceFileShareBytes(); + com.google.protobuf.ByteString + getSourceFileShareBytes(); /** - * - * *
    * Output only. The service tier of the source Cloud Filestore instance that
    * this backup is created from.
    * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for sourceInstanceTier. */ int getSourceInstanceTierValue(); /** - * - * *
    * Output only. The service tier of the source Cloud Filestore instance that
    * this backup is created from.
    * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceInstanceTier. */ com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier(); /** - * - * *
    * Output only. Amount of bytes that will be downloaded if the backup is
    * restored. This may be different than storage bytes, since sequential
@@ -327,49 +249,34 @@ java.lang.String getLabelsOrDefault(
    * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The downloadBytes. */ long getDownloadBytes(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ boolean hasSatisfiesPzs(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ com.google.protobuf.BoolValue getSatisfiesPzs(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); } diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java new file mode 100644 index 000000000000..082657124478 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java @@ -0,0 +1,460 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public final class CloudFilestoreServiceProto { + private CloudFilestoreServiceProto() {} + 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_filestore_v1_NetworkConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_Instance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_Backup_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/filestore/v1/cloud_filest" + + "ore_service.proto\022\031google.cloud.filestor" + + "e.v1\032\034google/api/annotations.proto\032\027goog" + + "le/api/client.proto\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + ",google/cloud/common/operation_metadata." + + "proto\032#google/longrunning/operations.pro" + + "to\032 google/protobuf/field_mask.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\036google/pr" + + "otobuf/wrappers.proto\"\327\001\n\rNetworkConfig\022" + + "\017\n\007network\030\001 \001(\t\022C\n\005modes\030\003 \003(\01624.google" + + ".cloud.filestore.v1.NetworkConfig.Addres" + + "sMode\022\031\n\021reserved_ip_range\030\004 \001(\t\022\031\n\014ip_a" + + "ddresses\030\005 \003(\tB\003\340A\003\":\n\013AddressMode\022\034\n\030AD" + + "DRESS_MODE_UNSPECIFIED\020\000\022\r\n\tMODE_IPV4\020\001\"" + + "\301\001\n\017FileShareConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013cap" + + "acity_gb\030\002 \001(\003\0228\n\rsource_backup\030\010 \001(\tB\037\372" + + "A\034\n\032file.googleapis.com/BackupH\000\022G\n\022nfs_" + + "export_options\030\007 \003(\0132+.google.cloud.file" + + "store.v1.NfsExportOptionsB\010\n\006source\"\375\002\n\020" + + "NfsExportOptions\022\021\n\tip_ranges\030\001 \003(\t\022K\n\013a" + + "ccess_mode\030\002 \001(\01626.google.cloud.filestor" + + "e.v1.NfsExportOptions.AccessMode\022K\n\013squa" + + "sh_mode\030\003 \001(\01626.google.cloud.filestore.v" + + "1.NfsExportOptions.SquashMode\022\020\n\010anon_ui" + + "d\030\004 \001(\003\022\020\n\010anon_gid\030\005 \001(\003\"H\n\nAccessMode\022" + + "\033\n\027ACCESS_MODE_UNSPECIFIED\020\000\022\r\n\tREAD_ONL" + + "Y\020\001\022\016\n\nREAD_WRITE\020\002\"N\n\nSquashMode\022\033\n\027SQU" + + "ASH_MODE_UNSPECIFIED\020\000\022\022\n\016NO_ROOT_SQUASH" + + "\020\001\022\017\n\013ROOT_SQUASH\020\002\"\353\006\n\010Instance\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\023\n\013description\030\002 \001(\t\022=\n\005stat" + + "e\030\005 \001(\0162).google.cloud.filestore.v1.Inst" + + "ance.StateB\003\340A\003\022\033\n\016status_message\030\006 \001(\tB" + + "\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0226\n\004tier\030\010 \001(\0162(.googl" + + "e.cloud.filestore.v1.Instance.Tier\022?\n\006la" + + "bels\030\t \003(\0132/.google.cloud.filestore.v1.I" + + "nstance.LabelsEntry\022?\n\013file_shares\030\n \003(\013" + + "2*.google.cloud.filestore.v1.FileShareCo" + + "nfig\022:\n\010networks\030\013 \003(\0132(.google.cloud.fi" + + "lestore.v1.NetworkConfig\022\014\n\004etag\030\014 \001(\t\0226" + + "\n\rsatisfies_pzs\030\r \001(\0132\032.google.protobuf." + + "BoolValueB\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\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\r" + + "\n\tREPAIRING\020\003\022\014\n\010DELETING\020\004\022\t\n\005ERROR\020\006\022\r" + + "\n\tRESTORING\020\007\"i\n\004Tier\022\024\n\020TIER_UNSPECIFIE" + + "D\020\000\022\014\n\010STANDARD\020\001\022\013\n\007PREMIUM\020\002\022\r\n\tBASIC_" + + "HDD\020\003\022\r\n\tBASIC_SSD\020\004\022\022\n\016HIGH_SCALE_SSD\020\005" + + ":_\352A\\\n\034file.googleapis.com/Instance\022\202\323\344\223\002/\022-/v1/{paren" + + "t=projects/*/locations/*}/instances\332A\006pa" + + "rent\022\237\001\n\013GetInstance\022-.google.cloud.file" + + "store.v1.GetInstanceRequest\032#.google.clo" + + "ud.filestore.v1.Instance\"<\202\323\344\223\002/\022-/v1/{n" + + "ame=projects/*/locations/*/instances/*}\332" + + "A\004name\022\365\001\n\016CreateInstance\0220.google.cloud" + + ".filestore.v1.CreateInstanceRequest\032\035.go" + + "ogle.longrunning.Operation\"\221\001\202\323\344\223\0029\"-/v1" + + "/{parent=projects/*/locations/*}/instanc" + + "es:\010instance\332A\033parent,instance,instance_" + + "id\312A1\n\010Instance\022%google.cloud.common.Ope" + + "rationMetadata\022\367\001\n\016UpdateInstance\0220.goog" + + "le.cloud.filestore.v1.UpdateInstanceRequ" + + "est\032\035.google.longrunning.Operation\"\223\001\202\323\344" + + "\223\002B26/v1/{instance.name=projects/*/locat" + + "ions/*/instances/*}:\010instance\332A\024instance" + + ",update_mask\312A1\n\010Instance\022%google.cloud." + + "common.OperationMetadata\022\331\001\n\017RestoreInst" + + "ance\0221.google.cloud.filestore.v1.Restore" + + "InstanceRequest\032\035.google.longrunning.Ope" + + "ration\"t\202\323\344\223\002:\"5/v1/{name=projects/*/loc" + + "ations/*/instances/*}:restore:\001*\312A1\n\010Ins" + + "tance\022%google.cloud.common.OperationMeta" + + "data\022\340\001\n\016DeleteInstance\0220.google.cloud.f" + + "ilestore.v1.DeleteInstanceRequest\032\035.goog" + + "le.longrunning.Operation\"}\202\323\344\223\002/*-/v1/{n" + + "ame=projects/*/locations/*/instances/*}\332" + + "A\004name\312A>\n\025google.protobuf.Empty\022%google" + + ".cloud.common.OperationMetadata\022\252\001\n\013List" + + "Backups\022-.google.cloud.filestore.v1.List" + + "BackupsRequest\032..google.cloud.filestore." + + "v1.ListBackupsResponse\"<\202\323\344\223\002-\022+/v1/{par" + + "ent=projects/*/locations/*}/backups\332A\006pa" + + "rent\022\227\001\n\tGetBackup\022+.google.cloud.filest" + + "ore.v1.GetBackupRequest\032!.google.cloud.f" + + "ilestore.v1.Backup\":\202\323\344\223\002-\022+/v1/{name=pr" + + "ojects/*/locations/*/backups/*}\332A\004name\022\347" + + "\001\n\014CreateBackup\022..google.cloud.filestore" + + ".v1.CreateBackupRequest\032\035.google.longrun" + + "ning.Operation\"\207\001\202\323\344\223\0025\"+/v1/{parent=pro" + + "jects/*/locations/*}/backups:\006backup\332A\027p" + + "arent,backup,backup_id\312A/\n\006Backup\022%googl" + + "e.cloud.common.OperationMetadata\022\332\001\n\014Del" + + "eteBackup\022..google.cloud.filestore.v1.De" + + "leteBackupRequest\032\035.google.longrunning.O" + + "peration\"{\202\323\344\223\002-*+/v1/{name=projects/*/l" + + "ocations/*/backups/*}\332A\004name\312A>\n\025google." + + "protobuf.Empty\022%google.cloud.common.Oper" + + "ationMetadata\022\351\001\n\014UpdateBackup\022..google." + + "cloud.filestore.v1.UpdateBackupRequest\032\035" + + ".google.longrunning.Operation\"\211\001\202\323\344\223\002<22" + + "/v1/{backup.name=projects/*/locations/*/" + + "backups/*}:\006backup\332A\022backup,update_mask\312" + + "A/\n\006Backup\022%google.cloud.common.Operatio" + + "nMetadata\032G\312A\023file.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\271\001\n\035com.google.cloud.filestore.v1B\032Cl" + + "oudFilestoreServiceProtoP\001ZBgoogle.golan" + + "g.org/genproto/googleapis/cloud/filestor" + + "e/v1;filestore\252\002\031Google.Cloud.Filestore." + + "V1\312\002\031Google\\Cloud\\Filestore\\V1b\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.common.OperationMetadataOuterClass.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor, + new java.lang.String[] { "Network", "Modes", "ReservedIpRange", "IpAddresses", }); + internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor, + new java.lang.String[] { "Name", "CapacityGb", "SourceBackup", "NfsExportOptions", "Source", }); + internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor, + new java.lang.String[] { "IpRanges", "AccessMode", "SquashMode", "AnonUid", "AnonGid", }); + internal_static_google_cloud_filestore_v1_Instance_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_Instance_descriptor, + new java.lang.String[] { "Name", "Description", "State", "StatusMessage", "CreateTime", "Tier", "Labels", "FileShares", "Networks", "Etag", "SatisfiesPzs", }); + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor, + new java.lang.String[] { "Parent", "InstanceId", "Instance", }); + internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Instance", }); + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor, + new java.lang.String[] { "Name", "FileShare", "SourceBackup", "Source", }); + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); + internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor, + new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_filestore_v1_Backup_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_Backup_descriptor, + new java.lang.String[] { "Name", "Description", "State", "CreateTime", "Labels", "CapacityGb", "StorageBytes", "SourceInstance", "SourceFileShare", "SourceInstanceTier", "DownloadBytes", "SatisfiesPzs", }); + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1_Backup_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor, + new java.lang.String[] { "Parent", "Backup", "BackupId", }); + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor, + new java.lang.String[] { "Backup", "UpdateMask", }); + internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); + internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor, + new java.lang.String[] { "Backups", "NextPageToken", "Unreachable", }); + 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.resource); + 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.common.OperationMetadataOuterClass.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java similarity index 69% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java index fee9a917c654..f1976fcafc11 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * CreateBackupRequest creates a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.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,45 +26,39 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.CreateBackupRequest.class, - com.google.cloud.filestore.v1.CreateBackupRequest.Builder.class); + com.google.cloud.filestore.v1.CreateBackupRequest.class, com.google.cloud.filestore.v1.CreateBackupRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The backup's project and location, in the format
    * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,33 +67,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The backup's project and location, in the format
    * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,15 +102,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BACKUP_FIELD_NUMBER = 2; private com.google.cloud.filestore.v1.Backup backup_; /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ @java.lang.Override @@ -144,15 +114,11 @@ public boolean hasBackup() { return backup_ != null; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ @java.lang.Override @@ -160,14 +126,11 @@ public com.google.cloud.filestore.v1.Backup getBackup() { return backup_ == null ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { @@ -177,8 +140,6 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { public static final int BACKUP_ID_FIELD_NUMBER = 3; private volatile java.lang.Object backupId_; /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -189,7 +150,6 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() {
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The backupId. */ @java.lang.Override @@ -198,15 +158,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; } } /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -217,15 +176,16 @@ public java.lang.String getBackupId() {
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -234,7 +194,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -269,7 +229,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_); @@ -282,20 +243,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.filestore.v1.CreateBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.CreateBackupRequest other = - (com.google.cloud.filestore.v1.CreateBackupRequest) obj; + com.google.cloud.filestore.v1.CreateBackupRequest other = (com.google.cloud.filestore.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -321,135 +284,129 @@ public int hashCode() { } public static com.google.cloud.filestore.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.filestore.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.filestore.v1.CreateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.CreateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.CreateBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.CreateBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.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.filestore.v1.CreateBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.CreateBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.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; } /** - * - * *
    * CreateBackupRequest creates a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.v1.CreateBackupRequest) com.google.cloud.filestore.v1.CreateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.CreateBackupRequest.class, - com.google.cloud.filestore.v1.CreateBackupRequest.Builder.class); + com.google.cloud.filestore.v1.CreateBackupRequest.class, com.google.cloud.filestore.v1.CreateBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.CreateBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -467,9 +424,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; } @java.lang.Override @@ -488,8 +445,7 @@ public com.google.cloud.filestore.v1.CreateBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.CreateBackupRequest buildPartial() { - com.google.cloud.filestore.v1.CreateBackupRequest result = - new com.google.cloud.filestore.v1.CreateBackupRequest(this); + com.google.cloud.filestore.v1.CreateBackupRequest result = new com.google.cloud.filestore.v1.CreateBackupRequest(this); result.parent_ = parent_; if (backupBuilder_ == null) { result.backup_ = backup_; @@ -505,39 +461,38 @@ public com.google.cloud.filestore.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.filestore.v1.CreateBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1.CreateBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.CreateBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -545,8 +500,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.CreateBackupRequest other) { - if (other == com.google.cloud.filestore.v1.CreateBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.CreateBackupRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -584,31 +538,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getBackupFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - backupId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + backupId_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -621,24 +573,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The backup's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string parent = 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; @@ -647,25 +595,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The backup's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string parent = 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 { @@ -673,73 +618,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The backup's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * 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's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string 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's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * 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; @@ -747,55 +679,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.filestore.v1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, - com.google.cloud.filestore.v1.Backup.Builder, - com.google.cloud.filestore.v1.BackupOrBuilder> - backupBuilder_; + com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> backupBuilder_; /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ public boolean hasBackup() { return backupBuilder_ != null || backup_ != null; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ public com.google.cloud.filestore.v1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null - ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; } else { return backupBuilder_.getMessage(); } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBackup(com.google.cloud.filestore.v1.Backup value) { if (backupBuilder_ == null) { @@ -811,16 +727,14 @@ public Builder setBackup(com.google.cloud.filestore.v1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBackup(com.google.cloud.filestore.v1.Backup.Builder builderForValue) { + public Builder setBackup( + com.google.cloud.filestore.v1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -831,22 +745,17 @@ public Builder setBackup(com.google.cloud.filestore.v1.Backup.Builder builderFor return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBackup(com.google.cloud.filestore.v1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.filestore.v1.Backup.newBuilder(backup_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); } else { backup_ = value; } @@ -858,14 +767,11 @@ public Builder mergeBackup(com.google.cloud.filestore.v1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBackup() { if (backupBuilder_ == null) { @@ -879,61 +785,48 @@ public Builder clearBackup() { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null - ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? + com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, - com.google.cloud.filestore.v1.Backup.Builder, - com.google.cloud.filestore.v1.BackupOrBuilder> + com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, - com.google.cloud.filestore.v1.Backup.Builder, - com.google.cloud.filestore.v1.BackupOrBuilder>( - getBackup(), getParentForChildren(), isClean()); + backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder>( + getBackup(), + getParentForChildren(), + isClean()); backup_ = null; } return backupBuilder_; @@ -941,8 +834,6 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { private java.lang.Object backupId_ = ""; /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -953,13 +844,13 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -968,8 +859,6 @@ public java.lang.String getBackupId() { } } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -980,14 +869,15 @@ public java.lang.String getBackupId() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -995,8 +885,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -1007,22 +895,20 @@ public com.google.protobuf.ByteString getBackupIdBytes() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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; } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -1033,18 +919,15 @@ public Builder setBackupId(java.lang.String value) {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBackupId() { - + backupId_ = getDefaultInstance().getBackupId(); onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -1055,23 +938,23 @@ public Builder clearBackupId() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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); } @@ -1081,12 +964,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.CreateBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.CreateBackupRequest) private static final com.google.cloud.filestore.v1.CreateBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.CreateBackupRequest(); } @@ -1095,27 +978,27 @@ public static com.google.cloud.filestore.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1130,4 +1013,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.CreateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java similarity index 67% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java index 3b89fe5f9763..81f422896cba 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java @@ -1,102 +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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface CreateBackupRequestOrBuilder - extends +public interface CreateBackupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.CreateBackupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The backup's project and location, in the format
    * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 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's project and location, in the format
    * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 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. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ boolean hasBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ com.google.cloud.filestore.v1.Backup getBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder(); /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -107,13 +69,10 @@ public interface CreateBackupRequestOrBuilder
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The backupId. */ java.lang.String getBackupId(); /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -124,8 +83,8 @@ public interface CreateBackupRequestOrBuilder
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for backupId. */ - com.google.protobuf.ByteString getBackupIdBytes(); + com.google.protobuf.ByteString + getBackupIdBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java similarity index 65% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java index ece90eecc8aa..da702ad0ee5d 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * CreateInstanceRequest creates an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.CreateInstanceRequest} */ -public final class CreateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.CreateInstanceRequest) CreateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateInstanceRequest.newBuilder() to construct. private CreateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateInstanceRequest() { parent_ = ""; instanceId_ = ""; @@ -44,45 +26,39 @@ private CreateInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.CreateInstanceRequest.class, - com.google.cloud.filestore.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.CreateInstanceRequest.class, com.google.cloud.filestore.v1.CreateInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,33 +67,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,15 +102,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** - * - * *
    * Required. The name of the instance to create.
    * The name must be unique for the specified project and location.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ @java.lang.Override @@ -145,30 +116,30 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * *
    * Required. The name of the instance to create.
    * The name must be unique for the specified project and location.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -179,16 +150,11 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.cloud.filestore.v1.Instance instance_; /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ @java.lang.Override @@ -196,34 +162,23 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance getInstance() { - return instance_ == null - ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { @@ -231,7 +186,6 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +197,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -269,7 +224,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -279,19 +235,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.filestore.v1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.CreateInstanceRequest other = - (com.google.cloud.filestore.v1.CreateInstanceRequest) obj; + com.google.cloud.filestore.v1.CreateInstanceRequest other = (com.google.cloud.filestore.v1.CreateInstanceRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -318,135 +276,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( - java.nio.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.filestore.v1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.CreateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.CreateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CreateInstanceRequest creates an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.CreateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.CreateInstanceRequest) com.google.cloud.filestore.v1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.CreateInstanceRequest.class, - com.google.cloud.filestore.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.CreateInstanceRequest.class, com.google.cloud.filestore.v1.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.CreateInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -464,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -485,8 +437,7 @@ public com.google.cloud.filestore.v1.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.CreateInstanceRequest buildPartial() { - com.google.cloud.filestore.v1.CreateInstanceRequest result = - new com.google.cloud.filestore.v1.CreateInstanceRequest(this); + com.google.cloud.filestore.v1.CreateInstanceRequest result = new com.google.cloud.filestore.v1.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (instanceBuilder_ == null) { @@ -502,39 +453,38 @@ public com.google.cloud.filestore.v1.CreateInstanceRequest 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.filestore.v1.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1.CreateInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.CreateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -542,8 +492,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.CreateInstanceRequest other) { - if (other == com.google.cloud.filestore.v1.CreateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.CreateInstanceRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -581,31 +530,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -618,24 +565,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string parent = 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; @@ -644,25 +587,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string parent = 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 { @@ -670,73 +610,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * 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 instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string 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 instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * 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; @@ -744,21 +671,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -767,22 +692,21 @@ public java.lang.String getInstanceId() { } } /** - * - * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -790,64 +714,57 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { + public Builder setInstanceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** - * - * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -855,58 +772,39 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.filestore.v1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, - com.google.cloud.filestore.v1.Instance.Builder, - com.google.cloud.filestore.v1.InstanceOrBuilder> - instanceBuilder_; + com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> instanceBuilder_; /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ public com.google.cloud.filestore.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance(com.google.cloud.filestore.v1.Instance value) { if (instanceBuilder_ == null) { @@ -922,17 +820,14 @@ public Builder setInstance(com.google.cloud.filestore.v1.Instance value) { return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInstance(com.google.cloud.filestore.v1.Instance.Builder builderForValue) { + public Builder setInstance( + com.google.cloud.filestore.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -943,23 +838,17 @@ public Builder setInstance(com.google.cloud.filestore.v1.Instance.Builder builde return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstance(com.google.cloud.filestore.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.filestore.v1.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -971,15 +860,11 @@ public Builder mergeInstance(com.google.cloud.filestore.v1.Instance value) { return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -993,71 +878,55 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, - com.google.cloud.filestore.v1.Instance.Builder, - com.google.cloud.filestore.v1.InstanceOrBuilder> + com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, - com.google.cloud.filestore.v1.Instance.Builder, - com.google.cloud.filestore.v1.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); instance_ = null; } return instanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1067,12 +936,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.CreateInstanceRequest) private static final com.google.cloud.filestore.v1.CreateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.CreateInstanceRequest(); } @@ -1081,27 +950,27 @@ public static com.google.cloud.filestore.v1.CreateInstanceRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1116,4 +985,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java similarity index 57% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java index 0a7a213708cb..668c9748aa2c 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java @@ -1,126 +1,82 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface CreateInstanceRequestOrBuilder - extends +public interface CreateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.CreateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 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 instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 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 name of the instance to create.
    * The name must be unique for the specified project and location.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * *
    * Required. The name of the instance to create.
    * The name must be unique for the specified project and location.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ com.google.cloud.filestore.v1.Instance getInstance(); /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java similarity index 63% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java index 1adc2582a75f..a0dc2883210b 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java @@ -1,86 +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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * DeleteBackupRequest deletes a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.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_ = ""; } @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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.DeleteBackupRequest.class, - com.google.cloud.filestore.v1.DeleteBackupRequest.Builder.class); + com.google.cloud.filestore.v1.DeleteBackupRequest.class, com.google.cloud.filestore.v1.DeleteBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_number}/locations/{location}/backups/{backup_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_number}/locations/{location}/backups/{backup_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.DeleteBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.DeleteBackupRequest other = - (com.google.cloud.filestore.v1.DeleteBackupRequest) obj; + com.google.cloud.filestore.v1.DeleteBackupRequest other = (com.google.cloud.filestore.v1.DeleteBackupRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,135 +161,129 @@ public int hashCode() { } public static com.google.cloud.filestore.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.filestore.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.filestore.v1.DeleteBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.DeleteBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.DeleteBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.DeleteBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.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.filestore.v1.DeleteBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.DeleteBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.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; } /** - * - * *
    * DeleteBackupRequest deletes a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.v1.DeleteBackupRequest) com.google.cloud.filestore.v1.DeleteBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.DeleteBackupRequest.class, - com.google.cloud.filestore.v1.DeleteBackupRequest.Builder.class); + com.google.cloud.filestore.v1.DeleteBackupRequest.class, com.google.cloud.filestore.v1.DeleteBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.DeleteBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; } @java.lang.Override @@ -346,8 +314,7 @@ public com.google.cloud.filestore.v1.DeleteBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.DeleteBackupRequest buildPartial() { - com.google.cloud.filestore.v1.DeleteBackupRequest result = - new com.google.cloud.filestore.v1.DeleteBackupRequest(this); + com.google.cloud.filestore.v1.DeleteBackupRequest result = new com.google.cloud.filestore.v1.DeleteBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,39 +324,38 @@ public com.google.cloud.filestore.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.filestore.v1.DeleteBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1.DeleteBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.DeleteBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -397,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.DeleteBackupRequest other) { - if (other == com.google.cloud.filestore.v1.DeleteBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.DeleteBackupRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -429,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -454,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string name = 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; @@ -479,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string name = 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 { @@ -504,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * - * 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. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string 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. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * - * 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); } @@ -584,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.DeleteBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.DeleteBackupRequest) private static final com.google.cloud.filestore.v1.DeleteBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.DeleteBackupRequest(); } @@ -598,27 +541,27 @@ public static com.google.cloud.filestore.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.DeleteBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java new file mode 100644 index 000000000000..798cb71d5f5c --- /dev/null +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public interface DeleteBackupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.DeleteBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_number}/locations/{location}/backups/{backup_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_number}/locations/{location}/backups/{backup_id}`
+   * 
+ * + * 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/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java similarity index 63% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java index 83943c336a13..ad264cae8225 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java @@ -1,86 +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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * DeleteInstanceRequest deletes an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.DeleteInstanceRequest} */ -public final class DeleteInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.DeleteInstanceRequest) DeleteInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteInstanceRequest.newBuilder() to construct. private DeleteInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.DeleteInstanceRequest.class, - com.google.cloud.filestore.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.DeleteInstanceRequest.class, com.google.cloud.filestore.v1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.DeleteInstanceRequest other = - (com.google.cloud.filestore.v1.DeleteInstanceRequest) obj; + com.google.cloud.filestore.v1.DeleteInstanceRequest other = (com.google.cloud.filestore.v1.DeleteInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,135 +161,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( - java.nio.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.filestore.v1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.DeleteInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.DeleteInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * DeleteInstanceRequest deletes an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.DeleteInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.DeleteInstanceRequest) com.google.cloud.filestore.v1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.DeleteInstanceRequest.class, - com.google.cloud.filestore.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.DeleteInstanceRequest.class, com.google.cloud.filestore.v1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.DeleteInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -346,8 +314,7 @@ public com.google.cloud.filestore.v1.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.DeleteInstanceRequest buildPartial() { - com.google.cloud.filestore.v1.DeleteInstanceRequest result = - new com.google.cloud.filestore.v1.DeleteInstanceRequest(this); + com.google.cloud.filestore.v1.DeleteInstanceRequest result = new com.google.cloud.filestore.v1.DeleteInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,39 +324,38 @@ public com.google.cloud.filestore.v1.DeleteInstanceRequest 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.filestore.v1.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1.DeleteInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.DeleteInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -397,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.DeleteInstanceRequest other) { - if (other == com.google.cloud.filestore.v1.DeleteInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.DeleteInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -429,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -454,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string name = 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; @@ -479,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string name = 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 { @@ -504,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * 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); } @@ -584,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.DeleteInstanceRequest) private static final com.google.cloud.filestore.v1.DeleteInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.DeleteInstanceRequest(); } @@ -598,27 +541,27 @@ public static com.google.cloud.filestore.v1.DeleteInstanceRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..c727919af13d --- /dev/null +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public interface DeleteInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.DeleteInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * 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/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java similarity index 75% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java index e169ef803f69..695769939843 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * File share configuration for the instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.FileShareConfig} */ -public final class FileShareConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FileShareConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.FileShareConfig) FileShareConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FileShareConfig.newBuilder() to construct. private FileShareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FileShareConfig() { name_ = ""; nfsExportOptions_ = java.util.Collections.emptyList(); @@ -44,41 +26,37 @@ private FileShareConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FileShareConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.FileShareConfig.class, - com.google.cloud.filestore.v1.FileShareConfig.Builder.class); + com.google.cloud.filestore.v1.FileShareConfig.class, com.google.cloud.filestore.v1.FileShareConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SOURCE_BACKUP(8), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -94,35 +72,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 8: - return SOURCE_BACKUP; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 8: return SOURCE_BACKUP; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of the file share (must be 16 characters or less).
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -131,29 +104,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 file share (must be 16 characters or less).
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -164,15 +137,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CAPACITY_GB_FIELD_NUMBER = 2; private long capacityGb_; /** - * - * *
    * File share capacity in gigabytes (GB).
    * Cloud Filestore defines 1 GB as 1024^3 bytes.
    * 
* * int64 capacity_gb = 2; - * * @return The capacityGb. */ @java.lang.Override @@ -182,8 +152,6 @@ public long getCapacityGb() { public static final int SOURCE_BACKUP_FIELD_NUMBER = 8; /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -191,15 +159,12 @@ public long getCapacityGb() {
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ public boolean hasSourceBackup() { return sourceCase_ == 8; } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -207,7 +172,6 @@ public boolean hasSourceBackup() {
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ public java.lang.String getSourceBackup() { @@ -218,7 +182,8 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (sourceCase_ == 8) { source_ = s; @@ -227,8 +192,6 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -236,17 +199,18 @@ public java.lang.String getSourceBackup() {
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 8) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 8) { source_ = b; } @@ -259,8 +223,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { public static final int NFS_EXPORT_OPTIONS_FIELD_NUMBER = 7; private java.util.List nfsExportOptions_; /** - * - * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -273,8 +235,6 @@ public java.util.List getNfsExpo
     return nfsExportOptions_;
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -283,13 +243,11 @@ public java.util.List getNfsExpo
    * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getNfsExportOptionsOrBuilderList() {
     return nfsExportOptions_;
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -302,8 +260,6 @@ public int getNfsExportOptionsCount() {
     return nfsExportOptions_.size();
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -316,8 +272,6 @@ public com.google.cloud.filestore.v1.NfsExportOptions getNfsExportOptions(int in
     return nfsExportOptions_.get(index);
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -332,7 +286,6 @@ public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptio
   }
 
   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 {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -370,10 +324,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (capacityGb_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, capacityGb_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, capacityGb_);
     }
     for (int i = 0; i < nfsExportOptions_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, nfsExportOptions_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, nfsExportOptions_.get(i));
     }
     if (sourceCase_ == 8) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, source_);
@@ -386,21 +342,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.filestore.v1.FileShareConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.filestore.v1.FileShareConfig other =
-        (com.google.cloud.filestore.v1.FileShareConfig) obj;
+    com.google.cloud.filestore.v1.FileShareConfig other = (com.google.cloud.filestore.v1.FileShareConfig) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (getCapacityGb() != other.getCapacityGb()) return false;
-    if (!getNfsExportOptionsList().equals(other.getNfsExportOptionsList())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (getCapacityGb()
+        != other.getCapacityGb()) return false;
+    if (!getNfsExportOptionsList()
+        .equals(other.getNfsExportOptionsList())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 8:
-        if (!getSourceBackup().equals(other.getSourceBackup())) return false;
+        if (!getSourceBackup()
+            .equals(other.getSourceBackup())) return false;
         break;
       case 0:
       default:
@@ -419,7 +378,8 @@ public int hashCode() {
     hash = (37 * hash) + NAME_FIELD_NUMBER;
     hash = (53 * hash) + getName().hashCode();
     hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getCapacityGb());
     if (getNfsExportOptionsCount() > 0) {
       hash = (37 * hash) + NFS_EXPORT_OPTIONS_FIELD_NUMBER;
       hash = (53 * hash) + getNfsExportOptionsList().hashCode();
@@ -437,136 +397,130 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(java.io.InputStream input)
       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.filestore.v1.FileShareConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.filestore.v1.FileShareConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.filestore.v1.FileShareConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.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.filestore.v1.FileShareConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.filestore.v1.FileShareConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * File share configuration for the instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.FileShareConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.FileShareConfig) com.google.cloud.filestore.v1.FileShareConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.FileShareConfig.class, - com.google.cloud.filestore.v1.FileShareConfig.Builder.class); + com.google.cloud.filestore.v1.FileShareConfig.class, com.google.cloud.filestore.v1.FileShareConfig.Builder.class); } // Construct using com.google.cloud.filestore.v1.FileShareConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -587,9 +541,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; } @java.lang.Override @@ -608,8 +562,7 @@ public com.google.cloud.filestore.v1.FileShareConfig build() { @java.lang.Override public com.google.cloud.filestore.v1.FileShareConfig buildPartial() { - com.google.cloud.filestore.v1.FileShareConfig result = - new com.google.cloud.filestore.v1.FileShareConfig(this); + com.google.cloud.filestore.v1.FileShareConfig result = new com.google.cloud.filestore.v1.FileShareConfig(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.capacityGb_ = capacityGb_; @@ -634,39 +587,38 @@ public com.google.cloud.filestore.v1.FileShareConfig 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.filestore.v1.FileShareConfig) { - return mergeFrom((com.google.cloud.filestore.v1.FileShareConfig) other); + return mergeFrom((com.google.cloud.filestore.v1.FileShareConfig)other); } else { super.mergeFrom(other); return this; @@ -700,27 +652,24 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.FileShareConfig other) { nfsExportOptionsBuilder_ = null; nfsExportOptions_ = other.nfsExportOptions_; bitField0_ = (bitField0_ & ~0x00000001); - nfsExportOptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNfsExportOptionsFieldBuilder() - : null; + nfsExportOptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNfsExportOptionsFieldBuilder() : null; } else { nfsExportOptionsBuilder_.addAllMessages(other.nfsExportOptions_); } } } switch (other.getSourceCase()) { - case SOURCE_BACKUP: - { - sourceCase_ = 8; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case SOURCE_BACKUP: { + sourceCase_ = 8; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -748,45 +697,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); + case 10: { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - capacityGb_ = input.readInt64(); + break; + } // case 10 + case 16: { + capacityGb_ = input.readInt64(); - break; - } // case 16 - case 58: - { - com.google.cloud.filestore.v1.NfsExportOptions m = - input.readMessage( - com.google.cloud.filestore.v1.NfsExportOptions.parser(), extensionRegistry); - if (nfsExportOptionsBuilder_ == null) { - ensureNfsExportOptionsIsMutable(); - nfsExportOptions_.add(m); - } else { - nfsExportOptionsBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 8; - source_ = s; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 16 + case 58: { + com.google.cloud.filestore.v1.NfsExportOptions m = + input.readMessage( + com.google.cloud.filestore.v1.NfsExportOptions.parser(), + extensionRegistry); + if (nfsExportOptionsBuilder_ == null) { + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.add(m); + } else { + nfsExportOptionsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 8; + source_ = s; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -796,12 +741,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -815,20 +760,18 @@ public Builder clearSource() { private java.lang.Object name_ = ""; /** - * - * *
      * The name of the file share (must be 16 characters or less).
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -837,21 +780,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the file share (must be 16 characters or less).
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -859,77 +801,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the file share (must be 16 characters or less).
      * 
* * string name = 1; - * * @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 file share (must be 16 characters or less).
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the file share (must be 16 characters or less).
      * 
* * string name = 1; - * * @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; } - private long capacityGb_; + private long capacityGb_ ; /** - * - * *
      * File share capacity in gigabytes (GB).
      * Cloud Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; - * * @return The capacityGb. */ @java.lang.Override @@ -937,46 +869,38 @@ public long getCapacityGb() { return capacityGb_; } /** - * - * *
      * File share capacity in gigabytes (GB).
      * Cloud Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; - * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** - * - * *
      * File share capacity in gigabytes (GB).
      * Cloud Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; - * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -984,7 +908,6 @@ public Builder clearCapacityGb() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ @java.lang.Override @@ -992,8 +915,6 @@ public boolean hasSourceBackup() { return sourceCase_ == 8; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -1001,7 +922,6 @@ public boolean hasSourceBackup() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ @java.lang.Override @@ -1011,7 +931,8 @@ public java.lang.String getSourceBackup() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (sourceCase_ == 8) { source_ = s; @@ -1022,8 +943,6 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -1031,18 +950,19 @@ public java.lang.String getSourceBackup() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 8) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 8) { source_ = b; } @@ -1052,8 +972,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -1061,22 +979,20 @@ public com.google.protobuf.ByteString getSourceBackupBytes() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup(java.lang.String value) { + public Builder setSourceBackup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 8; + throw new NullPointerException(); + } + sourceCase_ = 8; source_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -1084,7 +1000,6 @@ public Builder setSourceBackup(java.lang.String value) {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -1096,8 +1011,6 @@ public Builder clearSourceBackup() { return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -1105,15 +1018,15 @@ public Builder clearSourceBackup() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { + public Builder setSourceBackupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 8; source_ = value; onChanged(); @@ -1121,26 +1034,18 @@ public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { } private java.util.List nfsExportOptions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNfsExportOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nfsExportOptions_ = - new java.util.ArrayList( - nfsExportOptions_); + nfsExportOptions_ = new java.util.ArrayList(nfsExportOptions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1.NfsExportOptions, - com.google.cloud.filestore.v1.NfsExportOptions.Builder, - com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder> - nfsExportOptionsBuilder_; + com.google.cloud.filestore.v1.NfsExportOptions, com.google.cloud.filestore.v1.NfsExportOptions.Builder, com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder> nfsExportOptionsBuilder_; /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1148,8 +1053,7 @@ private void ensureNfsExportOptionsIsMutable() {
      *
      * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
      */
-    public java.util.List
-        getNfsExportOptionsList() {
+    public java.util.List getNfsExportOptionsList() {
       if (nfsExportOptionsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(nfsExportOptions_);
       } else {
@@ -1157,8 +1061,6 @@ private void ensureNfsExportOptionsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1174,8 +1076,6 @@ public int getNfsExportOptionsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1191,8 +1091,6 @@ public com.google.cloud.filestore.v1.NfsExportOptions getNfsExportOptions(int in
       }
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1215,8 +1113,6 @@ public Builder setNfsExportOptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1236,8 +1132,6 @@ public Builder setNfsExportOptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1259,8 +1153,6 @@ public Builder addNfsExportOptions(com.google.cloud.filestore.v1.NfsExportOption
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1283,8 +1175,6 @@ public Builder addNfsExportOptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1304,8 +1194,6 @@ public Builder addNfsExportOptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1325,8 +1213,6 @@ public Builder addNfsExportOptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1338,7 +1224,8 @@ public Builder addAllNfsExportOptions(
         java.lang.Iterable values) {
       if (nfsExportOptionsBuilder_ == null) {
         ensureNfsExportOptionsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsExportOptions_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, nfsExportOptions_);
         onChanged();
       } else {
         nfsExportOptionsBuilder_.addAllMessages(values);
@@ -1346,8 +1233,6 @@ public Builder addAllNfsExportOptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1366,8 +1251,6 @@ public Builder clearNfsExportOptions() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1386,8 +1269,6 @@ public Builder removeNfsExportOptions(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1400,8 +1281,6 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder getNfsExportOption
       return getNfsExportOptionsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1412,14 +1291,11 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder getNfsExportOption
     public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder(
         int index) {
       if (nfsExportOptionsBuilder_ == null) {
-        return nfsExportOptions_.get(index);
-      } else {
+        return nfsExportOptions_.get(index);  } else {
         return nfsExportOptionsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1427,8 +1303,8 @@ public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptio
      *
      * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
      */
-    public java.util.List
-        getNfsExportOptionsOrBuilderList() {
+    public java.util.List 
+         getNfsExportOptionsOrBuilderList() {
       if (nfsExportOptionsBuilder_ != null) {
         return nfsExportOptionsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1436,8 +1312,6 @@ public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptio
       }
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1446,12 +1320,10 @@ public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptio
      * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
      */
     public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOptionsBuilder() {
-      return getNfsExportOptionsFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1.NfsExportOptions.getDefaultInstance());
+      return getNfsExportOptionsFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1.NfsExportOptions.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1461,12 +1333,10 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOption
      */
     public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOptionsBuilder(
         int index) {
-      return getNfsExportOptionsFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1.NfsExportOptions.getDefaultInstance());
+      return getNfsExportOptionsFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1.NfsExportOptions.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1474,22 +1344,16 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOption
      *
      * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
      */
-    public java.util.List
-        getNfsExportOptionsBuilderList() {
+    public java.util.List 
+         getNfsExportOptionsBuilderList() {
       return getNfsExportOptionsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.NfsExportOptions,
-            com.google.cloud.filestore.v1.NfsExportOptions.Builder,
-            com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder>
+        com.google.cloud.filestore.v1.NfsExportOptions, com.google.cloud.filestore.v1.NfsExportOptions.Builder, com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder> 
         getNfsExportOptionsFieldBuilder() {
       if (nfsExportOptionsBuilder_ == null) {
-        nfsExportOptionsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1.NfsExportOptions,
-                com.google.cloud.filestore.v1.NfsExportOptions.Builder,
-                com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder>(
+        nfsExportOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1.NfsExportOptions, com.google.cloud.filestore.v1.NfsExportOptions.Builder, com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder>(
                 nfsExportOptions_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1498,9 +1362,9 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOption
       }
       return nfsExportOptionsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1510,12 +1374,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.FileShareConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.FileShareConfig)
   private static final com.google.cloud.filestore.v1.FileShareConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.FileShareConfig();
   }
@@ -1524,27 +1388,27 @@ public static com.google.cloud.filestore.v1.FileShareConfig getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public FileShareConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public FileShareConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1559,4 +1423,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.filestore.v1.FileShareConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
similarity index 78%
rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
index 51e23b214e51..c2fec583f7d7 100644
--- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
+++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
@@ -1,70 +1,44 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/filestore/v1/cloud_filestore_service.proto
 
 package com.google.cloud.filestore.v1;
 
-public interface FileShareConfigOrBuilder
-    extends
+public interface FileShareConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.FileShareConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The name of the file share (must be 16 characters or less).
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the file share (must be 16 characters or less).
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * File share capacity in gigabytes (GB).
    * Cloud Filestore defines 1 GB as 1024^3 bytes.
    * 
* * int64 capacity_gb = 2; - * * @return The capacityGb. */ long getCapacityGb(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -72,13 +46,10 @@ public interface FileShareConfigOrBuilder
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ boolean hasSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -86,13 +57,10 @@ public interface FileShareConfigOrBuilder
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -100,14 +68,12 @@ public interface FileShareConfigOrBuilder
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString getSourceBackupBytes(); + com.google.protobuf.ByteString + getSourceBackupBytes(); /** - * - * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -115,10 +81,9 @@ public interface FileShareConfigOrBuilder
    *
    * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
    */
-  java.util.List getNfsExportOptionsList();
+  java.util.List 
+      getNfsExportOptionsList();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -128,8 +93,6 @@ public interface FileShareConfigOrBuilder
    */
   com.google.cloud.filestore.v1.NfsExportOptions getNfsExportOptions(int index);
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -139,8 +102,6 @@ public interface FileShareConfigOrBuilder
    */
   int getNfsExportOptionsCount();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -148,11 +109,9 @@ public interface FileShareConfigOrBuilder
    *
    * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
    */
-  java.util.List
+  java.util.List 
       getNfsExportOptionsOrBuilderList();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -160,7 +119,8 @@ public interface FileShareConfigOrBuilder
    *
    * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
    */
-  com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder(int index);
+  com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder(
+      int index);
 
   public com.google.cloud.filestore.v1.FileShareConfig.SourceCase getSourceCase();
 }
diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
similarity index 64%
rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
index a51f09dafda4..70cb3a53eef5 100644
--- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
+++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
@@ -1,86 +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/filestore/v1/cloud_filestore_service.proto
 
 package com.google.cloud.filestore.v1;
 
 /**
- *
- *
  * 
  * GetBackupRequest gets the state of a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.GetBackupRequest.class, - com.google.cloud.filestore.v1.GetBackupRequest.Builder.class); + com.google.cloud.filestore.v1.GetBackupRequest.class, com.google.cloud.filestore.v1.GetBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.GetBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.GetBackupRequest other = - (com.google.cloud.filestore.v1.GetBackupRequest) obj; + com.google.cloud.filestore.v1.GetBackupRequest other = (com.google.cloud.filestore.v1.GetBackupRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +160,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.GetBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.GetBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.v1.GetBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.GetBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.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; } /** - * - * *
    * GetBackupRequest gets the state of a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.v1.GetBackupRequest) com.google.cloud.filestore.v1.GetBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.GetBackupRequest.class, - com.google.cloud.filestore.v1.GetBackupRequest.Builder.class); + com.google.cloud.filestore.v1.GetBackupRequest.class, com.google.cloud.filestore.v1.GetBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.GetBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; } @java.lang.Override @@ -346,8 +314,7 @@ public com.google.cloud.filestore.v1.GetBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.GetBackupRequest buildPartial() { - com.google.cloud.filestore.v1.GetBackupRequest result = - new com.google.cloud.filestore.v1.GetBackupRequest(this); + com.google.cloud.filestore.v1.GetBackupRequest result = new com.google.cloud.filestore.v1.GetBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,39 +324,38 @@ public com.google.cloud.filestore.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.filestore.v1.GetBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1.GetBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.GetBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -428,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -453,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string name = 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; @@ -478,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string name = 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 { @@ -503,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * 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. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string 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. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * 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); } @@ -583,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.GetBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.GetBackupRequest) private static final com.google.cloud.filestore.v1.GetBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.GetBackupRequest(); } @@ -597,27 +541,27 @@ public static com.google.cloud.filestore.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -632,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.GetBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java new file mode 100644 index 000000000000..7cb12bf67914 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public interface GetBackupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.GetBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
+   * 
+ * + * 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/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java similarity index 63% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java index ce4e26572a51..f0d2b972e1df 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java @@ -1,86 +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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * GetInstanceRequest gets the state of an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.GetInstanceRequest} */ -public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.GetInstanceRequest) GetInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.GetInstanceRequest.class, - com.google.cloud.filestore.v1.GetInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.GetInstanceRequest.class, com.google.cloud.filestore.v1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.GetInstanceRequest other = - (com.google.cloud.filestore.v1.GetInstanceRequest) obj; + com.google.cloud.filestore.v1.GetInstanceRequest other = (com.google.cloud.filestore.v1.GetInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +160,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * GetInstanceRequest gets the state of an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.GetInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.GetInstanceRequest) com.google.cloud.filestore.v1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.GetInstanceRequest.class, - com.google.cloud.filestore.v1.GetInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.GetInstanceRequest.class, com.google.cloud.filestore.v1.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.GetInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -346,8 +314,7 @@ public com.google.cloud.filestore.v1.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.GetInstanceRequest buildPartial() { - com.google.cloud.filestore.v1.GetInstanceRequest result = - new com.google.cloud.filestore.v1.GetInstanceRequest(this); + com.google.cloud.filestore.v1.GetInstanceRequest result = new com.google.cloud.filestore.v1.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,39 +324,38 @@ public com.google.cloud.filestore.v1.GetInstanceRequest 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.filestore.v1.GetInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1.GetInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.GetInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -397,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.GetInstanceRequest other) { - if (other == com.google.cloud.filestore.v1.GetInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.GetInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -429,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -454,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string name = 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; @@ -479,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string name = 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 { @@ -504,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * 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); } @@ -584,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.GetInstanceRequest) private static final com.google.cloud.filestore.v1.GetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.GetInstanceRequest(); } @@ -598,27 +541,27 @@ public static com.google.cloud.filestore.v1.GetInstanceRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..73fb1e671d99 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public interface GetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * 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/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java similarity index 71% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java index 3afbaee882b6..61070e5c8ab2 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * A Cloud Filestore instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.Instance} */ -public final class Instance extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Instance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.Instance) InstanceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Instance() { name_ = ""; description_ = ""; @@ -50,54 +32,51 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_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.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.Instance.class, - com.google.cloud.filestore.v1.Instance.Builder.class); + com.google.cloud.filestore.v1.Instance.class, com.google.cloud.filestore.v1.Instance.Builder.class); } /** - * - * *
    * The instance state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.Instance.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State not set.
      * 
@@ -106,8 +85,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The instance is being created.
      * 
@@ -116,8 +93,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The instance is available for use.
      * 
@@ -126,8 +101,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
      * Work is being done on the instance. You can get further details from the
      * `statusMessage` field of the `Instance` resource.
@@ -137,8 +110,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     REPAIRING(3),
     /**
-     *
-     *
      * 
      * The instance is shutting down.
      * 
@@ -147,8 +118,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
      * The instance is experiencing an issue and might be unusable. You can get
      * further details from the `statusMessage` field of the `Instance`
@@ -159,8 +128,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ERROR(6),
     /**
-     *
-     *
      * 
      * The instance is restoring a backup to an existing file share and may be
      * unusable during this time.
@@ -173,8 +140,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * State not set.
      * 
@@ -183,8 +148,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The instance is being created.
      * 
@@ -193,8 +156,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The instance is available for use.
      * 
@@ -203,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
      * Work is being done on the instance. You can get further details from the
      * `statusMessage` field of the `Instance` resource.
@@ -214,8 +173,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REPAIRING_VALUE = 3;
     /**
-     *
-     *
      * 
      * The instance is shutting down.
      * 
@@ -224,8 +181,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
      * The instance is experiencing an issue and might be unusable. You can get
      * further details from the `statusMessage` field of the `Instance`
@@ -236,8 +191,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_VALUE = 6;
     /**
-     *
-     *
      * 
      * The instance is restoring a backup to an existing file share and may be
      * unusable during this time.
@@ -247,6 +200,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESTORING_VALUE = 7;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -271,57 +225,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 READY;
-        case 3:
-          return REPAIRING;
-        case 4:
-          return DELETING;
-        case 6:
-          return ERROR;
-        case 7:
-          return RESTORING;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return CREATING;
+        case 2: return READY;
+        case 3: return REPAIRING;
+        case 4: return DELETING;
+        case 6: return ERROR;
+        case 7: return RESTORING;
+        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.filestore.v1.Instance.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;
@@ -339,18 +289,15 @@ private State(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Available service tiers.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.Instance.Tier} */ - public enum Tier implements com.google.protobuf.ProtocolMessageEnum { + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -359,8 +306,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ TIER_UNSPECIFIED(0), /** - * - * *
      * STANDARD tier.
      * 
@@ -369,8 +314,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ STANDARD(1), /** - * - * *
      * PREMIUM tier.
      * 
@@ -379,8 +322,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ PREMIUM(2), /** - * - * *
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_HDD is an alias for STANDARD Tier, offering economical
@@ -391,8 +332,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     BASIC_HDD(3),
     /**
-     *
-     *
      * 
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_SSD is an alias for PREMIUM Tier, and offers improved
@@ -403,8 +342,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     BASIC_SSD(4),
     /**
-     *
-     *
      * 
      * HIGH_SCALE instances offer expanded capacity and performance scaling
      * capabilities.
@@ -417,8 +354,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not set.
      * 
@@ -427,8 +362,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * STANDARD tier.
      * 
@@ -437,8 +370,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STANDARD_VALUE = 1; /** - * - * *
      * PREMIUM tier.
      * 
@@ -447,8 +378,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PREMIUM_VALUE = 2; /** - * - * *
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_HDD is an alias for STANDARD Tier, offering economical
@@ -459,8 +388,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int BASIC_HDD_VALUE = 3;
     /**
-     *
-     *
      * 
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_SSD is an alias for PREMIUM Tier, and offers improved
@@ -471,8 +398,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int BASIC_SSD_VALUE = 4;
     /**
-     *
-     *
      * 
      * HIGH_SCALE instances offer expanded capacity and performance scaling
      * capabilities.
@@ -482,6 +407,7 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int HIGH_SCALE_SSD_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -506,55 +432,52 @@ public static Tier valueOf(int value) {
      */
     public static Tier forNumber(int value) {
       switch (value) {
-        case 0:
-          return TIER_UNSPECIFIED;
-        case 1:
-          return STANDARD;
-        case 2:
-          return PREMIUM;
-        case 3:
-          return BASIC_HDD;
-        case 4:
-          return BASIC_SSD;
-        case 5:
-          return HIGH_SCALE_SSD;
-        default:
-          return null;
+        case 0: return TIER_UNSPECIFIED;
+        case 1: return STANDARD;
+        case 2: return PREMIUM;
+        case 3: return BASIC_HDD;
+        case 4: return BASIC_SSD;
+        case 5: return HIGH_SCALE_SSD;
+        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<
+        Tier> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Tier findValueByNumber(int number) {
+              return Tier.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Tier findValueByNumber(int number) {
-            return Tier.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.filestore.v1.Instance.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Tier[] VALUES = values();
 
-    public static Tier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Tier 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;
@@ -574,15 +497,12 @@ private Tier(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The resource name of the instance, in the format
    * `projects/{project}/locations/{location}/instances/{instance}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -591,30 +511,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 resource name of the instance, in the format
    * `projects/{project}/locations/{location}/instances/{instance}`.
    * 
* * 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 { @@ -625,14 +545,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -641,29 +558,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; } } /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @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 { @@ -674,54 +591,38 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** - * - * *
    * Output only. The instance state.
    * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.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 instance state.
    * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.filestore.v1.Instance.State getState() { + @java.lang.Override public com.google.cloud.filestore.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.State result = - com.google.cloud.filestore.v1.Instance.State.valueOf(state_); + com.google.cloud.filestore.v1.Instance.State result = com.google.cloud.filestore.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1.Instance.State.UNRECOGNIZED : result; } public static final int STATUS_MESSAGE_FIELD_NUMBER = 6; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -730,29 +631,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. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.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 { @@ -763,15 +664,11 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -779,15 +676,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -795,14 +688,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -812,57 +702,49 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int TIER_FIELD_NUMBER = 8; private int tier_; /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @return The tier. */ - @java.lang.Override - public com.google.cloud.filestore.v1.Instance.Tier getTier() { + @java.lang.Override public com.google.cloud.filestore.v1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.Tier result = - com.google.cloud.filestore.v1.Instance.Tier.valueOf(tier_); + com.google.cloud.filestore.v1.Instance.Tier result = com.google.cloud.filestore.v1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.filestore.v1.Instance.Tier.UNRECOGNIZED : result; } 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.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Instance_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.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_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_; } @@ -871,30 +753,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * 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(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -902,12 +782,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -915,16 +794,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; } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -932,11 +811,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(); } @@ -946,8 +826,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int FILE_SHARES_FIELD_NUMBER = 10; private java.util.List fileShares_; /** - * - * *
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -960,8 +838,6 @@ public java.util.List getFileShar
     return fileShares_;
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -970,13 +846,11 @@ public java.util.List getFileShar
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getFileSharesOrBuilderList() {
     return fileShares_;
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -989,8 +863,6 @@ public int getFileSharesCount() {
     return fileShares_.size();
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1003,8 +875,6 @@ public com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index) {
     return fileShares_.get(index);
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1013,15 +883,14 @@ public com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index) {
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(int index) {
+  public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(
+      int index) {
     return fileShares_.get(index);
   }
 
   public static final int NETWORKS_FIELD_NUMBER = 11;
   private java.util.List networks_;
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1034,8 +903,6 @@ public java.util.List getNetworksLi
     return networks_;
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1044,13 +911,11 @@ public java.util.List getNetworksLi
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getNetworksOrBuilderList() {
     return networks_;
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1063,8 +928,6 @@ public int getNetworksCount() {
     return networks_.size();
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1077,8 +940,6 @@ public com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index) {
     return networks_.get(index);
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1087,22 +948,20 @@ public com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index) {
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(int index) {
+  public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(
+      int index) {
     return networks_.get(index);
   }
 
   public static final int ETAG_FIELD_NUMBER = 12;
   private volatile java.lang.Object etag_;
   /**
-   *
-   *
    * 
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @return The etag. */ @java.lang.Override @@ -1111,30 +970,30 @@ 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; } } /** - * - * *
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @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 { @@ -1145,16 +1004,11 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int SATISFIES_PZS_FIELD_NUMBER = 13; private com.google.protobuf.BoolValue satisfiesPzs_; /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ @java.lang.Override @@ -1162,34 +1016,23 @@ public boolean hasSatisfiesPzs() { return satisfiesPzs_ != null; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ @java.lang.Override public com.google.protobuf.BoolValue getSatisfiesPzs() { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { @@ -1197,7 +1040,6 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1209,7 +1051,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1228,8 +1071,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (tier_ != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(8, tier_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 9); for (int i = 0; i < fileShares_.size(); i++) { output.writeMessage(10, fileShares_.get(i)); } @@ -1258,38 +1105,44 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, statusMessage_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreateTime()); } if (tier_ != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, tier_); - } - 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 + .computeEnumSize(8, tier_); + } + 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__); } for (int i = 0; i < fileShares_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, fileShares_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, fileShares_.get(i)); } for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, networks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etag_); } if (satisfiesPzs_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSatisfiesPzs()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getSatisfiesPzs()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1299,29 +1152,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.filestore.v1.Instance)) { return super.equals(obj); } com.google.cloud.filestore.v1.Instance other = (com.google.cloud.filestore.v1.Instance) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) 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 (tier_ != other.tier_) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getFileSharesList().equals(other.getFileSharesList())) return false; - if (!getNetworksList().equals(other.getNetworksList())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getFileSharesList() + .equals(other.getFileSharesList())) return false; + if (!getNetworksList() + .equals(other.getNetworksList())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { - if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; + if (!getSatisfiesPzs() + .equals(other.getSatisfiesPzs())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1371,156 +1233,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.Instance parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.Instance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.Instance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.Instance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.Instance parseFrom(java.io.InputStream input) 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.filestore.v1.Instance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.Instance 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.filestore.v1.Instance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.Instance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Cloud Filestore instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.Instance} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.Instance) com.google.cloud.filestore.v1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_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.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.Instance.class, - com.google.cloud.filestore.v1.Instance.Builder.class); + com.google.cloud.filestore.v1.Instance.class, com.google.cloud.filestore.v1.Instance.Builder.class); } // Construct using com.google.cloud.filestore.v1.Instance.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1567,9 +1425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_descriptor; } @java.lang.Override @@ -1588,8 +1446,7 @@ public com.google.cloud.filestore.v1.Instance build() { @java.lang.Override public com.google.cloud.filestore.v1.Instance buildPartial() { - com.google.cloud.filestore.v1.Instance result = - new com.google.cloud.filestore.v1.Instance(this); + com.google.cloud.filestore.v1.Instance result = new com.google.cloud.filestore.v1.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -1635,39 +1492,38 @@ public com.google.cloud.filestore.v1.Instance 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.filestore.v1.Instance) { - return mergeFrom((com.google.cloud.filestore.v1.Instance) other); + return mergeFrom((com.google.cloud.filestore.v1.Instance)other); } else { super.mergeFrom(other); return this; @@ -1697,7 +1553,8 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.Instance other) { if (other.tier_ != 0) { setTierValue(other.getTierValue()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (fileSharesBuilder_ == null) { if (!other.fileShares_.isEmpty()) { if (fileShares_.isEmpty()) { @@ -1716,10 +1573,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.Instance other) { fileSharesBuilder_ = null; fileShares_ = other.fileShares_; bitField0_ = (bitField0_ & ~0x00000002); - fileSharesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFileSharesFieldBuilder() - : null; + fileSharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFileSharesFieldBuilder() : null; } else { fileSharesBuilder_.addAllMessages(other.fileShares_); } @@ -1743,10 +1599,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.Instance other) { networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000004); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNetworksFieldBuilder() - : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworksFieldBuilder() : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -1785,98 +1640,90 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 40: - { - state_ = input.readEnum(); - - break; - } // case 40 - case 50: - { - statusMessage_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 64: - { - tier_ = input.readEnum(); - - break; - } // case 64 - case 74: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 74 - case 82: - { - com.google.cloud.filestore.v1.FileShareConfig m = - input.readMessage( - com.google.cloud.filestore.v1.FileShareConfig.parser(), extensionRegistry); - if (fileSharesBuilder_ == null) { - ensureFileSharesIsMutable(); - fileShares_.add(m); - } else { - fileSharesBuilder_.addMessage(m); - } - break; - } // case 82 - case 90: - { - com.google.cloud.filestore.v1.NetworkConfig m = - input.readMessage( - com.google.cloud.filestore.v1.NetworkConfig.parser(), extensionRegistry); - if (networksBuilder_ == null) { - ensureNetworksIsMutable(); - networks_.add(m); - } else { - networksBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: - { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: - { - input.readMessage(getSatisfiesPzsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 106 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 40: { + state_ = input.readEnum(); + + break; + } // case 40 + case 50: { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 64: { + tier_ = input.readEnum(); + + break; + } // case 64 + case 74: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 74 + case 82: { + com.google.cloud.filestore.v1.FileShareConfig m = + input.readMessage( + com.google.cloud.filestore.v1.FileShareConfig.parser(), + extensionRegistry); + if (fileSharesBuilder_ == null) { + ensureFileSharesIsMutable(); + fileShares_.add(m); + } else { + fileSharesBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: { + com.google.cloud.filestore.v1.NetworkConfig m = + input.readMessage( + com.google.cloud.filestore.v1.NetworkConfig.parser(), + extensionRegistry); + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.add(m); + } else { + networksBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: { + input.readMessage( + getSatisfiesPzsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 106 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1886,26 +1733,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * 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; @@ -1914,22 +1758,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * 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 { @@ -1937,64 +1780,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * 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 resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * 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 resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * 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; @@ -2002,20 +1838,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @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; @@ -2024,21 +1858,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @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 { @@ -2046,61 +1879,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @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; } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @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; @@ -2108,73 +1934,51 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.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 instance state.
      * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.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 instance state.
      * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.State result = - com.google.cloud.filestore.v1.Instance.State.valueOf(state_); + com.google.cloud.filestore.v1.Instance.State result = com.google.cloud.filestore.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1.Instance.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2182,26 +1986,21 @@ public Builder setState(com.google.cloud.filestore.v1.Instance.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2209,20 +2008,18 @@ public Builder clearState() { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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; @@ -2231,21 +2028,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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 { @@ -2253,61 +2049,54 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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; @@ -2315,58 +2104,39 @@ public Builder setStatusMessageBytes(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 time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2382,17 +2152,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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(); @@ -2403,21 +2170,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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; } @@ -2429,15 +2192,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2451,64 +2210,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -2516,65 +2259,51 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int tier_ = 0; /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @return The tier. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.Tier result = - com.google.cloud.filestore.v1.Instance.Tier.valueOf(tier_); + com.google.cloud.filestore.v1.Instance.Tier result = com.google.cloud.filestore.v1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.filestore.v1.Instance.Tier.UNRECOGNIZED : result; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @param value The tier to set. * @return This builder for chaining. */ @@ -2582,44 +2311,42 @@ public Builder setTier(com.google.cloud.filestore.v1.Instance.Tier value) { if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; 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(); @@ -2631,30 +2358,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * 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(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2662,12 +2387,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2675,17 +2399,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; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2693,11 +2416,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(); } @@ -2705,84 +2429,80 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * 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(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * 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; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * 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.util.List fileShares_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFileSharesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fileShares_ = - new java.util.ArrayList(fileShares_); + fileShares_ = new java.util.ArrayList(fileShares_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1.FileShareConfig, - com.google.cloud.filestore.v1.FileShareConfig.Builder, - com.google.cloud.filestore.v1.FileShareConfigOrBuilder> - fileSharesBuilder_; + com.google.cloud.filestore.v1.FileShareConfig, com.google.cloud.filestore.v1.FileShareConfig.Builder, com.google.cloud.filestore.v1.FileShareConfigOrBuilder> fileSharesBuilder_; /** - * - * *
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2798,8 +2518,6 @@ public java.util.List getFileShar
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2815,8 +2533,6 @@ public int getFileSharesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2832,8 +2548,6 @@ public com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2841,7 +2555,8 @@ public com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index) {
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public Builder setFileShares(int index, com.google.cloud.filestore.v1.FileShareConfig value) {
+    public Builder setFileShares(
+        int index, com.google.cloud.filestore.v1.FileShareConfig value) {
       if (fileSharesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2855,8 +2570,6 @@ public Builder setFileShares(int index, com.google.cloud.filestore.v1.FileShareC
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2876,8 +2589,6 @@ public Builder setFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2899,8 +2610,6 @@ public Builder addFileShares(com.google.cloud.filestore.v1.FileShareConfig value
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2908,7 +2617,8 @@ public Builder addFileShares(com.google.cloud.filestore.v1.FileShareConfig value
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public Builder addFileShares(int index, com.google.cloud.filestore.v1.FileShareConfig value) {
+    public Builder addFileShares(
+        int index, com.google.cloud.filestore.v1.FileShareConfig value) {
       if (fileSharesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2922,8 +2632,6 @@ public Builder addFileShares(int index, com.google.cloud.filestore.v1.FileShareC
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2943,8 +2651,6 @@ public Builder addFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2964,8 +2670,6 @@ public Builder addFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2977,7 +2681,8 @@ public Builder addAllFileShares(
         java.lang.Iterable values) {
       if (fileSharesBuilder_ == null) {
         ensureFileSharesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileShares_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, fileShares_);
         onChanged();
       } else {
         fileSharesBuilder_.addAllMessages(values);
@@ -2985,8 +2690,6 @@ public Builder addAllFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3005,8 +2708,6 @@ public Builder clearFileShares() {
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3025,8 +2726,6 @@ public Builder removeFileShares(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3034,12 +2733,11 @@ public Builder removeFileShares(int index) {
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public com.google.cloud.filestore.v1.FileShareConfig.Builder getFileSharesBuilder(int index) {
+    public com.google.cloud.filestore.v1.FileShareConfig.Builder getFileSharesBuilder(
+        int index) {
       return getFileSharesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3050,14 +2748,11 @@ public com.google.cloud.filestore.v1.FileShareConfig.Builder getFileSharesBuilde
     public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(
         int index) {
       if (fileSharesBuilder_ == null) {
-        return fileShares_.get(index);
-      } else {
+        return fileShares_.get(index);  } else {
         return fileSharesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3065,8 +2760,8 @@ public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBui
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public java.util.List
-        getFileSharesOrBuilderList() {
+    public java.util.List 
+         getFileSharesOrBuilderList() {
       if (fileSharesBuilder_ != null) {
         return fileSharesBuilder_.getMessageOrBuilderList();
       } else {
@@ -3074,8 +2769,6 @@ public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBui
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3084,12 +2777,10 @@ public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBui
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
     public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilder() {
-      return getFileSharesFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1.FileShareConfig.getDefaultInstance());
+      return getFileSharesFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1.FileShareConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3097,13 +2788,12 @@ public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilde
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilder(int index) {
-      return getFileSharesFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1.FileShareConfig.getDefaultInstance());
+    public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilder(
+        int index) {
+      return getFileSharesFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1.FileShareConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3111,47 +2801,38 @@ public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilde
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public java.util.List
-        getFileSharesBuilderList() {
+    public java.util.List 
+         getFileSharesBuilderList() {
       return getFileSharesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.FileShareConfig,
-            com.google.cloud.filestore.v1.FileShareConfig.Builder,
-            com.google.cloud.filestore.v1.FileShareConfigOrBuilder>
+        com.google.cloud.filestore.v1.FileShareConfig, com.google.cloud.filestore.v1.FileShareConfig.Builder, com.google.cloud.filestore.v1.FileShareConfigOrBuilder> 
         getFileSharesFieldBuilder() {
       if (fileSharesBuilder_ == null) {
-        fileSharesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1.FileShareConfig,
-                com.google.cloud.filestore.v1.FileShareConfig.Builder,
-                com.google.cloud.filestore.v1.FileShareConfigOrBuilder>(
-                fileShares_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        fileSharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1.FileShareConfig, com.google.cloud.filestore.v1.FileShareConfig.Builder, com.google.cloud.filestore.v1.FileShareConfigOrBuilder>(
+                fileShares_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         fileShares_ = null;
       }
       return fileSharesBuilder_;
     }
 
     private java.util.List networks_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureNetworksIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
         networks_ = new java.util.ArrayList(networks_);
         bitField0_ |= 0x00000004;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.NetworkConfig,
-            com.google.cloud.filestore.v1.NetworkConfig.Builder,
-            com.google.cloud.filestore.v1.NetworkConfigOrBuilder>
-        networksBuilder_;
+        com.google.cloud.filestore.v1.NetworkConfig, com.google.cloud.filestore.v1.NetworkConfig.Builder, com.google.cloud.filestore.v1.NetworkConfigOrBuilder> networksBuilder_;
 
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3167,8 +2848,6 @@ public java.util.List getNetworksLi
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3184,8 +2863,6 @@ public int getNetworksCount() {
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3201,8 +2878,6 @@ public com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3210,7 +2885,8 @@ public com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index) {
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public Builder setNetworks(int index, com.google.cloud.filestore.v1.NetworkConfig value) {
+    public Builder setNetworks(
+        int index, com.google.cloud.filestore.v1.NetworkConfig value) {
       if (networksBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3224,8 +2900,6 @@ public Builder setNetworks(int index, com.google.cloud.filestore.v1.NetworkConfi
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3245,8 +2919,6 @@ public Builder setNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3268,8 +2940,6 @@ public Builder addNetworks(com.google.cloud.filestore.v1.NetworkConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3277,7 +2947,8 @@ public Builder addNetworks(com.google.cloud.filestore.v1.NetworkConfig value) {
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public Builder addNetworks(int index, com.google.cloud.filestore.v1.NetworkConfig value) {
+    public Builder addNetworks(
+        int index, com.google.cloud.filestore.v1.NetworkConfig value) {
       if (networksBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3291,8 +2962,6 @@ public Builder addNetworks(int index, com.google.cloud.filestore.v1.NetworkConfi
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3312,8 +2981,6 @@ public Builder addNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3333,8 +3000,6 @@ public Builder addNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3346,7 +3011,8 @@ public Builder addAllNetworks(
         java.lang.Iterable values) {
       if (networksBuilder_ == null) {
         ensureNetworksIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, networks_);
         onChanged();
       } else {
         networksBuilder_.addAllMessages(values);
@@ -3354,8 +3020,6 @@ public Builder addAllNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3374,8 +3038,6 @@ public Builder clearNetworks() {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3394,8 +3056,6 @@ public Builder removeNetworks(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3403,12 +3063,11 @@ public Builder removeNetworks(int index) {
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1.NetworkConfig.Builder getNetworksBuilder(int index) {
+    public com.google.cloud.filestore.v1.NetworkConfig.Builder getNetworksBuilder(
+        int index) {
       return getNetworksFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3416,16 +3075,14 @@ public com.google.cloud.filestore.v1.NetworkConfig.Builder getNetworksBuilder(in
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(int index) {
+    public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(
+        int index) {
       if (networksBuilder_ == null) {
-        return networks_.get(index);
-      } else {
+        return networks_.get(index);  } else {
         return networksBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3433,8 +3090,8 @@ public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public java.util.List
-        getNetworksOrBuilderList() {
+    public java.util.List 
+         getNetworksOrBuilderList() {
       if (networksBuilder_ != null) {
         return networksBuilder_.getMessageOrBuilderList();
       } else {
@@ -3442,8 +3099,6 @@ public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3452,12 +3107,10 @@ public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
     public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder() {
-      return getNetworksFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1.NetworkConfig.getDefaultInstance());
+      return getNetworksFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1.NetworkConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3465,13 +3118,12 @@ public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder()
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder(int index) {
-      return getNetworksFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1.NetworkConfig.getDefaultInstance());
+    public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder(
+        int index) {
+      return getNetworksFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1.NetworkConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3479,23 +3131,20 @@ public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder(in
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public java.util.List
-        getNetworksBuilderList() {
+    public java.util.List 
+         getNetworksBuilderList() {
       return getNetworksFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.NetworkConfig,
-            com.google.cloud.filestore.v1.NetworkConfig.Builder,
-            com.google.cloud.filestore.v1.NetworkConfigOrBuilder>
+        com.google.cloud.filestore.v1.NetworkConfig, com.google.cloud.filestore.v1.NetworkConfig.Builder, com.google.cloud.filestore.v1.NetworkConfigOrBuilder> 
         getNetworksFieldBuilder() {
       if (networksBuilder_ == null) {
-        networksBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1.NetworkConfig,
-                com.google.cloud.filestore.v1.NetworkConfig.Builder,
-                com.google.cloud.filestore.v1.NetworkConfigOrBuilder>(
-                networks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+        networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1.NetworkConfig, com.google.cloud.filestore.v1.NetworkConfig.Builder, com.google.cloud.filestore.v1.NetworkConfigOrBuilder>(
+                networks_,
+                ((bitField0_ & 0x00000004) != 0),
+                getParentForChildren(),
+                isClean());
         networks_ = null;
       }
       return networksBuilder_;
@@ -3503,21 +3152,19 @@ public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder(in
 
     private java.lang.Object etag_ = "";
     /**
-     *
-     *
      * 
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @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; @@ -3526,22 +3173,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @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 { @@ -3549,64 +3195,57 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @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; } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @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; @@ -3614,58 +3253,39 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.BoolValue satisfiesPzs_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - satisfiesPzsBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> satisfiesPzsBuilder_; /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ public boolean hasSatisfiesPzs() { return satisfiesPzsBuilder_ != null || satisfiesPzs_ != null; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ public com.google.protobuf.BoolValue getSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } else { return satisfiesPzsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { @@ -3681,17 +3301,14 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setSatisfiesPzs( + com.google.protobuf.BoolValue.Builder builderForValue) { if (satisfiesPzsBuilder_ == null) { satisfiesPzs_ = builderForValue.build(); onChanged(); @@ -3702,23 +3319,17 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForV return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { if (satisfiesPzs_ != null) { satisfiesPzs_ = - com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_).mergeFrom(value).buildPartial(); } else { satisfiesPzs_ = value; } @@ -3730,15 +3341,11 @@ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { @@ -3752,71 +3359,55 @@ public Builder clearSatisfiesPzs() { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder() { - + onChanged(); return getSatisfiesPzsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { if (satisfiesPzsBuilder_ != null) { return satisfiesPzsBuilder_.getMessageOrBuilder(); } else { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getSatisfiesPzsFieldBuilder() { if (satisfiesPzsBuilder_ == null) { - satisfiesPzsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getSatisfiesPzs(), getParentForChildren(), isClean()); + satisfiesPzsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getSatisfiesPzs(), + getParentForChildren(), + isClean()); satisfiesPzs_ = null; } return satisfiesPzsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3826,12 +3417,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.Instance) private static final com.google.cloud.filestore.v1.Instance DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.Instance(); } @@ -3840,27 +3431,27 @@ public static com.google.cloud.filestore.v1.Instance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3875,4 +3466,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java similarity index 75% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java index 682790f0963c..4c3e1d687d05 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java @@ -1,200 +1,140 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface InstanceOrBuilder - extends +public interface InstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.Instance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project}/locations/{location}/instances/{instance}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project}/locations/{location}/instances/{instance}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The instance state.
    * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The instance state.
    * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.filestore.v1.Instance.State getState(); /** - * - * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @return The tier. */ com.google.cloud.filestore.v1.Instance.Tier getTier(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -203,31 +143,30 @@ public interface InstanceOrBuilder */ int getLabelsCount(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * 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(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -236,24 +175,22 @@ public interface InstanceOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -261,10 +198,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
-  java.util.List getFileSharesList();
+  java.util.List 
+      getFileSharesList();
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -274,8 +210,6 @@ java.lang.String getLabelsOrDefault(
    */
   com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index);
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -285,8 +219,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getFileSharesCount();
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -294,11 +226,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
-  java.util.List
+  java.util.List 
       getFileSharesOrBuilderList();
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -306,11 +236,10 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
-  com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(int index);
+  com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -318,10 +247,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
-  java.util.List getNetworksList();
+  java.util.List 
+      getNetworksList();
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -331,8 +259,6 @@ java.lang.String getLabelsOrDefault(
    */
   com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index);
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -342,8 +268,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getNetworksCount();
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -351,11 +275,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
-  java.util.List
+  java.util.List 
       getNetworksOrBuilderList();
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -363,73 +285,55 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
-  com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(int index);
+  com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ boolean hasSatisfiesPzs(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ com.google.protobuf.BoolValue getSatisfiesPzs(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java similarity index 70% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java index e6f3f2a52b56..099ba28c64da 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * ListBackupsRequest lists backups.
  * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.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,35 +28,32 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListBackupsRequest.class, - com.google.cloud.filestore.v1.ListBackupsRequest.Builder.class); + com.google.cloud.filestore.v1.ListBackupsRequest.class, com.google.cloud.filestore.v1.ListBackupsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location for which to retrieve backup
    * information, in the format
@@ -84,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -96,15 +72,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location for which to retrieve backup
    * information, in the format
@@ -114,18 +89,17 @@ public java.lang.String getParent() {
    * `{location}` value.
    * 
* - * - * string parent = 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 { @@ -136,14 +110,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -154,15 +125,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -171,30 +139,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * 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 { @@ -205,14 +173,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ @java.lang.Override @@ -221,29 +186,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; } } /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @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 { @@ -254,14 +219,11 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ @java.lang.Override @@ -270,29 +232,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; } } /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @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 { @@ -301,7 +263,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,7 +274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -342,7 +304,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_); @@ -361,19 +324,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.filestore.v1.ListBackupsRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.ListBackupsRequest other = - (com.google.cloud.filestore.v1.ListBackupsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.filestore.v1.ListBackupsRequest other = (com.google.cloud.filestore.v1.ListBackupsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -400,136 +367,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.ListBackupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.ListBackupsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.ListBackupsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.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.filestore.v1.ListBackupsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListBackupsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.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; } /** - * - * *
    * ListBackupsRequest lists backups.
    * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.v1.ListBackupsRequest) com.google.cloud.filestore.v1.ListBackupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListBackupsRequest.class, - com.google.cloud.filestore.v1.ListBackupsRequest.Builder.class); + com.google.cloud.filestore.v1.ListBackupsRequest.class, com.google.cloud.filestore.v1.ListBackupsRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.ListBackupsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -547,9 +508,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; } @java.lang.Override @@ -568,8 +529,7 @@ public com.google.cloud.filestore.v1.ListBackupsRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.ListBackupsRequest buildPartial() { - com.google.cloud.filestore.v1.ListBackupsRequest result = - new com.google.cloud.filestore.v1.ListBackupsRequest(this); + com.google.cloud.filestore.v1.ListBackupsRequest result = new com.google.cloud.filestore.v1.ListBackupsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -583,39 +543,38 @@ public com.google.cloud.filestore.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.filestore.v1.ListBackupsRequest) { - return mergeFrom((com.google.cloud.filestore.v1.ListBackupsRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.ListBackupsRequest)other); } else { super.mergeFrom(other); return this; @@ -623,8 +582,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.ListBackupsRequest other) { - if (other == com.google.cloud.filestore.v1.ListBackupsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.ListBackupsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -670,43 +628,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -719,8 +671,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location for which to retrieve backup
      * information, in the format
@@ -730,16 +680,14 @@ public Builder mergeFrom(
      * `{location}` value.
      * 
* - * - * string parent = 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; @@ -748,8 +696,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location for which to retrieve backup
      * information, in the format
@@ -759,17 +705,16 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * - * string parent = 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 { @@ -777,8 +722,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location for which to retrieve backup
      * information, in the format
@@ -788,25 +731,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * `{location}` value.
      * 
* - * - * 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 project and location for which to retrieve backup
      * information, in the format
@@ -816,21 +755,16 @@ public Builder setParent(java.lang.String value) {
      * `{location}` value.
      * 
* - * - * string 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 project and location for which to retrieve backup
      * information, in the format
@@ -840,34 +774,29 @@ public Builder clearParent() {
      * `{location}` value.
      * 
* - * - * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -875,36 +804,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return.
      * 
* * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -912,21 +835,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -935,22 +856,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 { @@ -958,64 +878,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -1023,20 +936,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; @@ -1045,21 +956,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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 { @@ -1067,61 +977,54 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; @@ -1129,20 +1032,18 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; @@ -1151,21 +1052,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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 { @@ -1173,68 +1073,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1244,12 +1137,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.ListBackupsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.ListBackupsRequest) private static final com.google.cloud.filestore.v1.ListBackupsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.ListBackupsRequest(); } @@ -1258,27 +1151,27 @@ public static com.google.cloud.filestore.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1293,4 +1186,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.ListBackupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java similarity index 66% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java index 06e25d2cc28a..72f91001877b 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface ListBackupsRequestOrBuilder - extends +public interface ListBackupsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.ListBackupsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location for which to retrieve backup
    * information, in the format
@@ -35,16 +17,11 @@ public interface ListBackupsRequestOrBuilder
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location for which to retrieve backup
    * information, in the format
@@ -54,101 +31,81 @@ public interface ListBackupsRequestOrBuilder
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java similarity index 77% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java index f9f286a172d3..2903d1d3f3a9 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * ListBackupsResponse is the result of ListBackupsRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.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_ = ""; @@ -45,35 +27,32 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListBackupsResponse.class, - com.google.cloud.filestore.v1.ListBackupsResponse.Builder.class); + com.google.cloud.filestore.v1.ListBackupsResponse.class, com.google.cloud.filestore.v1.ListBackupsResponse.Builder.class); } public static final int BACKUPS_FIELD_NUMBER = 1; private java.util.List backups_; /** - * - * *
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -90,8 +69,6 @@ public java.util.List getBackupsList() {
     return backups_;
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -104,13 +81,11 @@ public java.util.List getBackupsList() {
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getBackupsOrBuilderList() {
     return backups_;
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -127,8 +102,6 @@ public int getBackupsCount() {
     return backups_.size();
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -145,8 +118,6 @@ public com.google.cloud.filestore.v1.Backup getBackups(int index) {
     return backups_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -159,22 +130,20 @@ public com.google.cloud.filestore.v1.Backup getBackups(int index) {
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(int index) {
+  public com.google.cloud.filestore.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_;
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -183,30 +152,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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 { @@ -217,42 +186,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. */ @@ -260,23 +221,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; @@ -288,7 +246,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -308,7 +267,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_); @@ -329,17 +289,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.filestore.v1.ListBackupsResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1.ListBackupsResponse other = - (com.google.cloud.filestore.v1.ListBackupsResponse) obj; + com.google.cloud.filestore.v1.ListBackupsResponse other = (com.google.cloud.filestore.v1.ListBackupsResponse) obj; - if (!getBackupsList().equals(other.getBackupsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getBackupsList() + .equals(other.getBackupsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -367,135 +329,129 @@ public int hashCode() { } public static com.google.cloud.filestore.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.filestore.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.filestore.v1.ListBackupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.ListBackupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.ListBackupsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListBackupsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.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.filestore.v1.ListBackupsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListBackupsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.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; } /** - * - * *
    * ListBackupsResponse is the result of ListBackupsRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.v1.ListBackupsResponse) com.google.cloud.filestore.v1.ListBackupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListBackupsResponse.class, - com.google.cloud.filestore.v1.ListBackupsResponse.Builder.class); + com.google.cloud.filestore.v1.ListBackupsResponse.class, com.google.cloud.filestore.v1.ListBackupsResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1.ListBackupsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -514,9 +470,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; } @java.lang.Override @@ -535,8 +491,7 @@ public com.google.cloud.filestore.v1.ListBackupsResponse build() { @java.lang.Override public com.google.cloud.filestore.v1.ListBackupsResponse buildPartial() { - com.google.cloud.filestore.v1.ListBackupsResponse result = - new com.google.cloud.filestore.v1.ListBackupsResponse(this); + com.google.cloud.filestore.v1.ListBackupsResponse result = new com.google.cloud.filestore.v1.ListBackupsResponse(this); int from_bitField0_ = bitField0_; if (backupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -561,39 +516,38 @@ public com.google.cloud.filestore.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.filestore.v1.ListBackupsResponse) { - return mergeFrom((com.google.cloud.filestore.v1.ListBackupsResponse) other); + return mergeFrom((com.google.cloud.filestore.v1.ListBackupsResponse)other); } else { super.mergeFrom(other); return this; @@ -601,8 +555,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.ListBackupsResponse other) { - if (other == com.google.cloud.filestore.v1.ListBackupsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.ListBackupsResponse.getDefaultInstance()) return this; if (backupsBuilder_ == null) { if (!other.backups_.isEmpty()) { if (backups_.isEmpty()) { @@ -621,10 +574,9 @@ public Builder mergeFrom(com.google.cloud.filestore.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_); } @@ -670,39 +622,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.filestore.v1.Backup m = - input.readMessage( - com.google.cloud.filestore.v1.Backup.parser(), extensionRegistry); - if (backupsBuilder_ == null) { - ensureBackupsIsMutable(); - backups_.add(m); - } else { - backupsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.filestore.v1.Backup m = + input.readMessage( + com.google.cloud.filestore.v1.Backup.parser(), + extensionRegistry); + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(m); + } else { + backupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -712,28 +661,21 @@ public Builder mergeFrom( } // finally 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.filestore.v1.Backup, - com.google.cloud.filestore.v1.Backup.Builder, - com.google.cloud.filestore.v1.BackupOrBuilder> - backupsBuilder_; + com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> backupsBuilder_; /** - * - * *
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -753,8 +695,6 @@ public java.util.List getBackupsList() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -774,8 +714,6 @@ public int getBackupsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -795,8 +733,6 @@ public com.google.cloud.filestore.v1.Backup getBackups(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -808,7 +744,8 @@ public com.google.cloud.filestore.v1.Backup getBackups(int index) {
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public Builder setBackups(int index, com.google.cloud.filestore.v1.Backup value) {
+    public Builder setBackups(
+        int index, com.google.cloud.filestore.v1.Backup value) {
       if (backupsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -822,8 +759,6 @@ public Builder setBackups(int index, com.google.cloud.filestore.v1.Backup value)
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -847,8 +782,6 @@ public Builder setBackups(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -874,8 +807,6 @@ public Builder addBackups(com.google.cloud.filestore.v1.Backup value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -887,7 +818,8 @@ public Builder addBackups(com.google.cloud.filestore.v1.Backup value) {
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public Builder addBackups(int index, com.google.cloud.filestore.v1.Backup value) {
+    public Builder addBackups(
+        int index, com.google.cloud.filestore.v1.Backup value) {
       if (backupsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -901,8 +833,6 @@ public Builder addBackups(int index, com.google.cloud.filestore.v1.Backup value)
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -914,7 +844,8 @@ public Builder addBackups(int index, com.google.cloud.filestore.v1.Backup value)
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public Builder addBackups(com.google.cloud.filestore.v1.Backup.Builder builderForValue) {
+    public Builder addBackups(
+        com.google.cloud.filestore.v1.Backup.Builder builderForValue) {
       if (backupsBuilder_ == null) {
         ensureBackupsIsMutable();
         backups_.add(builderForValue.build());
@@ -925,8 +856,6 @@ public Builder addBackups(com.google.cloud.filestore.v1.Backup.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -950,8 +879,6 @@ public Builder addBackups(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -967,7 +894,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);
@@ -975,8 +903,6 @@ public Builder addAllBackups(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -999,8 +925,6 @@ public Builder clearBackups() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1023,8 +947,6 @@ public Builder removeBackups(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1036,12 +958,11 @@ public Builder removeBackups(int index) {
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1.Backup.Builder getBackupsBuilder(int index) {
+    public com.google.cloud.filestore.v1.Backup.Builder getBackupsBuilder(
+        int index) {
       return getBackupsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1053,16 +974,14 @@ public com.google.cloud.filestore.v1.Backup.Builder getBackupsBuilder(int index)
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(int index) {
+    public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(
+        int index) {
       if (backupsBuilder_ == null) {
-        return backups_.get(index);
-      } else {
+        return backups_.get(index);  } else {
         return backupsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1074,8 +993,8 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(int ind
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public java.util.List
-        getBackupsOrBuilderList() {
+    public java.util.List 
+         getBackupsOrBuilderList() {
       if (backupsBuilder_ != null) {
         return backupsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1083,8 +1002,6 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(int ind
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1097,12 +1014,10 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(int ind
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
     public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder() {
-      return getBackupsFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1.Backup.getDefaultInstance());
+      return getBackupsFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1.Backup.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1114,13 +1029,12 @@ public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder() {
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder(int index) {
-      return getBackupsFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1.Backup.getDefaultInstance());
+    public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder(
+        int index) {
+      return getBackupsFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1.Backup.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1132,22 +1046,20 @@ public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder(int index)
      *
      * repeated .google.cloud.filestore.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.filestore.v1.Backup,
-            com.google.cloud.filestore.v1.Backup.Builder,
-            com.google.cloud.filestore.v1.BackupOrBuilder>
+        com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> 
         getBackupsFieldBuilder() {
       if (backupsBuilder_ == null) {
-        backupsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1.Backup,
-                com.google.cloud.filestore.v1.Backup.Builder,
-                com.google.cloud.filestore.v1.BackupOrBuilder>(
-                backups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        backupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder>(
+                backups_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         backups_ = null;
       }
       return backupsBuilder_;
@@ -1155,21 +1067,19 @@ public java.util.List getBackupsBu
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; @@ -1178,22 +1088,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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 { @@ -1201,115 +1110,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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. */ @@ -1317,90 +1209,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() { @@ -1410,30 +1292,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); } @@ -1443,12 +1323,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.ListBackupsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.ListBackupsResponse) private static final com.google.cloud.filestore.v1.ListBackupsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.ListBackupsResponse(); } @@ -1457,27 +1337,27 @@ public static com.google.cloud.filestore.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1492,4 +1372,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.ListBackupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java similarity index 80% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java index 20008825cbba..f36e32588b7e 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface ListBackupsResponseOrBuilder - extends +public interface ListBackupsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.ListBackupsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -37,10 +19,9 @@ public interface ListBackupsResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
-  java.util.List getBackupsList();
+  java.util.List 
+      getBackupsList();
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -54,8 +35,6 @@ public interface ListBackupsResponseOrBuilder
    */
   com.google.cloud.filestore.v1.Backup getBackups(int index);
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -69,8 +48,6 @@ public interface ListBackupsResponseOrBuilder
    */
   int getBackupsCount();
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -82,10 +59,9 @@ public interface ListBackupsResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
-  java.util.List getBackupsOrBuilderList();
+  java.util.List 
+      getBackupsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -97,83 +73,69 @@ public interface ListBackupsResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
-  com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(int index);
+  com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java similarity index 70% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java index 5d12002417cd..9585af3d442e 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * ListInstancesRequest lists instances.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.ListInstancesRequest} */ -public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.ListInstancesRequest) ListInstancesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,35 +28,32 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListInstancesRequest.class, - com.google.cloud.filestore.v1.ListInstancesRequest.Builder.class); + com.google.cloud.filestore.v1.ListInstancesRequest.class, com.google.cloud.filestore.v1.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location for which to retrieve instance
    * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -83,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -95,15 +71,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location for which to retrieve instance
    * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -112,18 +87,17 @@ public java.lang.String getParent() {
    * `{location}` value.
    * 
* - * - * string parent = 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 { @@ -134,14 +108,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -152,15 +123,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -169,30 +137,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -203,14 +171,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ @java.lang.Override @@ -219,29 +184,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; } } /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @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 { @@ -252,14 +217,11 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ @java.lang.Override @@ -268,29 +230,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; } } /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @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 { @@ -299,7 +261,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,7 +272,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -340,7 +302,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_); @@ -359,19 +322,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.filestore.v1.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.ListInstancesRequest other = - (com.google.cloud.filestore.v1.ListInstancesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.filestore.v1.ListInstancesRequest other = (com.google.cloud.filestore.v1.ListInstancesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,135 +366,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( - java.nio.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.filestore.v1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListInstancesRequest lists instances.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.ListInstancesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.ListInstancesRequest) com.google.cloud.filestore.v1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListInstancesRequest.class, - com.google.cloud.filestore.v1.ListInstancesRequest.Builder.class); + com.google.cloud.filestore.v1.ListInstancesRequest.class, com.google.cloud.filestore.v1.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.ListInstancesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -545,9 +506,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -566,8 +527,7 @@ public com.google.cloud.filestore.v1.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.ListInstancesRequest buildPartial() { - com.google.cloud.filestore.v1.ListInstancesRequest result = - new com.google.cloud.filestore.v1.ListInstancesRequest(this); + com.google.cloud.filestore.v1.ListInstancesRequest result = new com.google.cloud.filestore.v1.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -581,39 +541,38 @@ public com.google.cloud.filestore.v1.ListInstancesRequest 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.filestore.v1.ListInstancesRequest) { - return mergeFrom((com.google.cloud.filestore.v1.ListInstancesRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.ListInstancesRequest)other); } else { super.mergeFrom(other); return this; @@ -621,8 +580,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.ListInstancesRequest other) { - if (other == com.google.cloud.filestore.v1.ListInstancesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.ListInstancesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -668,43 +626,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -717,8 +669,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -727,16 +677,14 @@ public Builder mergeFrom(
      * `{location}` value.
      * 
* - * - * string parent = 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; @@ -745,8 +693,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -755,17 +701,16 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * - * string parent = 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 { @@ -773,8 +718,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -783,25 +726,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * `{location}` value.
      * 
* - * - * 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 project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -810,21 +749,16 @@ public Builder setParent(java.lang.String value) {
      * `{location}` value.
      * 
* - * - * string 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 project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -833,34 +767,29 @@ public Builder clearParent() {
      * `{location}` value.
      * 
* - * - * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -868,36 +797,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return.
      * 
* * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -905,21 +828,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -928,22 +849,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 { @@ -951,64 +871,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -1016,20 +929,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; @@ -1038,21 +949,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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 { @@ -1060,61 +970,54 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; @@ -1122,20 +1025,18 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; @@ -1144,21 +1045,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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 { @@ -1166,68 +1066,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1237,12 +1130,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.ListInstancesRequest) private static final com.google.cloud.filestore.v1.ListInstancesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.ListInstancesRequest(); } @@ -1251,27 +1144,27 @@ public static com.google.cloud.filestore.v1.ListInstancesRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1286,4 +1179,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java similarity index 66% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java index b58fed45ebb2..3db0ab0718c8 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface ListInstancesRequestOrBuilder - extends +public interface ListInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location for which to retrieve instance
    * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -34,16 +16,11 @@ public interface ListInstancesRequestOrBuilder
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location for which to retrieve instance
    * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -52,101 +29,81 @@ public interface ListInstancesRequestOrBuilder
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java similarity index 77% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java index 6630f341b4a9..bc871f7dd1ec 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * ListInstancesResponse is the result of ListInstancesRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.ListInstancesResponse} */ -public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.ListInstancesResponse) ListInstancesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,35 +27,32 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListInstancesResponse.class, - com.google.cloud.filestore.v1.ListInstancesResponse.Builder.class); + com.google.cloud.filestore.v1.ListInstancesResponse.class, com.google.cloud.filestore.v1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** - * - * *
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -89,8 +68,6 @@ public java.util.List getInstancesList()
     return instances_;
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -102,13 +79,11 @@ public java.util.List getInstancesList()
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getInstancesOrBuilderList() {
     return instances_;
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -124,8 +99,6 @@ public int getInstancesCount() {
     return instances_.size();
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -141,8 +114,6 @@ public com.google.cloud.filestore.v1.Instance getInstances(int index) {
     return instances_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -154,22 +125,20 @@ public com.google.cloud.filestore.v1.Instance getInstances(int index) {
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int index) {
+  public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(
+      int index) {
     return instances_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -178,30 +147,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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 { @@ -212,42 +181,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. */ @@ -255,23 +216,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; @@ -283,7 +241,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -303,7 +262,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -324,17 +284,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.filestore.v1.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1.ListInstancesResponse other = - (com.google.cloud.filestore.v1.ListInstancesResponse) obj; + com.google.cloud.filestore.v1.ListInstancesResponse other = (com.google.cloud.filestore.v1.ListInstancesResponse) obj; - if (!getInstancesList().equals(other.getInstancesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -362,135 +324,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( - java.nio.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.filestore.v1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListInstancesResponse is the result of ListInstancesRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.ListInstancesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.ListInstancesResponse) com.google.cloud.filestore.v1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListInstancesResponse.class, - com.google.cloud.filestore.v1.ListInstancesResponse.Builder.class); + com.google.cloud.filestore.v1.ListInstancesResponse.class, com.google.cloud.filestore.v1.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1.ListInstancesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -509,9 +465,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -530,8 +486,7 @@ public com.google.cloud.filestore.v1.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.filestore.v1.ListInstancesResponse buildPartial() { - com.google.cloud.filestore.v1.ListInstancesResponse result = - new com.google.cloud.filestore.v1.ListInstancesResponse(this); + com.google.cloud.filestore.v1.ListInstancesResponse result = new com.google.cloud.filestore.v1.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -556,39 +511,38 @@ public com.google.cloud.filestore.v1.ListInstancesResponse 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.filestore.v1.ListInstancesResponse) { - return mergeFrom((com.google.cloud.filestore.v1.ListInstancesResponse) other); + return mergeFrom((com.google.cloud.filestore.v1.ListInstancesResponse)other); } else { super.mergeFrom(other); return this; @@ -596,8 +550,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.ListInstancesResponse other) { - if (other == com.google.cloud.filestore.v1.ListInstancesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.ListInstancesResponse.getDefaultInstance()) return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -616,10 +569,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.ListInstancesResponse oth instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstancesFieldBuilder() - : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstancesFieldBuilder() : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -665,39 +617,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.filestore.v1.Instance m = - input.readMessage( - com.google.cloud.filestore.v1.Instance.parser(), extensionRegistry); - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.add(m); - } else { - instancesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.filestore.v1.Instance m = + input.readMessage( + com.google.cloud.filestore.v1.Instance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -707,28 +656,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, - com.google.cloud.filestore.v1.Instance.Builder, - com.google.cloud.filestore.v1.InstanceOrBuilder> - instancesBuilder_; + com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> instancesBuilder_; /** - * - * *
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -747,8 +689,6 @@ public java.util.List getInstancesList()
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -767,8 +707,6 @@ public int getInstancesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -787,8 +725,6 @@ public com.google.cloud.filestore.v1.Instance getInstances(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -799,7 +735,8 @@ public com.google.cloud.filestore.v1.Instance getInstances(int index) {
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public Builder setInstances(int index, com.google.cloud.filestore.v1.Instance value) {
+    public Builder setInstances(
+        int index, com.google.cloud.filestore.v1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -813,8 +750,6 @@ public Builder setInstances(int index, com.google.cloud.filestore.v1.Instance va
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -837,8 +772,6 @@ public Builder setInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -863,8 +796,6 @@ public Builder addInstances(com.google.cloud.filestore.v1.Instance value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -875,7 +806,8 @@ public Builder addInstances(com.google.cloud.filestore.v1.Instance value) {
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public Builder addInstances(int index, com.google.cloud.filestore.v1.Instance value) {
+    public Builder addInstances(
+        int index, com.google.cloud.filestore.v1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -889,8 +821,6 @@ public Builder addInstances(int index, com.google.cloud.filestore.v1.Instance va
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -901,7 +831,8 @@ public Builder addInstances(int index, com.google.cloud.filestore.v1.Instance va
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public Builder addInstances(com.google.cloud.filestore.v1.Instance.Builder builderForValue) {
+    public Builder addInstances(
+        com.google.cloud.filestore.v1.Instance.Builder builderForValue) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
         instances_.add(builderForValue.build());
@@ -912,8 +843,6 @@ public Builder addInstances(com.google.cloud.filestore.v1.Instance.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -936,8 +865,6 @@ public Builder addInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -952,7 +879,8 @@ public Builder addAllInstances(
         java.lang.Iterable values) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, instances_);
         onChanged();
       } else {
         instancesBuilder_.addAllMessages(values);
@@ -960,8 +888,6 @@ public Builder addAllInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -983,8 +909,6 @@ public Builder clearInstances() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1006,8 +930,6 @@ public Builder removeInstances(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1018,12 +940,11 @@ public Builder removeInstances(int index) {
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1.Instance.Builder getInstancesBuilder(int index) {
+    public com.google.cloud.filestore.v1.Instance.Builder getInstancesBuilder(
+        int index) {
       return getInstancesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1034,16 +955,14 @@ public com.google.cloud.filestore.v1.Instance.Builder getInstancesBuilder(int in
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int index) {
+    public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(
+        int index) {
       if (instancesBuilder_ == null) {
-        return instances_.get(index);
-      } else {
+        return instances_.get(index);  } else {
         return instancesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1054,8 +973,8 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public java.util.List
-        getInstancesOrBuilderList() {
+    public java.util.List 
+         getInstancesOrBuilderList() {
       if (instancesBuilder_ != null) {
         return instancesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1063,8 +982,6 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1076,12 +993,10 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
     public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder() {
-      return getInstancesFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1.Instance.getDefaultInstance());
+      return getInstancesFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1092,13 +1007,12 @@ public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder() {
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder(int index) {
-      return getInstancesFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1.Instance.getDefaultInstance());
+    public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder(
+        int index) {
+      return getInstancesFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1109,23 +1023,20 @@ public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder(int in
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public java.util.List
-        getInstancesBuilderList() {
+    public java.util.List 
+         getInstancesBuilderList() {
       return getInstancesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.Instance,
-            com.google.cloud.filestore.v1.Instance.Builder,
-            com.google.cloud.filestore.v1.InstanceOrBuilder>
+        com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> 
         getInstancesFieldBuilder() {
       if (instancesBuilder_ == null) {
-        instancesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1.Instance,
-                com.google.cloud.filestore.v1.Instance.Builder,
-                com.google.cloud.filestore.v1.InstanceOrBuilder>(
-                instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder>(
+                instances_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         instances_ = null;
       }
       return instancesBuilder_;
@@ -1133,21 +1044,19 @@ public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder(int in
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; @@ -1156,22 +1065,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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 { @@ -1179,115 +1087,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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. */ @@ -1295,90 +1186,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() { @@ -1388,30 +1269,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); } @@ -1421,12 +1300,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.ListInstancesResponse) private static final com.google.cloud.filestore.v1.ListInstancesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.ListInstancesResponse(); } @@ -1435,27 +1314,27 @@ public static com.google.cloud.filestore.v1.ListInstancesResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1470,4 +1349,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java similarity index 80% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java index cea59d133b7e..6c3648858539 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface ListInstancesResponseOrBuilder - extends +public interface ListInstancesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -36,10 +18,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
-  java.util.List getInstancesList();
+  java.util.List 
+      getInstancesList();
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -52,8 +33,6 @@ public interface ListInstancesResponseOrBuilder
    */
   com.google.cloud.filestore.v1.Instance getInstances(int index);
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -66,8 +45,6 @@ public interface ListInstancesResponseOrBuilder
    */
   int getInstancesCount();
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -78,11 +55,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
-  java.util.List
+  java.util.List 
       getInstancesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -93,83 +68,69 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
-  com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int index);
+  com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java similarity index 77% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java index cdf8e24568e4..507da6f90f16 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * Network configuration for the instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.NetworkConfig} */ -public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NetworkConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.NetworkConfig) NetworkConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NetworkConfig.newBuilder() to construct. private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NetworkConfig() { network_ = ""; modes_ = java.util.Collections.emptyList(); @@ -46,43 +28,39 @@ private NetworkConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NetworkConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.NetworkConfig.class, - com.google.cloud.filestore.v1.NetworkConfig.Builder.class); + com.google.cloud.filestore.v1.NetworkConfig.class, com.google.cloud.filestore.v1.NetworkConfig.Builder.class); } /** - * - * *
    * Internet protocol versions supported by Cloud Filestore.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.NetworkConfig.AddressMode} */ - public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { + public enum AddressMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Internet protocol not set.
      * 
@@ -91,8 +69,6 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { */ ADDRESS_MODE_UNSPECIFIED(0), /** - * - * *
      * Use the IPv4 internet protocol.
      * 
@@ -104,8 +80,6 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Internet protocol not set.
      * 
@@ -114,8 +88,6 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADDRESS_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Use the IPv4 internet protocol.
      * 
@@ -124,6 +96,7 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MODE_IPV4_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -148,47 +121,48 @@ public static AddressMode valueOf(int value) { */ public static AddressMode forNumber(int value) { switch (value) { - case 0: - return ADDRESS_MODE_UNSPECIFIED; - case 1: - return MODE_IPV4; - default: - return null; + case 0: return ADDRESS_MODE_UNSPECIFIED; + case 1: return MODE_IPV4; + 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< + AddressMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AddressMode findValueByNumber(int number) { + return AddressMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AddressMode findValueByNumber(int number) { - return AddressMode.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.filestore.v1.NetworkConfig.getDescriptor().getEnumTypes().get(0); } private static final AddressMode[] VALUES = values(); - public static AddressMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AddressMode 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; @@ -208,8 +182,6 @@ private AddressMode(int value) { public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -217,7 +189,6 @@ private AddressMode(int value) {
    * 
* * string network = 1; - * * @return The network. */ @java.lang.Override @@ -226,15 +197,14 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -242,15 +212,16 @@ public java.lang.String getNetwork() {
    * 
* * string network = 1; - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -261,48 +232,36 @@ public com.google.protobuf.ByteString getNetworkBytes() { public static final int MODES_FIELD_NUMBER = 3; private java.util.List modes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode> - modes_converter_ = + java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode> modes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>() { - public com.google.cloud.filestore.v1.NetworkConfig.AddressMode convert( - java.lang.Integer from) { + public com.google.cloud.filestore.v1.NetworkConfig.AddressMode convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NetworkConfig.AddressMode result = - com.google.cloud.filestore.v1.NetworkConfig.AddressMode.valueOf(from); - return result == null - ? com.google.cloud.filestore.v1.NetworkConfig.AddressMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1.NetworkConfig.AddressMode result = com.google.cloud.filestore.v1.NetworkConfig.AddressMode.valueOf(from); + return result == null ? com.google.cloud.filestore.v1.NetworkConfig.AddressMode.UNRECOGNIZED : result; } }; /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the modes. */ @java.lang.Override public java.util.List getModesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>( - modes_, modes_converter_); + java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>(modes_, modes_converter_); } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return The count of modes. */ @java.lang.Override @@ -310,15 +269,12 @@ public int getModesCount() { return modes_.size(); } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the element to return. * @return The modes at the given index. */ @@ -327,31 +283,26 @@ public com.google.cloud.filestore.v1.NetworkConfig.AddressMode getModes(int inde return modes_converter_.convert(modes_.get(index)); } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the enum numeric values on the wire for modes. */ @java.lang.Override - public java.util.List getModesValueList() { + public java.util.List + getModesValueList() { return modes_; } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ @@ -359,14 +310,11 @@ public java.util.List getModesValueList() { public int getModesValue(int index) { return modes_.get(index); } - private int modesMemoizedSerializedSize; public static final int RESERVED_IP_RANGE_FIELD_NUMBER = 4; private volatile java.lang.Object reservedIpRange_; /** - * - * *
    * A /29 CIDR block in one of the
    * [internal IP address
@@ -378,7 +326,6 @@ public int getModesValue(int index) {
    * 
* * string reserved_ip_range = 4; - * * @return The reservedIpRange. */ @java.lang.Override @@ -387,15 +334,14 @@ public java.lang.String getReservedIpRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; } } /** - * - * *
    * A /29 CIDR block in one of the
    * [internal IP address
@@ -407,15 +353,16 @@ public java.lang.String getReservedIpRange() {
    * 
* * string reserved_ip_range = 4; - * * @return The bytes for reservedIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString getReservedIpRangeBytes() { + public com.google.protobuf.ByteString + getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -426,8 +373,6 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() { public static final int IP_ADDRESSES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList ipAddresses_; /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -436,15 +381,13 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList getIpAddressesList() { + public com.google.protobuf.ProtocolStringList + getIpAddressesList() { return ipAddresses_; } /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -453,15 +396,12 @@ public com.google.protobuf.ProtocolStringList getIpAddressesList() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -470,7 +410,6 @@ public int getIpAddressesCount() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -478,8 +417,6 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -488,16 +425,15 @@ public java.lang.String getIpAddresses(int index) {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString + getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -509,7 +445,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); @@ -542,14 +479,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < modes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(modes_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(modes_.get(i)); } size += dataSize; - if (!getModesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - modesMemoizedSerializedSize = dataSize; + if (!getModesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }modesMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservedIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reservedIpRange_); @@ -570,18 +507,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.filestore.v1.NetworkConfig)) { return super.equals(obj); } - com.google.cloud.filestore.v1.NetworkConfig other = - (com.google.cloud.filestore.v1.NetworkConfig) obj; + com.google.cloud.filestore.v1.NetworkConfig other = (com.google.cloud.filestore.v1.NetworkConfig) obj; - if (!getNetwork().equals(other.getNetwork())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; if (!modes_.equals(other.modes_)) return false; - if (!getReservedIpRange().equals(other.getReservedIpRange())) return false; - if (!getIpAddressesList().equals(other.getIpAddressesList())) return false; + if (!getReservedIpRange() + .equals(other.getReservedIpRange())) return false; + if (!getIpAddressesList() + .equals(other.getIpAddressesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -610,136 +549,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom(java.io.InputStream input) 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.filestore.v1.NetworkConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.NetworkConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.NetworkConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.NetworkConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.NetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.NetworkConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Network configuration for the instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.NetworkConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.NetworkConfig) com.google.cloud.filestore.v1.NetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.NetworkConfig.class, - com.google.cloud.filestore.v1.NetworkConfig.Builder.class); + com.google.cloud.filestore.v1.NetworkConfig.class, com.google.cloud.filestore.v1.NetworkConfig.Builder.class); } // Construct using com.google.cloud.filestore.v1.NetworkConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -755,9 +688,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; } @java.lang.Override @@ -776,8 +709,7 @@ public com.google.cloud.filestore.v1.NetworkConfig build() { @java.lang.Override public com.google.cloud.filestore.v1.NetworkConfig buildPartial() { - com.google.cloud.filestore.v1.NetworkConfig result = - new com.google.cloud.filestore.v1.NetworkConfig(this); + com.google.cloud.filestore.v1.NetworkConfig result = new com.google.cloud.filestore.v1.NetworkConfig(this); int from_bitField0_ = bitField0_; result.network_ = network_; if (((bitField0_ & 0x00000001) != 0)) { @@ -799,39 +731,38 @@ public com.google.cloud.filestore.v1.NetworkConfig 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.filestore.v1.NetworkConfig) { - return mergeFrom((com.google.cloud.filestore.v1.NetworkConfig) other); + return mergeFrom((com.google.cloud.filestore.v1.NetworkConfig)other); } else { super.mergeFrom(other); return this; @@ -894,51 +825,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - network_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 24: - { + case 10: { + network_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 24: { + int tmpRaw = input.readEnum(); + ensureModesIsMutable(); + modes_.add(tmpRaw); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureModesIsMutable(); modes_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureModesIsMutable(); - modes_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 34: - { - reservedIpRange_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpAddressesIsMutable(); - ipAddresses_.add(s); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 26 + case 34: { + reservedIpRange_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureIpAddressesIsMutable(); + ipAddresses_.add(s); + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -948,13 +873,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object network_ = ""; /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -962,13 +884,13 @@ public Builder mergeFrom(
      * 
* * string network = 1; - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -977,8 +899,6 @@ public java.lang.String getNetwork() { } } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -986,14 +906,15 @@ public java.lang.String getNetwork() {
      * 
* * string network = 1; - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -1001,8 +922,6 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1010,22 +929,20 @@ public com.google.protobuf.ByteString getNetworkBytes() {
      * 
* * string network = 1; - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { + public Builder setNetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1033,18 +950,15 @@ public Builder setNetwork(java.lang.String value) {
      * 
* * string network = 1; - * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1052,23 +966,23 @@ public Builder clearNetwork() {
      * 
* * string network = 1; - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; } - private java.util.List modes_ = java.util.Collections.emptyList(); - + private java.util.List modes_ = + java.util.Collections.emptyList(); private void ensureModesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { modes_ = new java.util.ArrayList(modes_); @@ -1076,47 +990,37 @@ private void ensureModesIsMutable() { } } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the modes. */ public java.util.List getModesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>( - modes_, modes_converter_); + java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>(modes_, modes_converter_); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return The count of modes. */ public int getModesCount() { return modes_.size(); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the element to return. * @return The modes at the given index. */ @@ -1124,15 +1028,12 @@ public com.google.cloud.filestore.v1.NetworkConfig.AddressMode getModes(int inde return modes_converter_.convert(modes_.get(index)); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index to set the value at. * @param value The modes to set. * @return This builder for chaining. @@ -1148,15 +1049,12 @@ public Builder setModes( return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param value The modes to add. * @return This builder for chaining. */ @@ -1170,21 +1068,17 @@ public Builder addModes(com.google.cloud.filestore.v1.NetworkConfig.AddressMode return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param values The modes to add. * @return This builder for chaining. */ public Builder addAllModes( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureModesIsMutable(); for (com.google.cloud.filestore.v1.NetworkConfig.AddressMode value : values) { modes_.add(value.getNumber()); @@ -1193,15 +1087,12 @@ public Builder addAllModes( return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return This builder for chaining. */ public Builder clearModes() { @@ -1211,30 +1102,25 @@ public Builder clearModes() { return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the enum numeric values on the wire for modes. */ - public java.util.List getModesValueList() { + public java.util.List + getModesValueList() { return java.util.Collections.unmodifiableList(modes_); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ @@ -1242,35 +1128,30 @@ public int getModesValue(int index) { return modes_.get(index); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index to set the value at. * @param value The enum numeric value on the wire for modes to set. * @return This builder for chaining. */ - public Builder setModesValue(int index, int value) { + public Builder setModesValue( + int index, int value) { ensureModesIsMutable(); modes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param value The enum numeric value on the wire for modes to add. * @return This builder for chaining. */ @@ -1281,19 +1162,17 @@ public Builder addModesValue(int value) { return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param values The enum numeric values on the wire for modes to add. * @return This builder for chaining. */ - public Builder addAllModesValue(java.lang.Iterable values) { + public Builder addAllModesValue( + java.lang.Iterable values) { ensureModesIsMutable(); for (int value : values) { modes_.add(value); @@ -1304,8 +1183,6 @@ public Builder addAllModesValue(java.lang.Iterable values) { private java.lang.Object reservedIpRange_ = ""; /** - * - * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1317,13 +1194,13 @@ public Builder addAllModesValue(java.lang.Iterable values) {
      * 
* * string reserved_ip_range = 4; - * * @return The reservedIpRange. */ public java.lang.String getReservedIpRange() { java.lang.Object ref = reservedIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; @@ -1332,8 +1209,6 @@ public java.lang.String getReservedIpRange() { } } /** - * - * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1345,14 +1220,15 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 4; - * * @return The bytes for reservedIpRange. */ - public com.google.protobuf.ByteString getReservedIpRangeBytes() { + public com.google.protobuf.ByteString + getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -1360,8 +1236,6 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() { } } /** - * - * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1373,22 +1247,20 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
      * 
* * string reserved_ip_range = 4; - * * @param value The reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRange(java.lang.String value) { + public Builder setReservedIpRange( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reservedIpRange_ = value; onChanged(); return this; } /** - * - * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1400,18 +1272,15 @@ public Builder setReservedIpRange(java.lang.String value) {
      * 
* * string reserved_ip_range = 4; - * * @return This builder for chaining. */ public Builder clearReservedIpRange() { - + reservedIpRange_ = getDefaultInstance().getReservedIpRange(); onChanged(); return this; } /** - * - * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1423,33 +1292,29 @@ public Builder clearReservedIpRange() {
      * 
* * string reserved_ip_range = 4; - * * @param value The bytes for reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) { + public Builder setReservedIpRangeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reservedIpRange_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ipAddresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpAddressesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ipAddresses_ = new com.google.protobuf.LazyStringArrayList(ipAddresses_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1458,15 +1323,13 @@ private void ensureIpAddressesIsMutable() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList getIpAddressesList() { + public com.google.protobuf.ProtocolStringList + getIpAddressesList() { return ipAddresses_.getUnmodifiableView(); } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1475,15 +1338,12 @@ public com.google.protobuf.ProtocolStringList getIpAddressesList() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1492,7 +1352,6 @@ public int getIpAddressesCount() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -1500,8 +1359,6 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1510,16 +1367,14 @@ public java.lang.String getIpAddresses(int index) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString + getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1528,23 +1383,21 @@ public com.google.protobuf.ByteString getIpAddressesBytes(int index) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index to set the value at. * @param value The ipAddresses to set. * @return This builder for chaining. */ - public Builder setIpAddresses(int index, java.lang.String value) { + public Builder setIpAddresses( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1553,22 +1406,20 @@ public Builder setIpAddresses(int index, java.lang.String value) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddresses(java.lang.String value) { + public Builder addIpAddresses( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1577,19 +1428,18 @@ public Builder addIpAddresses(java.lang.String value) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param values The ipAddresses to add. * @return This builder for chaining. */ - public Builder addAllIpAddresses(java.lang.Iterable values) { + public Builder addAllIpAddresses( + java.lang.Iterable values) { ensureIpAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ipAddresses_); onChanged(); return this; } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1598,7 +1448,6 @@ public Builder addAllIpAddresses(java.lang.Iterable values) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearIpAddresses() { @@ -1608,8 +1457,6 @@ public Builder clearIpAddresses() { return this; } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1618,23 +1465,23 @@ public Builder clearIpAddresses() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes of the ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { + public Builder addIpAddressesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpAddressesIsMutable(); ipAddresses_.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); } @@ -1644,12 +1491,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.NetworkConfig) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.NetworkConfig) private static final com.google.cloud.filestore.v1.NetworkConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.NetworkConfig(); } @@ -1658,27 +1505,27 @@ public static com.google.cloud.filestore.v1.NetworkConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1693,4 +1540,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.NetworkConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java similarity index 83% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java index 8ecfd24a7c45..c1fe39704bdc 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface NetworkConfigOrBuilder - extends +public interface NetworkConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.NetworkConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -33,13 +15,10 @@ public interface NetworkConfigOrBuilder
    * 
* * string network = 1; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -47,82 +26,66 @@ public interface NetworkConfigOrBuilder
    * 
* * string network = 1; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the modes. */ java.util.List getModesList(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return The count of modes. */ int getModesCount(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the element to return. * @return The modes at the given index. */ com.google.cloud.filestore.v1.NetworkConfig.AddressMode getModes(int index); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the enum numeric values on the wire for modes. */ - java.util.List getModesValueList(); + java.util.List + getModesValueList(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ int getModesValue(int index); /** - * - * *
    * A /29 CIDR block in one of the
    * [internal IP address
@@ -134,13 +97,10 @@ public interface NetworkConfigOrBuilder
    * 
* * string reserved_ip_range = 4; - * * @return The reservedIpRange. */ java.lang.String getReservedIpRange(); /** - * - * *
    * A /29 CIDR block in one of the
    * [internal IP address
@@ -152,14 +112,12 @@ public interface NetworkConfigOrBuilder
    * 
* * string reserved_ip_range = 4; - * * @return The bytes for reservedIpRange. */ - com.google.protobuf.ByteString getReservedIpRangeBytes(); + com.google.protobuf.ByteString + getReservedIpRangeBytes(); /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -168,13 +126,11 @@ public interface NetworkConfigOrBuilder
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the ipAddresses. */ - java.util.List getIpAddressesList(); + java.util.List + getIpAddressesList(); /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -183,13 +139,10 @@ public interface NetworkConfigOrBuilder
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of ipAddresses. */ int getIpAddressesCount(); /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -198,14 +151,11 @@ public interface NetworkConfigOrBuilder
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ java.lang.String getIpAddresses(int index); /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -214,9 +164,9 @@ public interface NetworkConfigOrBuilder
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - com.google.protobuf.ByteString getIpAddressesBytes(int index); + com.google.protobuf.ByteString + getIpAddressesBytes(int index); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java similarity index 76% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java index 9fcfffed832c..13f5af73ffd9 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * NFS export options specifications.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.NfsExportOptions} */ -public final class NfsExportOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NfsExportOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.NfsExportOptions) NfsExportOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NfsExportOptions.newBuilder() to construct. private NfsExportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NfsExportOptions() { ipRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; accessMode_ = 0; @@ -45,43 +27,39 @@ private NfsExportOptions() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NfsExportOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.NfsExportOptions.class, - com.google.cloud.filestore.v1.NfsExportOptions.Builder.class); + com.google.cloud.filestore.v1.NfsExportOptions.class, com.google.cloud.filestore.v1.NfsExportOptions.Builder.class); } /** - * - * *
    * The access mode.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.NfsExportOptions.AccessMode} */ - public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { + public enum AccessMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * AccessMode not set.
      * 
@@ -90,8 +68,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ ACCESS_MODE_UNSPECIFIED(0), /** - * - * *
      * The client can only read the file share.
      * 
@@ -100,8 +76,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ READ_ONLY(1), /** - * - * *
      * The client can read and write the file share (default).
      * 
@@ -113,8 +87,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * AccessMode not set.
      * 
@@ -123,8 +95,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACCESS_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The client can only read the file share.
      * 
@@ -133,8 +103,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READ_ONLY_VALUE = 1; /** - * - * *
      * The client can read and write the file share (default).
      * 
@@ -143,6 +111,7 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READ_WRITE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -167,49 +136,49 @@ public static AccessMode valueOf(int value) { */ public static AccessMode forNumber(int value) { switch (value) { - case 0: - return ACCESS_MODE_UNSPECIFIED; - case 1: - return READ_ONLY; - case 2: - return READ_WRITE; - default: - return null; + case 0: return ACCESS_MODE_UNSPECIFIED; + case 1: return READ_ONLY; + case 2: return READ_WRITE; + 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< + AccessMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AccessMode findValueByNumber(int number) { + return AccessMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AccessMode findValueByNumber(int number) { - return AccessMode.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.filestore.v1.NfsExportOptions.getDescriptor().getEnumTypes().get(0); } private static final AccessMode[] VALUES = values(); - public static AccessMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AccessMode 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; @@ -227,18 +196,15 @@ private AccessMode(int value) { } /** - * - * *
    * The squash mode.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.NfsExportOptions.SquashMode} */ - public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { + public enum SquashMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * SquashMode not set.
      * 
@@ -247,8 +213,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ SQUASH_MODE_UNSPECIFIED(0), /** - * - * *
      * The Root user has root access to the file share (default).
      * 
@@ -257,8 +221,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ NO_ROOT_SQUASH(1), /** - * - * *
      * The Root user has squashed access to the anonymous uid/gid.
      * 
@@ -270,8 +232,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * SquashMode not set.
      * 
@@ -280,8 +240,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SQUASH_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Root user has root access to the file share (default).
      * 
@@ -290,8 +248,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_ROOT_SQUASH_VALUE = 1; /** - * - * *
      * The Root user has squashed access to the anonymous uid/gid.
      * 
@@ -300,6 +256,7 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROOT_SQUASH_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -324,49 +281,49 @@ public static SquashMode valueOf(int value) { */ public static SquashMode forNumber(int value) { switch (value) { - case 0: - return SQUASH_MODE_UNSPECIFIED; - case 1: - return NO_ROOT_SQUASH; - case 2: - return ROOT_SQUASH; - default: - return null; + case 0: return SQUASH_MODE_UNSPECIFIED; + case 1: return NO_ROOT_SQUASH; + case 2: return ROOT_SQUASH; + 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< + SquashMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SquashMode findValueByNumber(int number) { + return SquashMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SquashMode findValueByNumber(int number) { - return SquashMode.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.filestore.v1.NfsExportOptions.getDescriptor().getEnumTypes().get(1); } private static final SquashMode[] VALUES = values(); - public static SquashMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SquashMode 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; @@ -386,8 +343,6 @@ private SquashMode(int value) { public static final int IP_RANGES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList ipRanges_; /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -400,15 +355,13 @@ private SquashMode(int value) {
    * 
* * repeated string ip_ranges = 1; - * * @return A list containing the ipRanges. */ - public com.google.protobuf.ProtocolStringList getIpRangesList() { + public com.google.protobuf.ProtocolStringList + getIpRangesList() { return ipRanges_; } /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -421,15 +374,12 @@ public com.google.protobuf.ProtocolStringList getIpRangesList() {
    * 
* * repeated string ip_ranges = 1; - * * @return The count of ipRanges. */ public int getIpRangesCount() { return ipRanges_.size(); } /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -442,7 +392,6 @@ public int getIpRangesCount() {
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the element to return. * @return The ipRanges at the given index. */ @@ -450,8 +399,6 @@ public java.lang.String getIpRanges(int index) { return ipRanges_.get(index); } /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -464,19 +411,17 @@ public java.lang.String getIpRanges(int index) {
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - public com.google.protobuf.ByteString getIpRangesBytes(int index) { + public com.google.protobuf.ByteString + getIpRangesBytes(int index) { return ipRanges_.getByteString(index); } public static final int ACCESS_MODE_FIELD_NUMBER = 2; private int accessMode_; /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -484,16 +429,12 @@ public com.google.protobuf.ByteString getIpRangesBytes(int index) {
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The enum numeric value on the wire for accessMode. */ - @java.lang.Override - public int getAccessModeValue() { + @java.lang.Override public int getAccessModeValue() { return accessMode_; } /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -501,24 +442,17 @@ public int getAccessModeValue() {
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The accessMode. */ - @java.lang.Override - public com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode() { + @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NfsExportOptions.AccessMode result = - com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.valueOf(accessMode_); - return result == null - ? com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1.NfsExportOptions.AccessMode result = com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.valueOf(accessMode_); + return result == null ? com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.UNRECOGNIZED : result; } public static final int SQUASH_MODE_FIELD_NUMBER = 3; private int squashMode_; /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -526,16 +460,12 @@ public com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode()
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The enum numeric value on the wire for squashMode. */ - @java.lang.Override - public int getSquashModeValue() { + @java.lang.Override public int getSquashModeValue() { return squashMode_; } /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -543,24 +473,17 @@ public int getSquashModeValue() {
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The squashMode. */ - @java.lang.Override - public com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode() { + @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NfsExportOptions.SquashMode result = - com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.valueOf(squashMode_); - return result == null - ? com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1.NfsExportOptions.SquashMode result = com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.valueOf(squashMode_); + return result == null ? com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.UNRECOGNIZED : result; } public static final int ANON_UID_FIELD_NUMBER = 4; private long anonUid_; /** - * - * *
    * An integer representing the anonymous user id with a default value of
    * 65534.
@@ -569,7 +492,6 @@ public com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode()
    * 
* * int64 anon_uid = 4; - * * @return The anonUid. */ @java.lang.Override @@ -580,8 +502,6 @@ public long getAnonUid() { public static final int ANON_GID_FIELD_NUMBER = 5; private long anonGid_; /** - * - * *
    * An integer representing the anonymous group id with a default value of
    * 65534.
@@ -590,7 +510,6 @@ public long getAnonUid() {
    * 
* * int64 anon_gid = 5; - * * @return The anonGid. */ @java.lang.Override @@ -599,7 +518,6 @@ public long getAnonGid() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -611,18 +529,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < ipRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipRanges_.getRaw(i)); } - if (accessMode_ - != com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED - .getNumber()) { + if (accessMode_ != com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, accessMode_); } - if (squashMode_ - != com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED - .getNumber()) { + if (squashMode_ != com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(3, squashMode_); } if (anonUid_ != 0L) { @@ -648,21 +563,21 @@ public int getSerializedSize() { size += dataSize; size += 1 * getIpRangesList().size(); } - if (accessMode_ - != com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, accessMode_); + if (accessMode_ != com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, accessMode_); } - if (squashMode_ - != com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, squashMode_); + if (squashMode_ != com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, squashMode_); } if (anonUid_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, anonUid_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, anonUid_); } if (anonGid_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, anonGid_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, anonGid_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -672,19 +587,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.filestore.v1.NfsExportOptions)) { return super.equals(obj); } - com.google.cloud.filestore.v1.NfsExportOptions other = - (com.google.cloud.filestore.v1.NfsExportOptions) obj; + com.google.cloud.filestore.v1.NfsExportOptions other = (com.google.cloud.filestore.v1.NfsExportOptions) obj; - if (!getIpRangesList().equals(other.getIpRangesList())) return false; + if (!getIpRangesList() + .equals(other.getIpRangesList())) return false; if (accessMode_ != other.accessMode_) return false; if (squashMode_ != other.squashMode_) return false; - if (getAnonUid() != other.getAnonUid()) return false; - if (getAnonGid() != other.getAnonGid()) return false; + if (getAnonUid() + != other.getAnonUid()) return false; + if (getAnonGid() + != other.getAnonGid()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -705,144 +622,140 @@ public int hashCode() { hash = (37 * hash) + SQUASH_MODE_FIELD_NUMBER; hash = (53 * hash) + squashMode_; hash = (37 * hash) + ANON_UID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAnonUid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAnonUid()); hash = (37 * hash) + ANON_GID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAnonGid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAnonGid()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom(java.io.InputStream input) 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.filestore.v1.NfsExportOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.NfsExportOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.NfsExportOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.NfsExportOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.NfsExportOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * NFS export options specifications.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.NfsExportOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.NfsExportOptions) com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.NfsExportOptions.class, - com.google.cloud.filestore.v1.NfsExportOptions.Builder.class); + com.google.cloud.filestore.v1.NfsExportOptions.class, com.google.cloud.filestore.v1.NfsExportOptions.Builder.class); } // Construct using com.google.cloud.filestore.v1.NfsExportOptions.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -860,9 +773,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; } @java.lang.Override @@ -881,8 +794,7 @@ public com.google.cloud.filestore.v1.NfsExportOptions build() { @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions buildPartial() { - com.google.cloud.filestore.v1.NfsExportOptions result = - new com.google.cloud.filestore.v1.NfsExportOptions(this); + com.google.cloud.filestore.v1.NfsExportOptions result = new com.google.cloud.filestore.v1.NfsExportOptions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { ipRanges_ = ipRanges_.getUnmodifiableView(); @@ -901,39 +813,38 @@ public com.google.cloud.filestore.v1.NfsExportOptions 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.filestore.v1.NfsExportOptions) { - return mergeFrom((com.google.cloud.filestore.v1.NfsExportOptions) other); + return mergeFrom((com.google.cloud.filestore.v1.NfsExportOptions)other); } else { super.mergeFrom(other); return this; @@ -990,44 +901,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpRangesIsMutable(); - ipRanges_.add(s); - break; - } // case 10 - case 16: - { - accessMode_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - squashMode_ = input.readEnum(); - - break; - } // case 24 - case 32: - { - anonUid_ = input.readInt64(); - - break; - } // case 32 - case 40: - { - anonGid_ = input.readInt64(); - - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureIpRangesIsMutable(); + ipRanges_.add(s); + break; + } // case 10 + case 16: { + accessMode_ = input.readEnum(); + + break; + } // case 16 + case 24: { + squashMode_ = input.readEnum(); + + break; + } // case 24 + case 32: { + anonUid_ = input.readInt64(); + + break; + } // case 32 + case 40: { + anonGid_ = input.readInt64(); + + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1037,21 +942,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList ipRanges_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ipRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpRangesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ipRanges_ = new com.google.protobuf.LazyStringArrayList(ipRanges_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1064,15 +964,13 @@ private void ensureIpRangesIsMutable() {
      * 
* * repeated string ip_ranges = 1; - * * @return A list containing the ipRanges. */ - public com.google.protobuf.ProtocolStringList getIpRangesList() { + public com.google.protobuf.ProtocolStringList + getIpRangesList() { return ipRanges_.getUnmodifiableView(); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1085,15 +983,12 @@ public com.google.protobuf.ProtocolStringList getIpRangesList() {
      * 
* * repeated string ip_ranges = 1; - * * @return The count of ipRanges. */ public int getIpRangesCount() { return ipRanges_.size(); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1106,7 +1001,6 @@ public int getIpRangesCount() {
      * 
* * repeated string ip_ranges = 1; - * * @param index The index of the element to return. * @return The ipRanges at the given index. */ @@ -1114,8 +1008,6 @@ public java.lang.String getIpRanges(int index) { return ipRanges_.get(index); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1128,16 +1020,14 @@ public java.lang.String getIpRanges(int index) {
      * 
* * repeated string ip_ranges = 1; - * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - public com.google.protobuf.ByteString getIpRangesBytes(int index) { + public com.google.protobuf.ByteString + getIpRangesBytes(int index) { return ipRanges_.getByteString(index); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1150,23 +1040,21 @@ public com.google.protobuf.ByteString getIpRangesBytes(int index) {
      * 
* * repeated string ip_ranges = 1; - * * @param index The index to set the value at. * @param value The ipRanges to set. * @return This builder for chaining. */ - public Builder setIpRanges(int index, java.lang.String value) { + public Builder setIpRanges( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpRangesIsMutable(); + throw new NullPointerException(); + } + ensureIpRangesIsMutable(); ipRanges_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1179,22 +1067,20 @@ public Builder setIpRanges(int index, java.lang.String value) {
      * 
* * repeated string ip_ranges = 1; - * * @param value The ipRanges to add. * @return This builder for chaining. */ - public Builder addIpRanges(java.lang.String value) { + public Builder addIpRanges( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpRangesIsMutable(); + throw new NullPointerException(); + } + ensureIpRangesIsMutable(); ipRanges_.add(value); onChanged(); return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1207,19 +1093,18 @@ public Builder addIpRanges(java.lang.String value) {
      * 
* * repeated string ip_ranges = 1; - * * @param values The ipRanges to add. * @return This builder for chaining. */ - public Builder addAllIpRanges(java.lang.Iterable values) { + public Builder addAllIpRanges( + java.lang.Iterable values) { ensureIpRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipRanges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ipRanges_); onChanged(); return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1232,7 +1117,6 @@ public Builder addAllIpRanges(java.lang.Iterable values) {
      * 
* * repeated string ip_ranges = 1; - * * @return This builder for chaining. */ public Builder clearIpRanges() { @@ -1242,8 +1126,6 @@ public Builder clearIpRanges() { return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1256,15 +1138,15 @@ public Builder clearIpRanges() {
      * 
* * repeated string ip_ranges = 1; - * * @param value The bytes of the ipRanges to add. * @return This builder for chaining. */ - public Builder addIpRangesBytes(com.google.protobuf.ByteString value) { + public Builder addIpRangesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpRangesIsMutable(); ipRanges_.add(value); onChanged(); @@ -1273,8 +1155,6 @@ public Builder addIpRangesBytes(com.google.protobuf.ByteString value) { private int accessMode_ = 0; /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1282,16 +1162,12 @@ public Builder addIpRangesBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The enum numeric value on the wire for accessMode. */ - @java.lang.Override - public int getAccessModeValue() { + @java.lang.Override public int getAccessModeValue() { return accessMode_; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1299,19 +1175,16 @@ public int getAccessModeValue() {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @param value The enum numeric value on the wire for accessMode to set. * @return This builder for chaining. */ public Builder setAccessModeValue(int value) { - + accessMode_ = value; onChanged(); return this; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1319,21 +1192,15 @@ public Builder setAccessModeValue(int value) {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The accessMode. */ @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NfsExportOptions.AccessMode result = - com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.valueOf(accessMode_); - return result == null - ? com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1.NfsExportOptions.AccessMode result = com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.valueOf(accessMode_); + return result == null ? com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.UNRECOGNIZED : result; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1341,7 +1208,6 @@ public com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode()
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @param value The accessMode to set. * @return This builder for chaining. */ @@ -1349,14 +1215,12 @@ public Builder setAccessMode(com.google.cloud.filestore.v1.NfsExportOptions.Acce if (value == null) { throw new NullPointerException(); } - + accessMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1364,11 +1228,10 @@ public Builder setAccessMode(com.google.cloud.filestore.v1.NfsExportOptions.Acce
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @return This builder for chaining. */ public Builder clearAccessMode() { - + accessMode_ = 0; onChanged(); return this; @@ -1376,8 +1239,6 @@ public Builder clearAccessMode() { private int squashMode_ = 0; /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1385,16 +1246,12 @@ public Builder clearAccessMode() {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The enum numeric value on the wire for squashMode. */ - @java.lang.Override - public int getSquashModeValue() { + @java.lang.Override public int getSquashModeValue() { return squashMode_; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1402,19 +1259,16 @@ public int getSquashModeValue() {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @param value The enum numeric value on the wire for squashMode to set. * @return This builder for chaining. */ public Builder setSquashModeValue(int value) { - + squashMode_ = value; onChanged(); return this; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1422,21 +1276,15 @@ public Builder setSquashModeValue(int value) {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The squashMode. */ @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NfsExportOptions.SquashMode result = - com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.valueOf(squashMode_); - return result == null - ? com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1.NfsExportOptions.SquashMode result = com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.valueOf(squashMode_); + return result == null ? com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.UNRECOGNIZED : result; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1444,7 +1292,6 @@ public com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode()
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @param value The squashMode to set. * @return This builder for chaining. */ @@ -1452,14 +1299,12 @@ public Builder setSquashMode(com.google.cloud.filestore.v1.NfsExportOptions.Squa if (value == null) { throw new NullPointerException(); } - + squashMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1467,20 +1312,17 @@ public Builder setSquashMode(com.google.cloud.filestore.v1.NfsExportOptions.Squa
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return This builder for chaining. */ public Builder clearSquashMode() { - + squashMode_ = 0; onChanged(); return this; } - private long anonUid_; + private long anonUid_ ; /** - * - * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1489,7 +1331,6 @@ public Builder clearSquashMode() {
      * 
* * int64 anon_uid = 4; - * * @return The anonUid. */ @java.lang.Override @@ -1497,8 +1338,6 @@ public long getAnonUid() { return anonUid_; } /** - * - * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1507,19 +1346,16 @@ public long getAnonUid() {
      * 
* * int64 anon_uid = 4; - * * @param value The anonUid to set. * @return This builder for chaining. */ public Builder setAnonUid(long value) { - + anonUid_ = value; onChanged(); return this; } /** - * - * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1528,20 +1364,17 @@ public Builder setAnonUid(long value) {
      * 
* * int64 anon_uid = 4; - * * @return This builder for chaining. */ public Builder clearAnonUid() { - + anonUid_ = 0L; onChanged(); return this; } - private long anonGid_; + private long anonGid_ ; /** - * - * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1550,7 +1383,6 @@ public Builder clearAnonUid() {
      * 
* * int64 anon_gid = 5; - * * @return The anonGid. */ @java.lang.Override @@ -1558,8 +1390,6 @@ public long getAnonGid() { return anonGid_; } /** - * - * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1568,19 +1398,16 @@ public long getAnonGid() {
      * 
* * int64 anon_gid = 5; - * * @param value The anonGid to set. * @return This builder for chaining. */ public Builder setAnonGid(long value) { - + anonGid_ = value; onChanged(); return this; } /** - * - * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1589,18 +1416,17 @@ public Builder setAnonGid(long value) {
      * 
* * int64 anon_gid = 5; - * * @return This builder for chaining. */ public Builder clearAnonGid() { - + anonGid_ = 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); } @@ -1610,12 +1436,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.NfsExportOptions) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.NfsExportOptions) private static final com.google.cloud.filestore.v1.NfsExportOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.NfsExportOptions(); } @@ -1624,27 +1450,27 @@ public static com.google.cloud.filestore.v1.NfsExportOptions getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NfsExportOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NfsExportOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1659,4 +1485,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.NfsExportOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java similarity index 84% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java index c5af4aaa3f2c..797d53a2f722 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface NfsExportOptionsOrBuilder - extends +public interface NfsExportOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.NfsExportOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -38,13 +20,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @return A list containing the ipRanges. */ - java.util.List getIpRangesList(); + java.util.List + getIpRangesList(); /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -57,13 +37,10 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @return The count of ipRanges. */ int getIpRangesCount(); /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -76,14 +53,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the element to return. * @return The ipRanges at the given index. */ java.lang.String getIpRanges(int index); /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -96,15 +70,13 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - com.google.protobuf.ByteString getIpRangesBytes(int index); + com.google.protobuf.ByteString + getIpRangesBytes(int index); /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -112,13 +84,10 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The enum numeric value on the wire for accessMode. */ int getAccessModeValue(); /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -126,14 +95,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The accessMode. */ com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode(); /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -141,13 +107,10 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The enum numeric value on the wire for squashMode. */ int getSquashModeValue(); /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -155,14 +118,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The squashMode. */ com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode(); /** - * - * *
    * An integer representing the anonymous user id with a default value of
    * 65534.
@@ -171,14 +131,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * int64 anon_uid = 4; - * * @return The anonUid. */ long getAnonUid(); /** - * - * *
    * An integer representing the anonymous group id with a default value of
    * 65534.
@@ -187,7 +144,6 @@ public interface NfsExportOptionsOrBuilder
    * 
* * int64 anon_gid = 5; - * * @return The anonGid. */ long getAnonGid(); diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java similarity index 69% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java index 3810c9714ee5..d7d00df822df 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * RestoreInstanceRequest restores an existing instances's file share from a
  * backup.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.filestore.v1.RestoreInstanceRequest}
  */
-public final class RestoreInstanceRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RestoreInstanceRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.RestoreInstanceRequest)
     RestoreInstanceRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RestoreInstanceRequest.newBuilder() to construct.
   private RestoreInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RestoreInstanceRequest() {
     name_ = "";
     fileShare_ = "";
@@ -45,41 +27,37 @@ private RestoreInstanceRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RestoreInstanceRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
-        .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
-        .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable
+    return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.filestore.v1.RestoreInstanceRequest.class,
-            com.google.cloud.filestore.v1.RestoreInstanceRequest.Builder.class);
+            com.google.cloud.filestore.v1.RestoreInstanceRequest.class, com.google.cloud.filestore.v1.RestoreInstanceRequest.Builder.class);
   }
 
   private int sourceCase_ = 0;
   private java.lang.Object source_;
-
   public enum SourceCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     SOURCE_BACKUP(3),
     SOURCE_NOT_SET(0);
     private final int value;
-
     private SourceCase(int value) {
       this.value = value;
     }
@@ -95,38 +73,31 @@ public static SourceCase valueOf(int value) {
 
     public static SourceCase forNumber(int value) {
       switch (value) {
-        case 3:
-          return SOURCE_BACKUP;
-        case 0:
-          return SOURCE_NOT_SET;
-        default:
-          return null;
+        case 3: return SOURCE_BACKUP;
+        case 0: return SOURCE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public SourceCase getSourceCase() {
-    return SourceCase.forNumber(sourceCase_);
+  public SourceCase
+  getSourceCase() {
+    return SourceCase.forNumber(
+        sourceCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 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 +106,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 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 { @@ -171,15 +140,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FILE_SHARE_FIELD_NUMBER = 2; private volatile java.lang.Object fileShare_; /** - * - * *
    * Required. Name of the file share in the Cloud Filestore instance that the
    * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fileShare. */ @java.lang.Override @@ -188,30 +154,30 @@ public java.lang.String getFileShare() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileShare_ = s; return s; } } /** - * - * *
    * Required. Name of the file share in the Cloud Filestore instance that the
    * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fileShare. */ @java.lang.Override - public com.google.protobuf.ByteString getFileShareBytes() { + public com.google.protobuf.ByteString + getFileShareBytes() { java.lang.Object ref = fileShare_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fileShare_ = b; return b; } else { @@ -221,30 +187,24 @@ public com.google.protobuf.ByteString getFileShareBytes() { public static final int SOURCE_BACKUP_FIELD_NUMBER = 3; /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ public boolean hasSourceBackup() { return sourceCase_ == 3; } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ public java.lang.String getSourceBackup() { @@ -255,7 +215,8 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (sourceCase_ == 3) { source_ = s; @@ -264,25 +225,24 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 3) { source_ = b; } @@ -293,7 +253,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,7 +264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -341,20 +301,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.filestore.v1.RestoreInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.RestoreInstanceRequest other = - (com.google.cloud.filestore.v1.RestoreInstanceRequest) obj; + com.google.cloud.filestore.v1.RestoreInstanceRequest other = (com.google.cloud.filestore.v1.RestoreInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getFileShare().equals(other.getFileShare())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getFileShare() + .equals(other.getFileShare())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 3: - if (!getSourceBackup().equals(other.getSourceBackup())) return false; + if (!getSourceBackup() + .equals(other.getSourceBackup())) return false; break; case 0: default: @@ -388,103 +350,96 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( - java.nio.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.filestore.v1.RestoreInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.RestoreInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.RestoreInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * RestoreInstanceRequest restores an existing instances's file share from a
    * backup.
@@ -492,32 +447,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.filestore.v1.RestoreInstanceRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.RestoreInstanceRequest)
       com.google.cloud.filestore.v1.RestoreInstanceRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
-          .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
-          .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable
+      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.filestore.v1.RestoreInstanceRequest.class,
-              com.google.cloud.filestore.v1.RestoreInstanceRequest.Builder.class);
+              com.google.cloud.filestore.v1.RestoreInstanceRequest.class, com.google.cloud.filestore.v1.RestoreInstanceRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.filestore.v1.RestoreInstanceRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -531,9 +487,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
-          .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
     }
 
     @java.lang.Override
@@ -552,8 +508,7 @@ public com.google.cloud.filestore.v1.RestoreInstanceRequest build() {
 
     @java.lang.Override
     public com.google.cloud.filestore.v1.RestoreInstanceRequest buildPartial() {
-      com.google.cloud.filestore.v1.RestoreInstanceRequest result =
-          new com.google.cloud.filestore.v1.RestoreInstanceRequest(this);
+      com.google.cloud.filestore.v1.RestoreInstanceRequest result = new com.google.cloud.filestore.v1.RestoreInstanceRequest(this);
       result.name_ = name_;
       result.fileShare_ = fileShare_;
       if (sourceCase_ == 3) {
@@ -568,39 +523,38 @@ public com.google.cloud.filestore.v1.RestoreInstanceRequest 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.filestore.v1.RestoreInstanceRequest) {
-        return mergeFrom((com.google.cloud.filestore.v1.RestoreInstanceRequest) other);
+        return mergeFrom((com.google.cloud.filestore.v1.RestoreInstanceRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -608,8 +562,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.filestore.v1.RestoreInstanceRequest other) {
-      if (other == com.google.cloud.filestore.v1.RestoreInstanceRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.filestore.v1.RestoreInstanceRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -619,17 +572,15 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.RestoreInstanceRequest ot
         onChanged();
       }
       switch (other.getSourceCase()) {
-        case SOURCE_BACKUP:
-          {
-            sourceCase_ = 3;
-            source_ = other.source_;
-            onChanged();
-            break;
-          }
-        case SOURCE_NOT_SET:
-          {
-            break;
-          }
+        case SOURCE_BACKUP: {
+          sourceCase_ = 3;
+          source_ = other.source_;
+          onChanged();
+          break;
+        }
+        case SOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -657,32 +608,28 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
+            case 10: {
+              name_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                fileShare_ = input.readStringRequireUtf8();
+              break;
+            } // case 10
+            case 18: {
+              fileShare_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                sourceCase_ = 3;
-                source_ = s;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              sourceCase_ = 3;
+              source_ = s;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -692,12 +639,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-
-    public SourceCase getSourceCase() {
-      return SourceCase.forNumber(sourceCase_);
+    public SourceCase
+        getSourceCase() {
+      return SourceCase.forNumber(
+          sourceCase_);
     }
 
     public Builder clearSource() {
@@ -707,25 +654,22 @@ public Builder clearSource() {
       return this;
     }
 
+
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string name = 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; @@ -734,24 +678,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string name = 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 { @@ -759,70 +700,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * 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. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string 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. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * 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; @@ -830,21 +758,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object fileShare_ = ""; /** - * - * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fileShare. */ public java.lang.String getFileShare() { java.lang.Object ref = fileShare_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileShare_ = s; return s; @@ -853,22 +779,21 @@ public java.lang.String getFileShare() { } } /** - * - * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fileShare. */ - public com.google.protobuf.ByteString getFileShareBytes() { + public com.google.protobuf.ByteString + getFileShareBytes() { java.lang.Object ref = fileShare_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fileShare_ = b; return b; } else { @@ -876,79 +801,69 @@ public com.google.protobuf.ByteString getFileShareBytes() { } } /** - * - * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The fileShare to set. * @return This builder for chaining. */ - public Builder setFileShare(java.lang.String value) { + public Builder setFileShare( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fileShare_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFileShare() { - + fileShare_ = getDefaultInstance().getFileShare(); onChanged(); return this; } /** - * - * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for fileShare to set. * @return This builder for chaining. */ - public Builder setFileShareBytes(com.google.protobuf.ByteString value) { + public Builder setFileShareBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fileShare_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ @java.lang.Override @@ -956,15 +871,12 @@ public boolean hasSourceBackup() { return sourceCase_ == 3; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ @java.lang.Override @@ -974,7 +886,8 @@ public java.lang.String getSourceBackup() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (sourceCase_ == 3) { source_ = s; @@ -985,26 +898,25 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 3) { source_ = b; } @@ -1014,37 +926,32 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup(java.lang.String value) { + public Builder setSourceBackup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 3; + throw new NullPointerException(); + } + sourceCase_ = 3; source_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -1056,31 +963,29 @@ public Builder clearSourceBackup() { return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { + public Builder setSourceBackupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 3; source_ = 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); } @@ -1090,12 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.RestoreInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.RestoreInstanceRequest) private static final com.google.cloud.filestore.v1.RestoreInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.RestoreInstanceRequest(); } @@ -1104,27 +1009,27 @@ public static com.google.cloud.filestore.v1.RestoreInstanceRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,4 +1044,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.RestoreInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java similarity index 66% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java index 41594ba1859a..0034c29a647a 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java @@ -1,125 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface RestoreInstanceRequestOrBuilder - extends +public interface RestoreInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.RestoreInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 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(); /** - * - * *
    * Required. Name of the file share in the Cloud Filestore instance that the
    * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fileShare. */ java.lang.String getFileShare(); /** - * - * *
    * Required. Name of the file share in the Cloud Filestore instance that the
    * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fileShare. */ - com.google.protobuf.ByteString getFileShareBytes(); + com.google.protobuf.ByteString + getFileShareBytes(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ boolean hasSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString getSourceBackupBytes(); + com.google.protobuf.ByteString + getSourceBackupBytes(); public com.google.cloud.filestore.v1.RestoreInstanceRequest.SourceCase getSourceCase(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java similarity index 67% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java index 1dce664d061d..ea2ea9bf295f 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java @@ -1,82 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * UpdateBackupRequest updates description and/or labels for a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.UpdateBackupRequest.class, - com.google.cloud.filestore.v1.UpdateBackupRequest.Builder.class); + com.google.cloud.filestore.v1.UpdateBackupRequest.class, com.google.cloud.filestore.v1.UpdateBackupRequest.Builder.class); } public static final int BACKUP_FIELD_NUMBER = 1; private com.google.cloud.filestore.v1.Backup backup_; /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ @java.lang.Override @@ -84,15 +62,11 @@ public boolean hasBackup() { return backup_ != null; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ @java.lang.Override @@ -100,14 +74,11 @@ public com.google.cloud.filestore.v1.Backup getBackup() { return backup_ == null ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { @@ -117,16 +88,12 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -134,16 +101,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -151,15 +114,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -167,7 +127,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +138,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -196,10 +156,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -209,21 +171,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.filestore.v1.UpdateBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.UpdateBackupRequest other = - (com.google.cloud.filestore.v1.UpdateBackupRequest) obj; + com.google.cloud.filestore.v1.UpdateBackupRequest other = (com.google.cloud.filestore.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -250,135 +213,129 @@ public int hashCode() { } public static com.google.cloud.filestore.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.filestore.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.filestore.v1.UpdateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.UpdateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.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.filestore.v1.UpdateBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.UpdateBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.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.filestore.v1.UpdateBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.UpdateBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.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; } /** - * - * *
    * UpdateBackupRequest updates description and/or labels for a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.v1.UpdateBackupRequest) com.google.cloud.filestore.v1.UpdateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.UpdateBackupRequest.class, - com.google.cloud.filestore.v1.UpdateBackupRequest.Builder.class); + com.google.cloud.filestore.v1.UpdateBackupRequest.class, com.google.cloud.filestore.v1.UpdateBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.UpdateBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -398,9 +355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; } @java.lang.Override @@ -419,8 +376,7 @@ public com.google.cloud.filestore.v1.UpdateBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.UpdateBackupRequest buildPartial() { - com.google.cloud.filestore.v1.UpdateBackupRequest result = - new com.google.cloud.filestore.v1.UpdateBackupRequest(this); + com.google.cloud.filestore.v1.UpdateBackupRequest result = new com.google.cloud.filestore.v1.UpdateBackupRequest(this); if (backupBuilder_ == null) { result.backup_ = backup_; } else { @@ -439,39 +395,38 @@ public com.google.cloud.filestore.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.filestore.v1.UpdateBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1.UpdateBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.UpdateBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -479,8 +434,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.UpdateBackupRequest other) { - if (other == com.google.cloud.filestore.v1.UpdateBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.UpdateBackupRequest.getDefaultInstance()) return this; if (other.hasBackup()) { mergeBackup(other.getBackup()); } @@ -513,25 +467,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBackupFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,55 +499,39 @@ public Builder mergeFrom( private com.google.cloud.filestore.v1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, - com.google.cloud.filestore.v1.Backup.Builder, - com.google.cloud.filestore.v1.BackupOrBuilder> - backupBuilder_; + com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> backupBuilder_; /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.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 [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ public com.google.cloud.filestore.v1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null - ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; } else { return backupBuilder_.getMessage(); } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBackup(com.google.cloud.filestore.v1.Backup value) { if (backupBuilder_ == null) { @@ -608,16 +547,14 @@ public Builder setBackup(com.google.cloud.filestore.v1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBackup(com.google.cloud.filestore.v1.Backup.Builder builderForValue) { + public Builder setBackup( + com.google.cloud.filestore.v1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -628,22 +565,17 @@ public Builder setBackup(com.google.cloud.filestore.v1.Backup.Builder builderFor return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBackup(com.google.cloud.filestore.v1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.filestore.v1.Backup.newBuilder(backup_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); } else { backup_ = value; } @@ -655,14 +587,11 @@ public Builder mergeBackup(com.google.cloud.filestore.v1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBackup() { if (backupBuilder_ == null) { @@ -676,61 +605,48 @@ public Builder clearBackup() { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null - ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? + com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, - com.google.cloud.filestore.v1.Backup.Builder, - com.google.cloud.filestore.v1.BackupOrBuilder> + com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, - com.google.cloud.filestore.v1.Backup.Builder, - com.google.cloud.filestore.v1.BackupOrBuilder>( - getBackup(), getParentForChildren(), isClean()); + backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder>( + getBackup(), + getParentForChildren(), + isClean()); backup_ = null; } return backupBuilder_; @@ -738,58 +654,42 @@ public com.google.cloud.filestore.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_; /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -805,17 +705,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -826,21 +724,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ 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; } @@ -852,15 +747,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -874,71 +766,58 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -948,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.UpdateBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.UpdateBackupRequest) private static final com.google.cloud.filestore.v1.UpdateBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.UpdateBackupRequest(); } @@ -962,27 +841,27 @@ public static com.google.cloud.filestore.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -997,4 +876,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.UpdateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java similarity index 64% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java index 5922964a95cb..ce5d045f5520 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java @@ -1,104 +1,66 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface UpdateBackupRequestOrBuilder - extends +public interface UpdateBackupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.UpdateBackupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ boolean hasBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ com.google.cloud.filestore.v1.Backup getBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java similarity index 71% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java index 80c2b6aa263f..439693cfb075 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java @@ -1,75 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * UpdateInstanceRequest updates the settings of an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateInstanceRequest() {} + private UpdateInstanceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.UpdateInstanceRequest.class, - com.google.cloud.filestore.v1.UpdateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.UpdateInstanceRequest.class, com.google.cloud.filestore.v1.UpdateInstanceRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -80,7 +60,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -88,8 +67,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -100,7 +77,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return The updateMask. */ @java.lang.Override @@ -108,8 +84,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -129,14 +103,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int INSTANCE_FIELD_NUMBER = 2;
   private com.google.cloud.filestore.v1.Instance instance_;
   /**
-   *
-   *
    * 
    * Only fields specified in update_mask are updated.
    * 
* * .google.cloud.filestore.v1.Instance instance = 2; - * * @return Whether the instance field is set. */ @java.lang.Override @@ -144,25 +115,18 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Only fields specified in update_mask are updated.
    * 
* * .google.cloud.filestore.v1.Instance instance = 2; - * * @return The instance. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance getInstance() { - return instance_ == null - ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Only fields specified in update_mask are updated.
    * 
@@ -175,7 +139,6 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +150,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -204,10 +168,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -217,21 +183,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.UpdateInstanceRequest other = - (com.google.cloud.filestore.v1.UpdateInstanceRequest) obj; + com.google.cloud.filestore.v1.UpdateInstanceRequest other = (com.google.cloud.filestore.v1.UpdateInstanceRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -258,135 +225,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( - java.nio.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.filestore.v1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.UpdateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.UpdateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * UpdateInstanceRequest updates the settings of an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.UpdateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.UpdateInstanceRequest) com.google.cloud.filestore.v1.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.UpdateInstanceRequest.class, - com.google.cloud.filestore.v1.UpdateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.UpdateInstanceRequest.class, com.google.cloud.filestore.v1.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.UpdateInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +367,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -427,8 +388,7 @@ public com.google.cloud.filestore.v1.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.UpdateInstanceRequest buildPartial() { - com.google.cloud.filestore.v1.UpdateInstanceRequest result = - new com.google.cloud.filestore.v1.UpdateInstanceRequest(this); + com.google.cloud.filestore.v1.UpdateInstanceRequest result = new com.google.cloud.filestore.v1.UpdateInstanceRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -447,39 +407,38 @@ public com.google.cloud.filestore.v1.UpdateInstanceRequest 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.filestore.v1.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1.UpdateInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.UpdateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -487,8 +446,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.UpdateInstanceRequest other) { - if (other == com.google.cloud.filestore.v1.UpdateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.UpdateInstanceRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -521,25 +479,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 10 - case 18: - { - input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,13 +511,8 @@ public Builder mergeFrom( 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_; /** - * - * *
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -569,15 +523,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -588,21 +539,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @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(); } } /** - * - * *
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -628,8 +574,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -641,7 +585,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 1;
      */
-    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();
@@ -652,8 +597,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -669,7 +612,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;
         }
@@ -681,8 +624,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -706,8 +647,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -720,13 +659,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -742,14 +679,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_;
       }
     }
     /**
-     *
-     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -762,17 +696,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     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_;
@@ -780,47 +711,34 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.cloud.filestore.v1.Instance instance_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.filestore.v1.Instance,
-            com.google.cloud.filestore.v1.Instance.Builder,
-            com.google.cloud.filestore.v1.InstanceOrBuilder>
-        instanceBuilder_;
+        com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> instanceBuilder_;
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * 
* * .google.cloud.filestore.v1.Instance instance = 2; - * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
* * .google.cloud.filestore.v1.Instance instance = 2; - * * @return The instance. */ public com.google.cloud.filestore.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
@@ -841,15 +759,14 @@ public Builder setInstance(com.google.cloud.filestore.v1.Instance value) { return this; } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
* * .google.cloud.filestore.v1.Instance instance = 2; */ - public Builder setInstance(com.google.cloud.filestore.v1.Instance.Builder builderForValue) { + public Builder setInstance( + com.google.cloud.filestore.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -860,8 +777,6 @@ public Builder setInstance(com.google.cloud.filestore.v1.Instance.Builder builde return this; } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
@@ -872,9 +787,7 @@ public Builder mergeInstance(com.google.cloud.filestore.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.filestore.v1.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -886,8 +799,6 @@ public Builder mergeInstance(com.google.cloud.filestore.v1.Instance value) { return this; } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
@@ -906,8 +817,6 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
@@ -915,13 +824,11 @@ public Builder clearInstance() { * .google.cloud.filestore.v1.Instance instance = 2; */ public com.google.cloud.filestore.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
@@ -932,14 +839,11 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
@@ -947,24 +851,21 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { * .google.cloud.filestore.v1.Instance instance = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, - com.google.cloud.filestore.v1.Instance.Builder, - com.google.cloud.filestore.v1.InstanceOrBuilder> + com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, - com.google.cloud.filestore.v1.Instance.Builder, - com.google.cloud.filestore.v1.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); instance_ = null; } return instanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -974,12 +875,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.UpdateInstanceRequest) private static final com.google.cloud.filestore.v1.UpdateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.UpdateInstanceRequest(); } @@ -988,27 +889,27 @@ public static com.google.cloud.filestore.v1.UpdateInstanceRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1023,4 +924,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java similarity index 75% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java index d9879b0ce326..60ce5e62f599 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface UpdateInstanceRequestOrBuilder - extends +public interface UpdateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -36,13 +18,10 @@ public interface UpdateInstanceRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -53,13 +32,10 @@ public interface UpdateInstanceRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -74,32 +50,24 @@ public interface UpdateInstanceRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * Only fields specified in update_mask are updated.
    * 
* * .google.cloud.filestore.v1.Instance instance = 2; - * * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Only fields specified in update_mask are updated.
    * 
* * .google.cloud.filestore.v1.Instance instance = 2; - * * @return The instance. */ com.google.cloud.filestore.v1.Instance getInstance(); /** - * - * *
    * Only fields specified in update_mask are updated.
    * 
diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/AsyncGetBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/AsyncGetBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/AsyncGetBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/AsyncGetBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/AsyncGetInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/AsyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/AsyncGetInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/AsyncGetInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackups.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackups.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackups.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackups.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackups.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackups.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackups.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackups.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstances.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstances.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstances.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstances.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstances.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstances.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstances.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstances.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java similarity index 99% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java index 6fb19ae23df9..bec926e42493 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java @@ -32,6 +32,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.common.OperationMetadata; diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java similarity index 99% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java index 807cd2f25e36..277d89a68f42 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java @@ -1244,13 +1244,13 @@ private static Builder initDefaults(Builder builder) { .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setInitialRetryDelay(Duration.ofMillis(30000L)) .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setMaxRetryDelay(Duration.ofMillis(60000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) + .setTotalTimeout(Duration.ofMillis(7200000L)) .build())); builder diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerCallableFactory.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerCallableFactory.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerCallableFactory.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerCallableFactory.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java similarity index 99% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java index d67d152aa3a9..216ddc132403 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java @@ -67,6 +67,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/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java similarity index 99% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java index 4243c6d5ee51..f9a12c38a887 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java @@ -33,6 +33,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/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManager.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManager.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManager.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManager.java diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java diff --git a/owl-bot-staging/java-filestore/v1beta1/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java b/owl-bot-staging/java-filestore/v1beta1/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java new file mode 100644 index 000000000000..a11e4f872e23 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java @@ -0,0 +1,2235 @@ +package com.google.cloud.filestore.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Configures and manages Filestore resources.
+ * Filestore Manager v1beta1.
+ * The `file.googleapis.com` service implements the Filestore API and
+ * defines the following model for managing resources:
+ * * The service works with a collection of cloud projects, named: `/projects/*`
+ * * Each project has a collection of available locations, named: `/locations/*`
+ * * Each location has a collection of instances and backups, named:
+ * `/instances/*` and `/backups/*` respectively.
+ * * As such, Filestore instances are resources of the form:
+ *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+ *   backups are resources of the form:
+ *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+ * Note that location_id can represent a GCP `zone` or `region` depending on the
+ * resource.
+ * for example:
+ * A zonal Filestore instance:
+ * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+ * A regional Filestore instance:
+ * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CloudFilestoreManagerGrpc { + + private CloudFilestoreManagerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.filestore.v1beta1.CloudFilestoreManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, + responseType = com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListInstancesMethod() { + io.grpc.MethodDescriptor getListInstancesMethod; + if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { + CloudFilestoreManagerGrpc.getListInstancesMethod = getListInstancesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListInstancesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListInstancesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, + responseType = com.google.cloud.filestore.v1beta1.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetInstanceMethod() { + io.grpc.MethodDescriptor getGetInstanceMethod; + if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getGetInstanceMethod = getGetInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.GetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInstance", + requestType = com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateInstanceMethod() { + io.grpc.MethodDescriptor getCreateInstanceMethod; + if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getCreateInstanceMethod = getCreateInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.CreateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("CreateInstance")) + .build(); + } + } + } + return getCreateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateInstanceMethod() { + io.grpc.MethodDescriptor getUpdateInstanceMethod; + if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getRestoreInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreInstance", + requestType = com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRestoreInstanceMethod() { + io.grpc.MethodDescriptor getRestoreInstanceMethod; + if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getRestoreInstanceMethod = getRestoreInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("RestoreInstance")) + .build(); + } + } + } + return getRestoreInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getRevertInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RevertInstance", + requestType = com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRevertInstanceMethod() { + io.grpc.MethodDescriptor getRevertInstanceMethod; + if ((getRevertInstanceMethod = CloudFilestoreManagerGrpc.getRevertInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getRevertInstanceMethod = CloudFilestoreManagerGrpc.getRevertInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getRevertInstanceMethod = getRevertInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevertInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.RevertInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("RevertInstance")) + .build(); + } + } + } + return getRevertInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", + requestType = com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteInstanceMethod() { + io.grpc.MethodDescriptor getDeleteInstanceMethod; + if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getDeleteInstanceMethod = getDeleteInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("DeleteInstance")) + .build(); + } + } + } + return getDeleteInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSnapshotsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSnapshots", + requestType = com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, + responseType = com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSnapshotsMethod() { + io.grpc.MethodDescriptor getListSnapshotsMethod; + if ((getListSnapshotsMethod = CloudFilestoreManagerGrpc.getListSnapshotsMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getListSnapshotsMethod = CloudFilestoreManagerGrpc.getListSnapshotsMethod) == null) { + CloudFilestoreManagerGrpc.getListSnapshotsMethod = getListSnapshotsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSnapshots")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListSnapshots")) + .build(); + } + } + } + return getListSnapshotsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSnapshotMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSnapshot", + requestType = com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, + responseType = com.google.cloud.filestore.v1beta1.Snapshot.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSnapshotMethod() { + io.grpc.MethodDescriptor getGetSnapshotMethod; + if ((getGetSnapshotMethod = CloudFilestoreManagerGrpc.getGetSnapshotMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getGetSnapshotMethod = CloudFilestoreManagerGrpc.getGetSnapshotMethod) == null) { + CloudFilestoreManagerGrpc.getGetSnapshotMethod = getGetSnapshotMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSnapshot")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.GetSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetSnapshot")) + .build(); + } + } + } + return getGetSnapshotMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSnapshotMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSnapshot", + requestType = com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSnapshotMethod() { + io.grpc.MethodDescriptor getCreateSnapshotMethod; + if ((getCreateSnapshotMethod = CloudFilestoreManagerGrpc.getCreateSnapshotMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getCreateSnapshotMethod = CloudFilestoreManagerGrpc.getCreateSnapshotMethod) == null) { + CloudFilestoreManagerGrpc.getCreateSnapshotMethod = getCreateSnapshotMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSnapshot")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("CreateSnapshot")) + .build(); + } + } + } + return getCreateSnapshotMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSnapshotMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSnapshot", + requestType = com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSnapshotMethod() { + io.grpc.MethodDescriptor getDeleteSnapshotMethod; + if ((getDeleteSnapshotMethod = CloudFilestoreManagerGrpc.getDeleteSnapshotMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getDeleteSnapshotMethod = CloudFilestoreManagerGrpc.getDeleteSnapshotMethod) == null) { + CloudFilestoreManagerGrpc.getDeleteSnapshotMethod = getDeleteSnapshotMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSnapshot")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("DeleteSnapshot")) + .build(); + } + } + } + return getDeleteSnapshotMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSnapshotMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSnapshot", + requestType = com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSnapshotMethod() { + io.grpc.MethodDescriptor getUpdateSnapshotMethod; + if ((getUpdateSnapshotMethod = CloudFilestoreManagerGrpc.getUpdateSnapshotMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getUpdateSnapshotMethod = CloudFilestoreManagerGrpc.getUpdateSnapshotMethod) == null) { + CloudFilestoreManagerGrpc.getUpdateSnapshotMethod = getUpdateSnapshotMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSnapshot")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("UpdateSnapshot")) + .build(); + } + } + } + return getUpdateSnapshotMethod; + } + + private static volatile io.grpc.MethodDescriptor getListBackupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackups", + requestType = com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, + responseType = com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListBackupsMethod() { + io.grpc.MethodDescriptor getListBackupsMethod; + if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1beta1.ListBackupsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListBackupsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListBackups")) + .build(); + } + } + } + return getListBackupsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackup", + requestType = com.google.cloud.filestore.v1beta1.GetBackupRequest.class, + responseType = com.google.cloud.filestore.v1beta1.Backup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBackupMethod() { + io.grpc.MethodDescriptor getGetBackupMethod; + if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1beta1.GetBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetBackup")) + .build(); + } + } + } + return getGetBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBackup", + requestType = com.google.cloud.filestore.v1beta1.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 = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getCreateBackupMethod = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1beta1.CreateBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("CreateBackup")) + .build(); + } + } + } + return getCreateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", + requestType = com.google.cloud.filestore.v1beta1.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 = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getDeleteBackupMethod = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1beta1.DeleteBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("DeleteBackup")) + .build(); + } + } + } + return getDeleteBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", + requestType = com.google.cloud.filestore.v1beta1.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 = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getUpdateBackupMethod = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1beta1.UpdateBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("UpdateBackup")) + .build(); + } + } + } + return getUpdateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSharesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListShares", + requestType = com.google.cloud.filestore.v1beta1.ListSharesRequest.class, + responseType = com.google.cloud.filestore.v1beta1.ListSharesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSharesMethod() { + io.grpc.MethodDescriptor getListSharesMethod; + if ((getListSharesMethod = CloudFilestoreManagerGrpc.getListSharesMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getListSharesMethod = CloudFilestoreManagerGrpc.getListSharesMethod) == null) { + CloudFilestoreManagerGrpc.getListSharesMethod = getListSharesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListShares")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListSharesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListSharesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListShares")) + .build(); + } + } + } + return getListSharesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetShare", + requestType = com.google.cloud.filestore.v1beta1.GetShareRequest.class, + responseType = com.google.cloud.filestore.v1beta1.Share.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetShareMethod() { + io.grpc.MethodDescriptor getGetShareMethod; + if ((getGetShareMethod = CloudFilestoreManagerGrpc.getGetShareMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getGetShareMethod = CloudFilestoreManagerGrpc.getGetShareMethod) == null) { + CloudFilestoreManagerGrpc.getGetShareMethod = getGetShareMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.GetShareRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.Share.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetShare")) + .build(); + } + } + } + return getGetShareMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateShare", + requestType = com.google.cloud.filestore.v1beta1.CreateShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateShareMethod() { + io.grpc.MethodDescriptor getCreateShareMethod; + if ((getCreateShareMethod = CloudFilestoreManagerGrpc.getCreateShareMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getCreateShareMethod = CloudFilestoreManagerGrpc.getCreateShareMethod) == null) { + CloudFilestoreManagerGrpc.getCreateShareMethod = getCreateShareMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.CreateShareRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("CreateShare")) + .build(); + } + } + } + return getCreateShareMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteShare", + requestType = com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteShareMethod() { + io.grpc.MethodDescriptor getDeleteShareMethod; + if ((getDeleteShareMethod = CloudFilestoreManagerGrpc.getDeleteShareMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getDeleteShareMethod = CloudFilestoreManagerGrpc.getDeleteShareMethod) == null) { + CloudFilestoreManagerGrpc.getDeleteShareMethod = getDeleteShareMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.DeleteShareRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("DeleteShare")) + .build(); + } + } + } + return getDeleteShareMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateShare", + requestType = com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateShareMethod() { + io.grpc.MethodDescriptor getUpdateShareMethod; + if ((getUpdateShareMethod = CloudFilestoreManagerGrpc.getUpdateShareMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getUpdateShareMethod = CloudFilestoreManagerGrpc.getUpdateShareMethod) == null) { + CloudFilestoreManagerGrpc.getUpdateShareMethod = getUpdateShareMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.UpdateShareRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("UpdateShare")) + .build(); + } + } + } + return getUpdateShareMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static CloudFilestoreManagerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFilestoreManagerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerStub(channel, callOptions); + } + }; + return CloudFilestoreManagerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CloudFilestoreManagerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFilestoreManagerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerBlockingStub(channel, callOptions); + } + }; + return CloudFilestoreManagerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CloudFilestoreManagerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFilestoreManagerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerFutureStub(channel, callOptions); + } + }; + return CloudFilestoreManagerFutureStub.newStub(factory, channel); + } + + /** + *
+   * Configures and manages Filestore resources.
+   * Filestore Manager v1beta1.
+   * The `file.googleapis.com` service implements the Filestore API and
+   * defines the following model for managing resources:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Filestore instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   *   backups are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id can represent a GCP `zone` or `region` depending on the
+   * resource.
+   * for example:
+   * A zonal Filestore instance:
+   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+   * A regional Filestore instance:
+   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+   * 
+ */ + public static abstract class CloudFilestoreManagerImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public void listInstances(com.google.cloud.filestore.v1beta1.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public void getInstance(com.google.cloud.filestore.v1beta1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); + } + + /** + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public void createInstance(com.google.cloud.filestore.v1beta1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); + } + + /** + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public void updateInstance(com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); + } + + /** + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public void restoreInstance(com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreInstanceMethod(), responseObserver); + } + + /** + *
+     * Revert an existing instance's file system to a specified snapshot.
+     * 
+ */ + public void revertInstance(com.google.cloud.filestore.v1beta1.RevertInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevertInstanceMethod(), responseObserver); + } + + /** + *
+     * Deletes an instance.
+     * 
+ */ + public void deleteInstance(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); + } + + /** + *
+     * Lists all snapshots in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public void listSnapshots(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSnapshotsMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a specific snapshot.
+     * 
+ */ + public void getSnapshot(com.google.cloud.filestore.v1beta1.GetSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSnapshotMethod(), responseObserver); + } + + /** + *
+     * Creates a snapshot.
+     * 
+ */ + public void createSnapshot(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSnapshotMethod(), responseObserver); + } + + /** + *
+     * Deletes a snapshot.
+     * 
+ */ + public void deleteSnapshot(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSnapshotMethod(), responseObserver); + } + + /** + *
+     * Updates the settings of a specific snapshot.
+     * 
+ */ + public void updateSnapshot(com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSnapshotMethod(), responseObserver); + } + + /** + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public void listBackups(com.google.cloud.filestore.v1beta1.ListBackupsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBackupsMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public void getBackup(com.google.cloud.filestore.v1beta1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); + } + + /** + *
+     * Creates a backup.
+     * 
+ */ + public void createBackup(com.google.cloud.filestore.v1beta1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBackupMethod(), responseObserver); + } + + /** + *
+     * Deletes a backup.
+     * 
+ */ + public void deleteBackup(com.google.cloud.filestore.v1beta1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBackupMethod(), responseObserver); + } + + /** + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public void updateBackup(com.google.cloud.filestore.v1beta1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBackupMethod(), responseObserver); + } + + /** + *
+     * Lists all shares for a specified instance.
+     * 
+ */ + public void listShares(com.google.cloud.filestore.v1beta1.ListSharesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSharesMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a specific share.
+     * 
+ */ + public void getShare(com.google.cloud.filestore.v1beta1.GetShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetShareMethod(), responseObserver); + } + + /** + *
+     * Creates a share.
+     * 
+ */ + public void createShare(com.google.cloud.filestore.v1beta1.CreateShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateShareMethod(), responseObserver); + } + + /** + *
+     * Deletes a share.
+     * 
+ */ + public void deleteShare(com.google.cloud.filestore.v1beta1.DeleteShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteShareMethod(), responseObserver); + } + + /** + *
+     * Updates the settings of a specific share.
+     * 
+ */ + public void updateShare(com.google.cloud.filestore.v1beta1.UpdateShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateShareMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.ListInstancesRequest, + com.google.cloud.filestore.v1beta1.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.GetInstanceRequest, + com.google.cloud.filestore.v1beta1.Instance>( + this, METHODID_GET_INSTANCE))) + .addMethod( + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.CreateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getRestoreInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_RESTORE_INSTANCE))) + .addMethod( + getRevertInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.RevertInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_REVERT_INSTANCE))) + .addMethod( + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_INSTANCE))) + .addMethod( + getListSnapshotsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest, + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse>( + this, METHODID_LIST_SNAPSHOTS))) + .addMethod( + getGetSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.GetSnapshotRequest, + com.google.cloud.filestore.v1beta1.Snapshot>( + this, METHODID_GET_SNAPSHOT))) + .addMethod( + getCreateSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_SNAPSHOT))) + .addMethod( + getDeleteSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_SNAPSHOT))) + .addMethod( + getUpdateSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_SNAPSHOT))) + .addMethod( + getListBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.ListBackupsRequest, + com.google.cloud.filestore.v1beta1.ListBackupsResponse>( + this, METHODID_LIST_BACKUPS))) + .addMethod( + getGetBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.GetBackupRequest, + com.google.cloud.filestore.v1beta1.Backup>( + this, METHODID_GET_BACKUP))) + .addMethod( + getCreateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.CreateBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_BACKUP))) + .addMethod( + getDeleteBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.DeleteBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_BACKUP))) + .addMethod( + getUpdateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.UpdateBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_BACKUP))) + .addMethod( + getListSharesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.ListSharesRequest, + com.google.cloud.filestore.v1beta1.ListSharesResponse>( + this, METHODID_LIST_SHARES))) + .addMethod( + getGetShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.GetShareRequest, + com.google.cloud.filestore.v1beta1.Share>( + this, METHODID_GET_SHARE))) + .addMethod( + getCreateShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.CreateShareRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_SHARE))) + .addMethod( + getDeleteShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.DeleteShareRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_SHARE))) + .addMethod( + getUpdateShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.UpdateShareRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_SHARE))) + .build(); + } + } + + /** + *
+   * Configures and manages Filestore resources.
+   * Filestore Manager v1beta1.
+   * The `file.googleapis.com` service implements the Filestore API and
+   * defines the following model for managing resources:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Filestore instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   *   backups are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id can represent a GCP `zone` or `region` depending on the
+   * resource.
+   * for example:
+   * A zonal Filestore instance:
+   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+   * A regional Filestore instance:
+   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+   * 
+ */ + public static final class CloudFilestoreManagerStub extends io.grpc.stub.AbstractAsyncStub { + private CloudFilestoreManagerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudFilestoreManagerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerStub(channel, callOptions); + } + + /** + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public void listInstances(com.google.cloud.filestore.v1beta1.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public void getInstance(com.google.cloud.filestore.v1beta1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public void createInstance(com.google.cloud.filestore.v1beta1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public void updateInstance(com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public void restoreInstance(com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Revert an existing instance's file system to a specified snapshot.
+     * 
+ */ + public void revertInstance(com.google.cloud.filestore.v1beta1.RevertInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRevertInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an instance.
+     * 
+ */ + public void deleteInstance(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all snapshots in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public void listSnapshots(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details of a specific snapshot.
+     * 
+ */ + public void getSnapshot(com.google.cloud.filestore.v1beta1.GetSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a snapshot.
+     * 
+ */ + public void createSnapshot(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a snapshot.
+     * 
+ */ + public void deleteSnapshot(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the settings of a specific snapshot.
+     * 
+ */ + public void updateSnapshot(com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public void listBackups(com.google.cloud.filestore.v1beta1.ListBackupsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public void getBackup(com.google.cloud.filestore.v1beta1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a backup.
+     * 
+ */ + public void createBackup(com.google.cloud.filestore.v1beta1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a backup.
+     * 
+ */ + public void deleteBackup(com.google.cloud.filestore.v1beta1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public void updateBackup(com.google.cloud.filestore.v1beta1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all shares for a specified instance.
+     * 
+ */ + public void listShares(com.google.cloud.filestore.v1beta1.ListSharesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSharesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details of a specific share.
+     * 
+ */ + public void getShare(com.google.cloud.filestore.v1beta1.GetShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetShareMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a share.
+     * 
+ */ + public void createShare(com.google.cloud.filestore.v1beta1.CreateShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateShareMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a share.
+     * 
+ */ + public void deleteShare(com.google.cloud.filestore.v1beta1.DeleteShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteShareMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the settings of a specific share.
+     * 
+ */ + public void updateShare(com.google.cloud.filestore.v1beta1.UpdateShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateShareMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Configures and manages Filestore resources.
+   * Filestore Manager v1beta1.
+   * The `file.googleapis.com` service implements the Filestore API and
+   * defines the following model for managing resources:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Filestore instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   *   backups are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id can represent a GCP `zone` or `region` depending on the
+   * resource.
+   * for example:
+   * A zonal Filestore instance:
+   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+   * A regional Filestore instance:
+   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+   * 
+ */ + public static final class CloudFilestoreManagerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private CloudFilestoreManagerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudFilestoreManagerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.ListInstancesResponse listInstances(com.google.cloud.filestore.v1beta1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.Instance getInstance(com.google.cloud.filestore.v1beta1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public com.google.longrunning.Operation createInstance(com.google.cloud.filestore.v1beta1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance(com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public com.google.longrunning.Operation restoreInstance(com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Revert an existing instance's file system to a specified snapshot.
+     * 
+ */ + public com.google.longrunning.Operation revertInstance(com.google.cloud.filestore.v1beta1.RevertInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRevertInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an instance.
+     * 
+ */ + public com.google.longrunning.Operation deleteInstance(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all snapshots in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse listSnapshots(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSnapshotsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a specific snapshot.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot(com.google.cloud.filestore.v1beta1.GetSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSnapshotMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a snapshot.
+     * 
+ */ + public com.google.longrunning.Operation createSnapshot(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a snapshot.
+     * 
+ */ + public com.google.longrunning.Operation deleteSnapshot(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the settings of a specific snapshot.
+     * 
+ */ + public com.google.longrunning.Operation updateSnapshot(com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.ListBackupsResponse listBackups(com.google.cloud.filestore.v1beta1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.Backup getBackup(com.google.cloud.filestore.v1beta1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a backup.
+     * 
+ */ + public com.google.longrunning.Operation createBackup(com.google.cloud.filestore.v1beta1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBackupMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a backup.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackup(com.google.cloud.filestore.v1beta1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackupMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public com.google.longrunning.Operation updateBackup(com.google.cloud.filestore.v1beta1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBackupMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all shares for a specified instance.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.ListSharesResponse listShares(com.google.cloud.filestore.v1beta1.ListSharesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSharesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a specific share.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.Share getShare(com.google.cloud.filestore.v1beta1.GetShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetShareMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a share.
+     * 
+ */ + public com.google.longrunning.Operation createShare(com.google.cloud.filestore.v1beta1.CreateShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateShareMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a share.
+     * 
+ */ + public com.google.longrunning.Operation deleteShare(com.google.cloud.filestore.v1beta1.DeleteShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteShareMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the settings of a specific share.
+     * 
+ */ + public com.google.longrunning.Operation updateShare(com.google.cloud.filestore.v1beta1.UpdateShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateShareMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Configures and manages Filestore resources.
+   * Filestore Manager v1beta1.
+   * The `file.googleapis.com` service implements the Filestore API and
+   * defines the following model for managing resources:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Filestore instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   *   backups are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id can represent a GCP `zone` or `region` depending on the
+   * resource.
+   * for example:
+   * A zonal Filestore instance:
+   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+   * A regional Filestore instance:
+   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+   * 
+ */ + public static final class CloudFilestoreManagerFutureStub extends io.grpc.stub.AbstractFutureStub { + private CloudFilestoreManagerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudFilestoreManagerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerFutureStub(channel, callOptions); + } + + /** + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listInstances( + com.google.cloud.filestore.v1beta1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getInstance( + com.google.cloud.filestore.v1beta1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createInstance( + com.google.cloud.filestore.v1beta1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateInstance( + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture restoreInstance( + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Revert an existing instance's file system to a specified snapshot.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture revertInstance( + com.google.cloud.filestore.v1beta1.RevertInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRevertInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteInstance( + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all snapshots in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSnapshots( + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the details of a specific snapshot.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSnapshot( + com.google.cloud.filestore.v1beta1.GetSnapshotRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a snapshot.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSnapshot( + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a snapshot.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSnapshot( + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the settings of a specific snapshot.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSnapshot( + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listBackups( + com.google.cloud.filestore.v1beta1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getBackup( + com.google.cloud.filestore.v1beta1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createBackup( + com.google.cloud.filestore.v1beta1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteBackup( + com.google.cloud.filestore.v1beta1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateBackup( + com.google.cloud.filestore.v1beta1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all shares for a specified instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listShares( + com.google.cloud.filestore.v1beta1.ListSharesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSharesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the details of a specific share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getShare( + com.google.cloud.filestore.v1beta1.GetShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetShareMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createShare( + com.google.cloud.filestore.v1beta1.CreateShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateShareMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteShare( + com.google.cloud.filestore.v1beta1.DeleteShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteShareMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the settings of a specific share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateShare( + com.google.cloud.filestore.v1beta1.UpdateShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateShareMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_CREATE_INSTANCE = 2; + private static final int METHODID_UPDATE_INSTANCE = 3; + private static final int METHODID_RESTORE_INSTANCE = 4; + private static final int METHODID_REVERT_INSTANCE = 5; + private static final int METHODID_DELETE_INSTANCE = 6; + private static final int METHODID_LIST_SNAPSHOTS = 7; + private static final int METHODID_GET_SNAPSHOT = 8; + private static final int METHODID_CREATE_SNAPSHOT = 9; + private static final int METHODID_DELETE_SNAPSHOT = 10; + private static final int METHODID_UPDATE_SNAPSHOT = 11; + private static final int METHODID_LIST_BACKUPS = 12; + private static final int METHODID_GET_BACKUP = 13; + private static final int METHODID_CREATE_BACKUP = 14; + private static final int METHODID_DELETE_BACKUP = 15; + private static final int METHODID_UPDATE_BACKUP = 16; + private static final int METHODID_LIST_SHARES = 17; + private static final int METHODID_GET_SHARE = 18; + private static final int METHODID_CREATE_SHARE = 19; + private static final int METHODID_DELETE_SHARE = 20; + private static final int METHODID_UPDATE_SHARE = 21; + + 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 CloudFilestoreManagerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CloudFilestoreManagerImplBase 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_LIST_INSTANCES: + serviceImpl.listInstances((com.google.cloud.filestore.v1beta1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance((com.google.cloud.filestore.v1beta1.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_INSTANCE: + serviceImpl.createInstance((com.google.cloud.filestore.v1beta1.CreateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance((com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESTORE_INSTANCE: + serviceImpl.restoreInstance((com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REVERT_INSTANCE: + serviceImpl.revertInstance((com.google.cloud.filestore.v1beta1.RevertInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INSTANCE: + serviceImpl.deleteInstance((com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SNAPSHOTS: + serviceImpl.listSnapshots((com.google.cloud.filestore.v1beta1.ListSnapshotsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SNAPSHOT: + serviceImpl.getSnapshot((com.google.cloud.filestore.v1beta1.GetSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SNAPSHOT: + serviceImpl.createSnapshot((com.google.cloud.filestore.v1beta1.CreateSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SNAPSHOT: + serviceImpl.deleteSnapshot((com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SNAPSHOT: + serviceImpl.updateSnapshot((com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BACKUPS: + serviceImpl.listBackups((com.google.cloud.filestore.v1beta1.ListBackupsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BACKUP: + serviceImpl.getBackup((com.google.cloud.filestore.v1beta1.GetBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_BACKUP: + serviceImpl.createBackup((com.google.cloud.filestore.v1beta1.CreateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BACKUP: + serviceImpl.deleteBackup((com.google.cloud.filestore.v1beta1.DeleteBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BACKUP: + serviceImpl.updateBackup((com.google.cloud.filestore.v1beta1.UpdateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SHARES: + serviceImpl.listShares((com.google.cloud.filestore.v1beta1.ListSharesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SHARE: + serviceImpl.getShare((com.google.cloud.filestore.v1beta1.GetShareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SHARE: + serviceImpl.createShare((com.google.cloud.filestore.v1beta1.CreateShareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SHARE: + serviceImpl.deleteShare((com.google.cloud.filestore.v1beta1.DeleteShareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SHARE: + serviceImpl.updateShare((com.google.cloud.filestore.v1beta1.UpdateShareRequest) 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 CloudFilestoreManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CloudFilestoreManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CloudFilestoreManager"); + } + } + + private static final class CloudFilestoreManagerFileDescriptorSupplier + extends CloudFilestoreManagerBaseDescriptorSupplier { + CloudFilestoreManagerFileDescriptorSupplier() {} + } + + private static final class CloudFilestoreManagerMethodDescriptorSupplier + extends CloudFilestoreManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CloudFilestoreManagerMethodDescriptorSupplier(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 (CloudFilestoreManagerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudFilestoreManagerFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getRestoreInstanceMethod()) + .addMethod(getRevertInstanceMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getListSnapshotsMethod()) + .addMethod(getGetSnapshotMethod()) + .addMethod(getCreateSnapshotMethod()) + .addMethod(getDeleteSnapshotMethod()) + .addMethod(getUpdateSnapshotMethod()) + .addMethod(getListBackupsMethod()) + .addMethod(getGetBackupMethod()) + .addMethod(getCreateBackupMethod()) + .addMethod(getDeleteBackupMethod()) + .addMethod(getUpdateBackupMethod()) + .addMethod(getListSharesMethod()) + .addMethod(getGetShareMethod()) + .addMethod(getCreateShareMethod()) + .addMethod(getDeleteShareMethod()) + .addMethod(getUpdateShareMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java similarity index 71% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java index cd3f8c6dcec5..07036dbcf704 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/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/common/operation_metadata.proto package com.google.cloud.common; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.common.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.common.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,42 +28,37 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.common.OperationMetadata.class, - com.google.cloud.common.OperationMetadata.Builder.class); + com.google.cloud.common.OperationMetadata.class, com.google.cloud.common.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 @@ -89,15 +66,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 @@ -105,14 +78,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() { @@ -122,15 +92,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 @@ -138,15 +104,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 @@ -154,14 +116,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() { @@ -171,14 +130,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 @@ -187,29 +143,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 { @@ -220,14 +176,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 @@ -236,29 +189,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 { @@ -269,14 +222,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ @java.lang.Override @@ -285,29 +235,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -318,8 +268,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -328,7 +276,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -339,14 +286,11 @@ public boolean getCancelRequested() { 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 @@ -355,29 +299,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 { @@ -386,7 +330,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -398,7 +341,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -430,10 +374,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_); @@ -445,7 +391,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -458,27 +405,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.common.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.common.OperationMetadata other = - (com.google.cloud.common.OperationMetadata) obj; + com.google.cloud.common.OperationMetadata other = (com.google.cloud.common.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 (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (getCancelRequested() != other.getCancelRequested()) 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 (!getStatusDetail() + .equals(other.getStatusDetail())) return false; + if (getCancelRequested() + != other.getCancelRequested()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -505,7 +458,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -513,136 +467,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.common.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.common.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.common.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.common.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.common.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.common.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.common.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.common.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.common.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.common.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.common.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.common.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.common.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.common.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.common.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.common.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.common.OperationMetadata) com.google.cloud.common.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.common.OperationMetadata.class, - com.google.cloud.common.OperationMetadata.Builder.class); + com.google.cloud.common.OperationMetadata.class, com.google.cloud.common.OperationMetadata.Builder.class); } // Construct using com.google.cloud.common.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -672,9 +620,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override @@ -693,8 +641,7 @@ public com.google.cloud.common.OperationMetadata build() { @java.lang.Override public com.google.cloud.common.OperationMetadata buildPartial() { - com.google.cloud.common.OperationMetadata result = - new com.google.cloud.common.OperationMetadata(this); + com.google.cloud.common.OperationMetadata result = new com.google.cloud.common.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -718,39 +665,38 @@ public com.google.cloud.common.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.common.OperationMetadata) { - return mergeFrom((com.google.cloud.common.OperationMetadata) other); + return mergeFrom((com.google.cloud.common.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -810,55 +756,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - statusDetail_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: - { - cancelRequested_ = input.readBool(); - - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + statusDetail_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: { + cancelRequested_ = input.readBool(); + + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -871,58 +813,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) { @@ -938,17 +861,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(); @@ -959,21 +879,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; } @@ -985,15 +901,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) { @@ -1007,64 +919,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_; @@ -1072,35 +968,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() { @@ -1111,14 +996,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) { @@ -1134,16 +1016,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(); @@ -1154,20 +1034,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; } @@ -1179,14 +1056,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) { @@ -1200,59 +1074,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_; @@ -1260,20 +1123,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; @@ -1282,21 +1143,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 { @@ -1304,61 +1164,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; @@ -1366,20 +1219,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; @@ -1388,21 +1239,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 { @@ -1410,61 +1260,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; @@ -1472,20 +1315,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusDetail_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1494,21 +1335,20 @@ public java.lang.String getStatusDetail() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1516,70 +1356,61 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail(java.lang.String value) { + public Builder setStatusDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_; + private boolean cancelRequested_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1588,7 +1419,6 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -1596,8 +1426,6 @@ public boolean getCancelRequested() { return cancelRequested_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1606,19 +1434,16 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1627,11 +1452,10 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1639,20 +1463,18 @@ public Builder clearCancelRequested() { 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; @@ -1661,21 +1483,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 { @@ -1683,68 +1504,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); } @@ -1754,12 +1568,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.common.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.common.OperationMetadata) private static final com.google.cloud.common.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.common.OperationMetadata(); } @@ -1768,27 +1582,27 @@ public static com.google.cloud.common.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1803,4 +1617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.common.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java similarity index 74% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java index 9d77fb3b23d3..03b8d68c0be5 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/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/common/operation_metadata.proto package com.google.cloud.common; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.common.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_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString getStatusDetailBytes(); + com.google.protobuf.ByteString + getStatusDetailBytes(); /** - * - * *
    * 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 cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ boolean getCancelRequested(); /** - * - * *
    * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java new file mode 100644 index 000000000000..8b00f4c11630 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/common/operation_metadata.proto + +package com.google.cloud.common; + +public final class OperationMetadataOuterClass { + private OperationMetadataOuterClass() {} + 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_common_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_common_OperationMetadata_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/common/operation_metadata" + + ".proto\022\023google.cloud.common\032\037google/api/" + + "field_behavior.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\371\001\n\021OperationMetadata\0224\n\013c" + + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pro" + + "tobuf.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\032\n\rstatus_detail\030\005 " + + "\001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022" + + "\030\n\013api_version\030\007 \001(\tB\003\340A\003BV\n\027com.google." + + "cloud.commonP\001Z9google.golang.org/genpro" + + "to/googleapis/cloud/common;commonb\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_common_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_common_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java similarity index 67% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java index 3e8ea79012d8..7b29e1520769 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * A Filestore backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.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_ = ""; description_ = ""; @@ -49,54 +31,51 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_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 5: 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.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Backup.class, - com.google.cloud.filestore.v1beta1.Backup.Builder.class); + com.google.cloud.filestore.v1beta1.Backup.class, com.google.cloud.filestore.v1beta1.Backup.Builder.class); } /** - * - * *
    * The backup state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Backup.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State not set.
      * 
@@ -105,8 +84,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Backup is being created.
      * 
@@ -115,8 +92,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * Backup has been taken and the operation is being finalized. At this
      * point, changes to the file share will not be reflected in the backup.
@@ -126,8 +101,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     FINALIZING(2),
     /**
-     *
-     *
      * 
      * Backup is available for use.
      * 
@@ -136,8 +109,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(3), /** - * - * *
      * Backup is being deleted.
      * 
@@ -149,8 +120,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * State not set.
      * 
@@ -159,8 +128,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Backup is being created.
      * 
@@ -169,8 +136,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * Backup has been taken and the operation is being finalized. At this
      * point, changes to the file share will not be reflected in the backup.
@@ -180,8 +145,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FINALIZING_VALUE = 2;
     /**
-     *
-     *
      * 
      * Backup is available for use.
      * 
@@ -190,8 +153,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 3; /** - * - * *
      * Backup is being deleted.
      * 
@@ -200,6 +161,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -224,53 +186,51 @@ 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 FINALIZING; - case 3: - return READY; - case 4: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return FINALIZING; + case 3: return READY; + case 4: 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.filestore.v1beta1.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; @@ -290,15 +250,12 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -307,30 +264,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 resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -341,15 +298,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -358,30 +312,30 @@ 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; } } /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @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 { @@ -392,55 +346,38 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
    * Output only. The backup state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.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 backup state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.Backup.State getState() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Backup.State result = - com.google.cloud.filestore.v1beta1.Backup.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Backup.State result = com.google.cloud.filestore.v1beta1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Backup.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -448,15 +385,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -464,14 +397,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -479,23 +409,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_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() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_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() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -504,30 +435,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ + @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(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -535,12 +464,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -548,16 +476,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @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; } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -565,11 +493,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 5; */ @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(); } @@ -579,14 +508,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int CAPACITY_GB_FIELD_NUMBER = 6; private long capacityGb_; /** - * - * *
    * Output only. Capacity of the source file share when the backup was created.
    * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityGb. */ @java.lang.Override @@ -597,15 +523,12 @@ public long getCapacityGb() { public static final int STORAGE_BYTES_FIELD_NUMBER = 7; private long storageBytes_; /** - * - * *
    * Output only. The size of the storage used by the backup. As backups share storage,
    * this number is expected to change with backup creation/deletion.
    * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ @java.lang.Override @@ -616,8 +539,6 @@ public long getStorageBytes() { public static final int SOURCE_INSTANCE_FIELD_NUMBER = 8; private volatile java.lang.Object sourceInstance_; /** - * - * *
    * The resource name of the source Filestore instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -625,7 +546,6 @@ public long getStorageBytes() {
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceInstance. */ @java.lang.Override @@ -634,15 +554,14 @@ public java.lang.String getSourceInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceInstance_ = s; return s; } } /** - * - * *
    * The resource name of the source Filestore instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -650,15 +569,16 @@ public java.lang.String getSourceInstance() {
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceInstance. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceInstanceBytes() { + public com.google.protobuf.ByteString + getSourceInstanceBytes() { java.lang.Object ref = sourceInstance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceInstance_ = b; return b; } else { @@ -669,15 +589,12 @@ public com.google.protobuf.ByteString getSourceInstanceBytes() { public static final int SOURCE_FILE_SHARE_FIELD_NUMBER = 9; private volatile java.lang.Object sourceFileShare_; /** - * - * *
    * Name of the file share in the source Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The sourceFileShare. */ @java.lang.Override @@ -686,30 +603,30 @@ public java.lang.String getSourceFileShare() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFileShare_ = s; return s; } } /** - * - * *
    * Name of the file share in the source Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The bytes for sourceFileShare. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceFileShareBytes() { + public com.google.protobuf.ByteString + getSourceFileShareBytes() { java.lang.Object ref = sourceFileShare_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFileShare_ = b; return b; } else { @@ -720,56 +637,40 @@ public com.google.protobuf.ByteString getSourceFileShareBytes() { public static final int SOURCE_INSTANCE_TIER_FIELD_NUMBER = 10; private int sourceInstanceTier_; /** - * - * *
    * Output only. The service tier of the source Filestore instance that this backup
    * is created from.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for sourceInstanceTier. */ - @java.lang.Override - public int getSourceInstanceTierValue() { + @java.lang.Override public int getSourceInstanceTierValue() { return sourceInstanceTier_; } /** - * - * *
    * Output only. The service tier of the source Filestore instance that this backup
    * is created from.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceInstanceTier. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.Instance.Tier getSourceInstanceTier() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.Tier getSourceInstanceTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.Tier result = - com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(sourceInstanceTier_); + com.google.cloud.filestore.v1beta1.Instance.Tier result = com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(sourceInstanceTier_); return result == null ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED : result; } public static final int DOWNLOAD_BYTES_FIELD_NUMBER = 11; private long downloadBytes_; /** - * - * *
    * Output only. Amount of bytes that will be downloaded if the backup is restored
    * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The downloadBytes. */ @java.lang.Override @@ -780,16 +681,11 @@ public long getDownloadBytes() { public static final int SATISFIES_PZS_FIELD_NUMBER = 12; private com.google.protobuf.BoolValue satisfiesPzs_; /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ @java.lang.Override @@ -797,34 +693,23 @@ public boolean hasSatisfiesPzs() { return satisfiesPzs_ != null; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ @java.lang.Override public com.google.protobuf.BoolValue getSatisfiesPzs() { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { @@ -834,14 +719,11 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { public static final int KMS_KEY_NAME_FIELD_NUMBER = 13; private volatile java.lang.Object kmsKeyName_; /** - * - * *
    * Immutable. KMS key name used for data encryption.
    * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKeyName. */ @java.lang.Override @@ -850,29 +732,29 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** - * - * *
    * Immutable. KMS key name used for data encryption.
    * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -881,7 +763,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -893,7 +774,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -906,8 +788,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(4, getCreateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); if (capacityGb_ != 0L) { output.writeInt64(6, capacityGb_); } @@ -920,8 +806,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sourceFileShare_); } - if (sourceInstanceTier_ - != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { + if (sourceInstanceTier_ != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(10, sourceInstanceTier_); } if (downloadBytes_ != 0L) { @@ -949,26 +834,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1beta1.Backup.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - 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(5, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); + } + 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(5, labels__); } if (capacityGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, capacityGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, capacityGb_); } if (storageBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, storageBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, storageBytes_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceInstance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceInstance_); @@ -976,15 +865,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sourceFileShare_); } - if (sourceInstanceTier_ - != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sourceInstanceTier_); + if (sourceInstanceTier_ != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, sourceInstanceTier_); } if (downloadBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, downloadBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, downloadBytes_); } if (satisfiesPzs_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSatisfiesPzs()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getSatisfiesPzs()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kmsKeyName_); @@ -997,33 +888,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.Backup)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.Backup other = - (com.google.cloud.filestore.v1beta1.Backup) obj; + com.google.cloud.filestore.v1beta1.Backup other = (com.google.cloud.filestore.v1beta1.Backup) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (getCapacityGb() != other.getCapacityGb()) return false; - if (getStorageBytes() != other.getStorageBytes()) return false; - if (!getSourceInstance().equals(other.getSourceInstance())) return false; - if (!getSourceFileShare().equals(other.getSourceFileShare())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (getCapacityGb() + != other.getCapacityGb()) return false; + if (getStorageBytes() + != other.getStorageBytes()) return false; + if (!getSourceInstance() + .equals(other.getSourceInstance())) return false; + if (!getSourceFileShare() + .equals(other.getSourceFileShare())) return false; if (sourceInstanceTier_ != other.sourceInstanceTier_) return false; - if (getDownloadBytes() != other.getDownloadBytes()) return false; + if (getDownloadBytes() + != other.getDownloadBytes()) return false; if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { - if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; + if (!getSatisfiesPzs() + .equals(other.getSatisfiesPzs())) return false; } - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1050,9 +951,11 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCapacityGb()); 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) + SOURCE_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getSourceInstance().hashCode(); hash = (37 * hash) + SOURCE_FILE_SHARE_FIELD_NUMBER; @@ -1060,7 +963,8 @@ public int hashCode() { hash = (37 * hash) + SOURCE_INSTANCE_TIER_FIELD_NUMBER; hash = (53 * hash) + sourceInstanceTier_; hash = (37 * hash) + DOWNLOAD_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDownloadBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDownloadBytes()); if (hasSatisfiesPzs()) { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + getSatisfiesPzs().hashCode(); @@ -1072,156 +976,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1beta1.Backup parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1beta1.Backup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.Backup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.Backup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.Backup parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.Backup parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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; } /** - * - * *
    * A Filestore backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.Backup) com.google.cloud.filestore.v1beta1.BackupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: 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 5: 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.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Backup.class, - com.google.cloud.filestore.v1beta1.Backup.Builder.class); + com.google.cloud.filestore.v1beta1.Backup.class, com.google.cloud.filestore.v1beta1.Backup.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.Backup.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1262,9 +1162,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; } @java.lang.Override @@ -1283,8 +1183,7 @@ public com.google.cloud.filestore.v1beta1.Backup build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup buildPartial() { - com.google.cloud.filestore.v1beta1.Backup result = - new com.google.cloud.filestore.v1beta1.Backup(this); + com.google.cloud.filestore.v1beta1.Backup result = new com.google.cloud.filestore.v1beta1.Backup(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -1316,39 +1215,38 @@ public com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.Backup) { - return mergeFrom((com.google.cloud.filestore.v1beta1.Backup) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.Backup)other); } else { super.mergeFrom(other); return this; @@ -1371,7 +1269,8 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Backup other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.getCapacityGb() != 0L) { setCapacityGb(other.getCapacityGb()); } @@ -1425,96 +1324,84 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - state_ = input.readEnum(); - - break; - } // case 24 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 42 - case 48: - { - capacityGb_ = input.readInt64(); - - break; - } // case 48 - case 56: - { - storageBytes_ = input.readInt64(); - - break; - } // case 56 - case 66: - { - sourceInstance_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: - { - sourceFileShare_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 80: - { - sourceInstanceTier_ = input.readEnum(); - - break; - } // case 80 - case 88: - { - downloadBytes_ = input.readInt64(); - - break; - } // case 88 - case 98: - { - input.readMessage(getSatisfiesPzsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - case 106: - { - kmsKeyName_ = input.readStringRequireUtf8(); - - break; - } // case 106 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + state_ = input.readEnum(); + + break; + } // case 24 + case 34: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 42 + case 48: { + capacityGb_ = input.readInt64(); + + break; + } // case 48 + case 56: { + storageBytes_ = input.readInt64(); + + break; + } // case 56 + case 66: { + sourceInstance_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: { + sourceFileShare_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 80: { + sourceInstanceTier_ = input.readEnum(); + + break; + } // case 80 + case 88: { + downloadBytes_ = input.readInt64(); + + break; + } // case 88 + case 98: { + input.readMessage( + getSatisfiesPzsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 98 + case 106: { + kmsKeyName_ = input.readStringRequireUtf8(); + + break; + } // case 106 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1524,26 +1411,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1552,22 +1436,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1575,64 +1458,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * 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 resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + 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; @@ -1640,21 +1516,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @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; @@ -1663,22 +1537,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @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 { @@ -1686,64 +1559,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @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; } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @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; @@ -1751,73 +1617,51 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.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 backup state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.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 backup state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Backup.State result = - com.google.cloud.filestore.v1beta1.Backup.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Backup.State result = com.google.cloud.filestore.v1beta1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Backup.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -1825,26 +1669,21 @@ public Builder setState(com.google.cloud.filestore.v1beta1.Backup.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1852,58 +1691,39 @@ public Builder clearState() { 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 when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1919,17 +1739,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1940,21 +1757,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1966,15 +1779,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1988,84 +1797,69 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - 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(); @@ -2077,30 +1871,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ + @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(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2108,12 +1900,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2121,17 +1912,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @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; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2139,11 +1929,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5; */ @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(); } @@ -2151,74 +1942,74 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - 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(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - 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; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - 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 long capacityGb_; + private long capacityGb_ ; /** - * - * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityGb. */ @java.lang.Override @@ -2226,52 +2017,43 @@ public long getCapacityGb() { return capacityGb_; } /** - * - * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } - private long storageBytes_; + private long storageBytes_ ; /** - * - * *
      * Output only. The size of the storage used by the backup. As backups share storage,
      * this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ @java.lang.Override @@ -2279,38 +2061,32 @@ public long getStorageBytes() { return storageBytes_; } /** - * - * *
      * Output only. The size of the storage used by the backup. As backups share storage,
      * this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.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 size of the storage used by the backup. As backups share storage,
      * this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStorageBytes() { - + storageBytes_ = 0L; onChanged(); return this; @@ -2318,8 +2094,6 @@ public Builder clearStorageBytes() { private java.lang.Object sourceInstance_ = ""; /** - * - * *
      * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -2327,13 +2101,13 @@ public Builder clearStorageBytes() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceInstance. */ public java.lang.String getSourceInstance() { java.lang.Object ref = sourceInstance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceInstance_ = s; return s; @@ -2342,8 +2116,6 @@ public java.lang.String getSourceInstance() { } } /** - * - * *
      * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -2351,14 +2123,15 @@ public java.lang.String getSourceInstance() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceInstance. */ - public com.google.protobuf.ByteString getSourceInstanceBytes() { + public com.google.protobuf.ByteString + getSourceInstanceBytes() { java.lang.Object ref = sourceInstance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceInstance_ = b; return b; } else { @@ -2366,8 +2139,6 @@ public com.google.protobuf.ByteString getSourceInstanceBytes() { } } /** - * - * *
      * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -2375,22 +2146,20 @@ public com.google.protobuf.ByteString getSourceInstanceBytes() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @param value The sourceInstance to set. * @return This builder for chaining. */ - public Builder setSourceInstance(java.lang.String value) { + public Builder setSourceInstance( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceInstance_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -2398,18 +2167,15 @@ public Builder setSourceInstance(java.lang.String value) {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSourceInstance() { - + sourceInstance_ = getDefaultInstance().getSourceInstance(); onChanged(); return this; } /** - * - * *
      * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -2417,16 +2183,16 @@ public Builder clearSourceInstance() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for sourceInstance to set. * @return This builder for chaining. */ - public Builder setSourceInstanceBytes(com.google.protobuf.ByteString value) { + public Builder setSourceInstanceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceInstance_ = value; onChanged(); return this; @@ -2434,21 +2200,19 @@ public Builder setSourceInstanceBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceFileShare_ = ""; /** - * - * *
      * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @return The sourceFileShare. */ public java.lang.String getSourceFileShare() { java.lang.Object ref = sourceFileShare_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFileShare_ = s; return s; @@ -2457,22 +2221,21 @@ public java.lang.String getSourceFileShare() { } } /** - * - * *
      * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @return The bytes for sourceFileShare. */ - public com.google.protobuf.ByteString getSourceFileShareBytes() { + public com.google.protobuf.ByteString + getSourceFileShareBytes() { java.lang.Object ref = sourceFileShare_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFileShare_ = b; return b; } else { @@ -2480,64 +2243,57 @@ public com.google.protobuf.ByteString getSourceFileShareBytes() { } } /** - * - * *
      * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @param value The sourceFileShare to set. * @return This builder for chaining. */ - public Builder setSourceFileShare(java.lang.String value) { + public Builder setSourceFileShare( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceFileShare_ = value; onChanged(); return this; } /** - * - * *
      * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @return This builder for chaining. */ public Builder clearSourceFileShare() { - + sourceFileShare_ = getDefaultInstance().getSourceFileShare(); onChanged(); return this; } /** - * - * *
      * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @param value The bytes for sourceFileShare to set. * @return This builder for chaining. */ - public Builder setSourceFileShareBytes(com.google.protobuf.ByteString value) { + public Builder setSourceFileShareBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceFileShare_ = value; onChanged(); return this; @@ -2545,79 +2301,55 @@ public Builder setSourceFileShareBytes(com.google.protobuf.ByteString value) { private int sourceInstanceTier_ = 0; /** - * - * *
      * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for sourceInstanceTier. */ - @java.lang.Override - public int getSourceInstanceTierValue() { + @java.lang.Override public int getSourceInstanceTierValue() { return sourceInstanceTier_; } /** - * - * *
      * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for sourceInstanceTier to set. * @return This builder for chaining. */ public Builder setSourceInstanceTierValue(int value) { - + sourceInstanceTier_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceInstanceTier. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.Tier getSourceInstanceTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.Tier result = - com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(sourceInstanceTier_); - return result == null - ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.Instance.Tier result = com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(sourceInstanceTier_); + return result == null ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The sourceInstanceTier to set. * @return This builder for chaining. */ @@ -2625,42 +2357,34 @@ public Builder setSourceInstanceTier(com.google.cloud.filestore.v1beta1.Instance if (value == null) { throw new NullPointerException(); } - + sourceInstanceTier_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSourceInstanceTier() { - + sourceInstanceTier_ = 0; onChanged(); return this; } - private long downloadBytes_; + private long downloadBytes_ ; /** - * - * *
      * Output only. Amount of bytes that will be downloaded if the backup is restored
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The downloadBytes. */ @java.lang.Override @@ -2668,36 +2392,30 @@ public long getDownloadBytes() { return downloadBytes_; } /** - * - * *
      * Output only. Amount of bytes that will be downloaded if the backup is restored
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The downloadBytes to set. * @return This builder for chaining. */ public Builder setDownloadBytes(long value) { - + downloadBytes_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Amount of bytes that will be downloaded if the backup is restored
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDownloadBytes() { - + downloadBytes_ = 0L; onChanged(); return this; @@ -2705,58 +2423,39 @@ public Builder clearDownloadBytes() { private com.google.protobuf.BoolValue satisfiesPzs_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - satisfiesPzsBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> satisfiesPzsBuilder_; /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ public boolean hasSatisfiesPzs() { return satisfiesPzsBuilder_ != null || satisfiesPzs_ != null; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ public com.google.protobuf.BoolValue getSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } else { return satisfiesPzsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { @@ -2772,17 +2471,14 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setSatisfiesPzs( + com.google.protobuf.BoolValue.Builder builderForValue) { if (satisfiesPzsBuilder_ == null) { satisfiesPzs_ = builderForValue.build(); onChanged(); @@ -2793,23 +2489,17 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForV return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { if (satisfiesPzs_ != null) { satisfiesPzs_ = - com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_).mergeFrom(value).buildPartial(); } else { satisfiesPzs_ = value; } @@ -2821,15 +2511,11 @@ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { @@ -2843,64 +2529,48 @@ public Builder clearSatisfiesPzs() { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder() { - + onChanged(); return getSatisfiesPzsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { if (satisfiesPzsBuilder_ != null) { return satisfiesPzsBuilder_.getMessageOrBuilder(); } else { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getSatisfiesPzsFieldBuilder() { if (satisfiesPzsBuilder_ == null) { - satisfiesPzsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getSatisfiesPzs(), getParentForChildren(), isClean()); + satisfiesPzsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getSatisfiesPzs(), + getParentForChildren(), + isClean()); satisfiesPzs_ = null; } return satisfiesPzsBuilder_; @@ -2908,20 +2578,18 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * Immutable. KMS key name used for data encryption.
      * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -2930,21 +2598,20 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * Immutable. KMS key name used for data encryption.
      * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -2952,68 +2619,61 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * Immutable. KMS key name used for data encryption.
      * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { + public Builder setKmsKeyName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. KMS key name used for data encryption.
      * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** - * - * *
      * Immutable. KMS key name used for data encryption.
      * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = 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); } @@ -3023,12 +2683,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.Backup) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.Backup) private static final com.google.cloud.filestore.v1beta1.Backup DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.Backup(); } @@ -3037,27 +2697,27 @@ public static com.google.cloud.filestore.v1beta1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3072,4 +2732,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.Backup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java similarity index 71% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java index d9e1d4e6603e..ba0f8914cd58 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java @@ -1,152 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface BackupOrBuilder - extends +public interface BackupOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.Backup) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The backup state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The backup state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.filestore.v1beta1.Backup.State getState(); /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -155,31 +106,30 @@ public interface BackupOrBuilder */ int getLabelsCount(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - 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(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -188,51 +138,43 @@ 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); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. Capacity of the source file share when the backup was created.
    * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityGb. */ long getCapacityGb(); /** - * - * *
    * Output only. The size of the storage used by the backup. As backups share storage,
    * this number is expected to change with backup creation/deletion.
    * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ long getStorageBytes(); /** - * - * *
    * The resource name of the source Filestore instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -240,13 +182,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceInstance. */ java.lang.String getSourceInstance(); /** - * - * *
    * The resource name of the source Filestore instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -254,145 +193,108 @@ java.lang.String getLabelsOrDefault(
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceInstance. */ - com.google.protobuf.ByteString getSourceInstanceBytes(); + com.google.protobuf.ByteString + getSourceInstanceBytes(); /** - * - * *
    * Name of the file share in the source Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The sourceFileShare. */ java.lang.String getSourceFileShare(); /** - * - * *
    * Name of the file share in the source Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The bytes for sourceFileShare. */ - com.google.protobuf.ByteString getSourceFileShareBytes(); + com.google.protobuf.ByteString + getSourceFileShareBytes(); /** - * - * *
    * Output only. The service tier of the source Filestore instance that this backup
    * is created from.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for sourceInstanceTier. */ int getSourceInstanceTierValue(); /** - * - * *
    * Output only. The service tier of the source Filestore instance that this backup
    * is created from.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceInstanceTier. */ com.google.cloud.filestore.v1beta1.Instance.Tier getSourceInstanceTier(); /** - * - * *
    * Output only. Amount of bytes that will be downloaded if the backup is restored
    * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The downloadBytes. */ long getDownloadBytes(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ boolean hasSatisfiesPzs(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ com.google.protobuf.BoolValue getSatisfiesPzs(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); /** - * - * *
    * Immutable. KMS key name used for data encryption.
    * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * Immutable. KMS key name used for data encryption.
    * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java new file mode 100644 index 000000000000..e2c7c65f79ee --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java @@ -0,0 +1,801 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public final class CloudFilestoreServiceProto { + private CloudFilestoreServiceProto() {} + 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_filestore_v1beta1_NetworkConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Share_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_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\"2/v" + + "1beta1/{parent=projects/*/locations/*}/i" + + "nstances:\010instance\332A\033parent,instance,ins" + + "tance_id\312A1\n\010Instance\022%google.cloud.comm" + + "on.OperationMetadata\022\201\002\n\016UpdateInstance\022" + + "5.google.cloud.filestore.v1beta1.UpdateI" + + "nstanceRequest\032\035.google.longrunning.Oper" + + "ation\"\230\001\202\323\344\223\002G2;/v1beta1/{instance.name=" + + "projects/*/locations/*/instances/*}:\010ins" + + "tance\332A\024instance,update_mask\312A1\n\010Instanc" + + "e\022%google.cloud.common.OperationMetadata" + + "\022\343\001\n\017RestoreInstance\0226.google.cloud.file" + + "store.v1beta1.RestoreInstanceRequest\032\035.g" + + "oogle.longrunning.Operation\"y\202\323\344\223\002?\":/v1" + + "beta1/{name=projects/*/locations/*/insta" + + "nces/*}:restore:\001*\312A1\n\010Instance\022%google." + + "cloud.common.OperationMetadata\022\340\001\n\016Rever" + + "tInstance\0225.google.cloud.filestore.v1bet" + + "a1.RevertInstanceRequest\032\035.google.longru" + + "nning.Operation\"x\202\323\344\223\002>\"9/v1beta1/{name=" + + "projects/*/locations/*/instances/*}:reve" + + "rt:\001*\312A1\n\010Instance\022%google.cloud.common." + + "OperationMetadata\022\353\001\n\016DeleteInstance\0225.g" + + "oogle.cloud.filestore.v1beta1.DeleteInst" + + "anceRequest\032\035.google.longrunning.Operati" + + "on\"\202\001\202\323\344\223\0024*2/v1beta1/{name=projects/*/l" + + "ocations/*/instances/*}\332A\004name\312A>\n\025googl" + + "e.protobuf.Empty\022%google.cloud.common.Op" + + "erationMetadata\022\315\001\n\rListSnapshots\0224.goog" + + "le.cloud.filestore.v1beta1.ListSnapshots" + + "Request\0325.google.cloud.filestore.v1beta1" + + ".ListSnapshotsResponse\"O\202\323\344\223\002@\022>/v1beta1" + + "/{parent=projects/*/locations/*/instance" + + "s/*}/snapshots\332A\006parent\022\272\001\n\013GetSnapshot\022" + + "2.google.cloud.filestore.v1beta1.GetSnap" + + "shotRequest\032(.google.cloud.filestore.v1b" + + "eta1.Snapshot\"M\202\323\344\223\002@\022>/v1beta1/{name=pr" + + "ojects/*/locations/*/instances/*/snapsho" + + "ts/*}\332A\004name\022\213\002\n\016CreateSnapshot\0225.google" + + ".cloud.filestore.v1beta1.CreateSnapshotR" + + "equest\032\035.google.longrunning.Operation\"\242\001" + + "\202\323\344\223\002J\">/v1beta1/{parent=projects/*/loca" + + "tions/*/instances/*}/snapshots:\010snapshot" + + "\332A\033parent,snapshot,snapshot_id\312A1\n\010Snaps" + + "hot\022%google.cloud.common.OperationMetada" + + "ta\022\367\001\n\016DeleteSnapshot\0225.google.cloud.fil" + + "estore.v1beta1.DeleteSnapshotRequest\032\035.g" + + "oogle.longrunning.Operation\"\216\001\202\323\344\223\002@*>/v" + + "1beta1/{name=projects/*/locations/*/inst" + + "ances/*/snapshots/*}\332A\004name\312A>\n\025google.p" + + "rotobuf.Empty\022%google.cloud.common.Opera" + + "tionMetadata\022\215\002\n\016UpdateSnapshot\0225.google" + + ".cloud.filestore.v1beta1.UpdateSnapshotR" + + "equest\032\035.google.longrunning.Operation\"\244\001" + + "\202\323\344\223\002S2G/v1beta1/{snapshot.name=projects" + + "/*/locations/*/instances/*/snapshots/*}:" + + "\010snapshot\332A\024snapshot,update_mask\312A1\n\010Sna" + + "pshot\022%google.cloud.common.OperationMeta" + + "data\022\271\001\n\013ListBackups\0222.google.cloud.file" + + "store.v1beta1.ListBackupsRequest\0323.googl" + + "e.cloud.filestore.v1beta1.ListBackupsRes" + + "ponse\"A\202\323\344\223\0022\0220/v1beta1/{parent=projects" + + "/*/locations/*}/backups\332A\006parent\022\246\001\n\tGet" + + "Backup\0220.google.cloud.filestore.v1beta1." + + "GetBackupRequest\032&.google.cloud.filestor" + + "e.v1beta1.Backup\"?\202\323\344\223\0022\0220/v1beta1/{name" + + "=projects/*/locations/*/backups/*}\332A\004nam" + + "e\022\361\001\n\014CreateBackup\0223.google.cloud.filest" + + "ore.v1beta1.CreateBackupRequest\032\035.google" + + ".longrunning.Operation\"\214\001\202\323\344\223\002:\"0/v1beta" + + "1/{parent=projects/*/locations/*}/backup" + + "s:\006backup\332A\027parent,backup,backup_id\312A/\n\006" + + "Backup\022%google.cloud.common.OperationMet" + + "adata\022\345\001\n\014DeleteBackup\0223.google.cloud.fi" + + "lestore.v1beta1.DeleteBackupRequest\032\035.go" + + "ogle.longrunning.Operation\"\200\001\202\323\344\223\0022*0/v1" + + "beta1/{name=projects/*/locations/*/backu" + + "ps/*}\332A\004name\312A>\n\025google.protobuf.Empty\022%" + + "google.cloud.common.OperationMetadata\022\363\001" + + "\n\014UpdateBackup\0223.google.cloud.filestore." + + "v1beta1.UpdateBackupRequest\032\035.google.lon" + + "grunning.Operation\"\216\001\202\323\344\223\002A27/v1beta1/{b" + + "ackup.name=projects/*/locations/*/backup" + + "s/*}:\006backup\332A\022backup,update_mask\312A/\n\006Ba" + + "ckup\022%google.cloud.common.OperationMetad" + + "ata\022\301\001\n\nListShares\0221.google.cloud.filest" + + "ore.v1beta1.ListSharesRequest\0322.google.c" + + "loud.filestore.v1beta1.ListSharesRespons" + + "e\"L\202\323\344\223\002=\022;/v1beta1/{parent=projects/*/l" + + "ocations/*/instances/*}/shares\332A\006parent\022" + + "\256\001\n\010GetShare\022/.google.cloud.filestore.v1" + + "beta1.GetShareRequest\032%.google.cloud.fil" + + "estore.v1beta1.Share\"J\202\323\344\223\002=\022;/v1beta1/{" + + "name=projects/*/locations/*/instances/*/" + + "shares/*}\332A\004name\022\366\001\n\013CreateShare\0222.googl" + + "e.cloud.filestore.v1beta1.CreateShareReq" + + "uest\032\035.google.longrunning.Operation\"\223\001\202\323" + + "\344\223\002D\";/v1beta1/{parent=projects/*/locati" + + "ons/*/instances/*}/shares:\005share\332A\025paren" + + "t,share,share_id\312A.\n\005Share\022%google.cloud" + + ".common.OperationMetadata\022\356\001\n\013DeleteShar" + + "e\0222.google.cloud.filestore.v1beta1.Delet" + + "eShareRequest\032\035.google.longrunning.Opera" + + "tion\"\213\001\202\323\344\223\002=*;/v1beta1/{name=projects/*" + + "/locations/*/instances/*/shares/*}\332A\004nam" + + "e\312A>\n\025google.protobuf.Empty\022%google.clou" + + "d.common.OperationMetadata\022\370\001\n\013UpdateSha" + + "re\0222.google.cloud.filestore.v1beta1.Upda" + + "teShareRequest\032\035.google.longrunning.Oper" + + "ation\"\225\001\202\323\344\223\002J2A/v1beta1/{share.name=pro" + + "jects/*/locations/*/instances/*/shares/*" + + "}:\005share\332A\021share,update_mask\312A.\n\005Share\022%" + + "google.cloud.common.OperationMetadata\032G\312" + + "A\023file.googleapis.com\322A.https://www.goog" + + "leapis.com/auth/cloud-platformB\315\001\n\"com.g" + + "oogle.cloud.filestore.v1beta1B\032CloudFile" + + "storeServiceProtoP\001ZGgoogle.golang.org/g" + + "enproto/googleapis/cloud/filestore/v1bet" + + "a1;filestore\252\002\036Google.Cloud.Filestore.V1" + + "Beta1\312\002\036Google\\Cloud\\Filestore\\V1beta1b\006" + + "proto3" + }; + 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.common.OperationMetadataOuterClass.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor, + new java.lang.String[] { "Network", "Modes", "ReservedIpRange", "IpAddresses", "ConnectMode", }); + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor, + new java.lang.String[] { "Name", "CapacityGb", "SourceBackup", "NfsExportOptions", "Source", }); + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor, + new java.lang.String[] { "IpRanges", "AccessMode", "SquashMode", "AnonUid", "AnonGid", }); + internal_static_google_cloud_filestore_v1beta1_Instance_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Instance_descriptor, + new java.lang.String[] { "Name", "Description", "State", "StatusMessage", "CreateTime", "Tier", "Labels", "FileShares", "Networks", "Etag", "SatisfiesPzs", "KmsKeyName", "SuspensionReasons", "MaxCapacityGb", "CapacityStepSizeGb", "MaxShareCount", "CapacityGb", "MultiShareEnabled", }); + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1beta1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor, + new java.lang.String[] { "Parent", "InstanceId", "Instance", }); + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Instance", }); + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor, + new java.lang.String[] { "Name", "FileShare", "SourceSnapshot", "SourceBackup", "Source", }); + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor, + new java.lang.String[] { "Name", "TargetSnapshotId", }); + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { "Name", "Force", }); + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor, + new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor, + new java.lang.String[] { "Name", "Description", "State", "CreateTime", "Labels", "FilesystemUsedBytes", }); + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor, + new java.lang.String[] { "Parent", "SnapshotId", "Snapshot", }); + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Snapshot", }); + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor, + new java.lang.String[] { "Snapshots", "NextPageToken", }); + internal_static_google_cloud_filestore_v1beta1_Backup_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Backup_descriptor, + new java.lang.String[] { "Name", "Description", "State", "CreateTime", "Labels", "CapacityGb", "StorageBytes", "SourceInstance", "SourceFileShare", "SourceInstanceTier", "DownloadBytes", "SatisfiesPzs", "KmsKeyName", }); + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1beta1_Backup_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor, + new java.lang.String[] { "Parent", "Backup", "BackupId", }); + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor, + new java.lang.String[] { "Backup", "UpdateMask", }); + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor, + new java.lang.String[] { "Backups", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_filestore_v1beta1_Share_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Share_descriptor, + new java.lang.String[] { "Name", "MountName", "Description", "CapacityGb", "NfsExportOptions", "State", "CreateTime", "Labels", }); + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1beta1_Share_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor, + new java.lang.String[] { "Parent", "ShareId", "Share", }); + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor, + new java.lang.String[] { "Shares", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor, + new java.lang.String[] { "Share", "UpdateMask", }); + 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.resource); + 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.common.OperationMetadataOuterClass.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java similarity index 66% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java index c0612a3e8447..091473c4de7b 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * CreateBackupRequest creates a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.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,45 +26,39 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, - com.google.cloud.filestore.v1beta1.CreateBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, com.google.cloud.filestore.v1beta1.CreateBackupRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The backup's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,33 +67,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The backup's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,16 +102,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BACKUP_FIELD_NUMBER = 2; private com.google.cloud.filestore.v1beta1.Backup backup_; /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ @java.lang.Override @@ -145,34 +114,23 @@ public boolean hasBackup() { return backup_ != null; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup getBackup() { - return backup_ == null - ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { @@ -182,8 +140,6 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { public static final int BACKUP_ID_FIELD_NUMBER = 3; private volatile java.lang.Object backupId_; /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -192,7 +148,6 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() {
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The backupId. */ @java.lang.Override @@ -201,15 +156,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; } } /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -218,15 +172,16 @@ public java.lang.String getBackupId() {
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -235,7 +190,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,7 +201,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -270,7 +225,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_); @@ -283,20 +239,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.filestore.v1beta1.CreateBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.CreateBackupRequest other = - (com.google.cloud.filestore.v1beta1.CreateBackupRequest) obj; + com.google.cloud.filestore.v1beta1.CreateBackupRequest other = (com.google.cloud.filestore.v1beta1.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -322,136 +280,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.CreateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.CreateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.CreateBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.CreateBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.CreateBackupRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.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; } /** - * - * *
    * CreateBackupRequest creates a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.CreateBackupRequest) com.google.cloud.filestore.v1beta1.CreateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, - com.google.cloud.filestore.v1beta1.CreateBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, com.google.cloud.filestore.v1beta1.CreateBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.CreateBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; } @java.lang.Override @@ -490,8 +441,7 @@ public com.google.cloud.filestore.v1beta1.CreateBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.CreateBackupRequest buildPartial() { - com.google.cloud.filestore.v1beta1.CreateBackupRequest result = - new com.google.cloud.filestore.v1beta1.CreateBackupRequest(this); + com.google.cloud.filestore.v1beta1.CreateBackupRequest result = new com.google.cloud.filestore.v1beta1.CreateBackupRequest(this); result.parent_ = parent_; if (backupBuilder_ == null) { result.backup_ = backup_; @@ -507,39 +457,38 @@ public com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.CreateBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.CreateBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.CreateBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -547,8 +496,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.CreateBackupRequest other) { - if (other == com.google.cloud.filestore.v1beta1.CreateBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.CreateBackupRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -586,31 +534,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getBackupFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - backupId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + backupId_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,24 +569,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The backup's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string parent = 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; @@ -649,25 +591,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The backup's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string parent = 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 { @@ -675,73 +614,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The backup's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * 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's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string 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's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * 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; @@ -749,58 +675,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.filestore.v1beta1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, - com.google.cloud.filestore.v1beta1.Backup.Builder, - com.google.cloud.filestore.v1beta1.BackupOrBuilder> - backupBuilder_; + com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> backupBuilder_; /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ public boolean hasBackup() { return backupBuilder_ != null || backup_ != null; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ public com.google.cloud.filestore.v1beta1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null - ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; } else { return backupBuilder_.getMessage(); } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup value) { if (backupBuilder_ == null) { @@ -816,17 +723,14 @@ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) { + public Builder setBackup( + com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -837,23 +741,17 @@ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup.Builder build return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBackup(com.google.cloud.filestore.v1beta1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.filestore.v1beta1.Backup.newBuilder(backup_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1beta1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); } else { backup_ = value; } @@ -865,15 +763,11 @@ public Builder mergeBackup(com.google.cloud.filestore.v1beta1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBackup() { if (backupBuilder_ == null) { @@ -887,64 +781,48 @@ public Builder clearBackup() { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null - ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? + com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, - com.google.cloud.filestore.v1beta1.Backup.Builder, - com.google.cloud.filestore.v1beta1.BackupOrBuilder> + com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, - com.google.cloud.filestore.v1beta1.Backup.Builder, - com.google.cloud.filestore.v1beta1.BackupOrBuilder>( - getBackup(), getParentForChildren(), isClean()); + backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder>( + getBackup(), + getParentForChildren(), + isClean()); backup_ = null; } return backupBuilder_; @@ -952,8 +830,6 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { private java.lang.Object backupId_ = ""; /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -962,13 +838,13 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -977,8 +853,6 @@ public java.lang.String getBackupId() { } } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -987,14 +861,15 @@ public java.lang.String getBackupId() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1002,8 +877,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -1012,22 +885,20 @@ public com.google.protobuf.ByteString getBackupIdBytes() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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; } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -1036,18 +907,15 @@ public Builder setBackupId(java.lang.String value) {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBackupId() { - + backupId_ = getDefaultInstance().getBackupId(); onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -1056,23 +924,23 @@ public Builder clearBackupId() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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); } @@ -1082,12 +950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.CreateBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.CreateBackupRequest) private static final com.google.cloud.filestore.v1beta1.CreateBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.CreateBackupRequest(); } @@ -1096,27 +964,27 @@ public static com.google.cloud.filestore.v1beta1.CreateBackupRequest getDefaultI 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,4 +999,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.CreateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java similarity index 60% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java index 8c671834baec..7b424e422780 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java @@ -1,105 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface CreateBackupRequestOrBuilder - extends +public interface CreateBackupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.CreateBackupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The backup's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 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's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 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. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ boolean hasBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ com.google.cloud.filestore.v1beta1.Backup getBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder(); /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -108,13 +67,10 @@ public interface CreateBackupRequestOrBuilder
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The backupId. */ java.lang.String getBackupId(); /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -123,8 +79,8 @@ public interface CreateBackupRequestOrBuilder
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for backupId. */ - com.google.protobuf.ByteString getBackupIdBytes(); + com.google.protobuf.ByteString + getBackupIdBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java similarity index 66% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java index 98840df7c52b..ba0dd36a7877 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * CreateInstanceRequest creates an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateInstanceRequest} */ -public final class CreateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.CreateInstanceRequest) CreateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateInstanceRequest.newBuilder() to construct. private CreateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateInstanceRequest() { parent_ = ""; instanceId_ = ""; @@ -44,45 +26,39 @@ private CreateInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, - com.google.cloud.filestore.v1beta1.CreateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, com.google.cloud.filestore.v1beta1.CreateInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,33 +67,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,8 +102,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** - * - * *
    * Required. The ID of the instance to create.
    * The ID must be unique within the specified project and location.
@@ -138,7 +110,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ @java.lang.Override @@ -147,15 +118,14 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * *
    * Required. The ID of the instance to create.
    * The ID must be unique within the specified project and location.
@@ -164,15 +134,16 @@ public java.lang.String getInstanceId() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -183,16 +154,11 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.cloud.filestore.v1beta1.Instance instance_; /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ @java.lang.Override @@ -200,34 +166,23 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance getInstance() { - return instance_ == null - ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { @@ -235,7 +190,6 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,7 +201,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -273,7 +228,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -283,19 +239,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.filestore.v1beta1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.CreateInstanceRequest other = - (com.google.cloud.filestore.v1beta1.CreateInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.CreateInstanceRequest other = (com.google.cloud.filestore.v1beta1.CreateInstanceRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -322,136 +280,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( - java.nio.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.filestore.v1beta1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.CreateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.CreateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CreateInstanceRequest creates an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.CreateInstanceRequest) com.google.cloud.filestore.v1beta1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, - com.google.cloud.filestore.v1beta1.CreateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, com.google.cloud.filestore.v1beta1.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.CreateInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -490,8 +441,7 @@ public com.google.cloud.filestore.v1beta1.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.CreateInstanceRequest buildPartial() { - com.google.cloud.filestore.v1beta1.CreateInstanceRequest result = - new com.google.cloud.filestore.v1beta1.CreateInstanceRequest(this); + com.google.cloud.filestore.v1beta1.CreateInstanceRequest result = new com.google.cloud.filestore.v1beta1.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (instanceBuilder_ == null) { @@ -507,39 +457,38 @@ public com.google.cloud.filestore.v1beta1.CreateInstanceRequest 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.filestore.v1beta1.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.CreateInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.CreateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -547,8 +496,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.CreateInstanceRequest other) { - if (other == com.google.cloud.filestore.v1beta1.CreateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.CreateInstanceRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -586,31 +534,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,24 +569,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string parent = 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; @@ -649,25 +591,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string parent = 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 { @@ -675,73 +614,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * 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 instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string 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 instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * 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; @@ -749,8 +675,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -759,13 +683,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -774,8 +698,6 @@ public java.lang.String getInstanceId() { } } /** - * - * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -784,14 +706,15 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -799,8 +722,6 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -809,22 +730,20 @@ public com.google.protobuf.ByteString getInstanceIdBytes() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { + public Builder setInstanceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -833,18 +752,15 @@ public Builder setInstanceId(java.lang.String value) {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -853,16 +769,16 @@ public Builder clearInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -870,58 +786,39 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.filestore.v1beta1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, - com.google.cloud.filestore.v1beta1.Instance.Builder, - com.google.cloud.filestore.v1beta1.InstanceOrBuilder> - instanceBuilder_; + com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> instanceBuilder_; /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ public com.google.cloud.filestore.v1beta1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance(com.google.cloud.filestore.v1beta1.Instance value) { if (instanceBuilder_ == null) { @@ -937,15 +834,11 @@ public Builder setInstance(com.google.cloud.filestore.v1beta1.Instance value) { return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance( com.google.cloud.filestore.v1beta1.Instance.Builder builderForValue) { @@ -959,23 +852,17 @@ public Builder setInstance( return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstance(com.google.cloud.filestore.v1beta1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.filestore.v1beta1.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1beta1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -987,15 +874,11 @@ public Builder mergeInstance(com.google.cloud.filestore.v1beta1.Instance value) return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -1009,71 +892,55 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, - com.google.cloud.filestore.v1beta1.Instance.Builder, - com.google.cloud.filestore.v1beta1.InstanceOrBuilder> + com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, - com.google.cloud.filestore.v1beta1.Instance.Builder, - com.google.cloud.filestore.v1beta1.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); instance_ = null; } return instanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1083,12 +950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.CreateInstanceRequest) private static final com.google.cloud.filestore.v1beta1.CreateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.CreateInstanceRequest(); } @@ -1097,27 +964,27 @@ public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1132,4 +999,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java similarity index 61% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java index 3feed1ab7be4..729082e25bf3 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface CreateInstanceRequestOrBuilder - extends +public interface CreateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.CreateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 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 instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 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 ID of the instance to create.
    * The ID must be unique within the specified project and location.
@@ -67,13 +40,10 @@ public interface CreateInstanceRequestOrBuilder
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * *
    * Required. The ID of the instance to create.
    * The ID must be unique within the specified project and location.
@@ -82,49 +52,35 @@ public interface CreateInstanceRequestOrBuilder
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ com.google.cloud.filestore.v1beta1.Instance getInstance(); /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java similarity index 65% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java index 2a0395f8b606..1cc76aaa7428 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * CreateShareRequest creates a share.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateShareRequest} */ -public final class CreateShareRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateShareRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.CreateShareRequest) CreateShareRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateShareRequest.newBuilder() to construct. private CreateShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateShareRequest() { parent_ = ""; shareId_ = ""; @@ -44,44 +26,38 @@ private CreateShareRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateShareRequest.class, - com.google.cloud.filestore.v1beta1.CreateShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateShareRequest.class, com.google.cloud.filestore.v1beta1.CreateShareRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The Filestore Instance to create the share for, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -90,32 +66,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The Filestore Instance to create the share for, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -126,8 +100,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SHARE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object shareId_; /** - * - * *
    * Required. The ID to use for the share.
    * The ID must be unique within the specified instance.
@@ -136,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The shareId. */ @java.lang.Override @@ -145,15 +116,14 @@ public java.lang.String getShareId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the share.
    * The ID must be unique within the specified instance.
@@ -162,15 +132,16 @@ public java.lang.String getShareId() {
    * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for shareId. */ @java.lang.Override - public com.google.protobuf.ByteString getShareIdBytes() { + public com.google.protobuf.ByteString + getShareIdBytes() { java.lang.Object ref = shareId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); shareId_ = b; return b; } else { @@ -181,16 +152,11 @@ public com.google.protobuf.ByteString getShareIdBytes() { public static final int SHARE_FIELD_NUMBER = 3; private com.google.cloud.filestore.v1beta1.Share share_; /** - * - * *
    * Required. A share resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the share field is set. */ @java.lang.Override @@ -198,16 +164,11 @@ public boolean hasShare() { return share_ != null; } /** - * - * *
    * Required. A share resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The share. */ @java.lang.Override @@ -215,15 +176,11 @@ public com.google.cloud.filestore.v1beta1.Share getShare() { return share_ == null ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; } /** - * - * *
    * Required. A share resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { @@ -231,7 +188,6 @@ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +199,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -269,7 +226,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shareId_); } if (share_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getShare()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getShare()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -279,19 +237,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.filestore.v1beta1.CreateShareRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.CreateShareRequest other = - (com.google.cloud.filestore.v1beta1.CreateShareRequest) obj; + com.google.cloud.filestore.v1beta1.CreateShareRequest other = (com.google.cloud.filestore.v1beta1.CreateShareRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getShareId().equals(other.getShareId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getShareId() + .equals(other.getShareId())) return false; if (hasShare() != other.hasShare()) return false; if (hasShare()) { - if (!getShare().equals(other.getShare())) return false; + if (!getShare() + .equals(other.getShare())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -318,136 +278,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( - java.nio.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.filestore.v1beta1.CreateShareRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.CreateShareRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.CreateShareRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.CreateShareRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CreateShareRequest creates a share.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateShareRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.CreateShareRequest) com.google.cloud.filestore.v1beta1.CreateShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateShareRequest.class, - com.google.cloud.filestore.v1beta1.CreateShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateShareRequest.class, com.google.cloud.filestore.v1beta1.CreateShareRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.CreateShareRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -465,9 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; } @java.lang.Override @@ -486,8 +439,7 @@ public com.google.cloud.filestore.v1beta1.CreateShareRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.CreateShareRequest buildPartial() { - com.google.cloud.filestore.v1beta1.CreateShareRequest result = - new com.google.cloud.filestore.v1beta1.CreateShareRequest(this); + com.google.cloud.filestore.v1beta1.CreateShareRequest result = new com.google.cloud.filestore.v1beta1.CreateShareRequest(this); result.parent_ = parent_; result.shareId_ = shareId_; if (shareBuilder_ == null) { @@ -503,39 +455,38 @@ public com.google.cloud.filestore.v1beta1.CreateShareRequest 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.filestore.v1beta1.CreateShareRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.CreateShareRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.CreateShareRequest)other); } else { super.mergeFrom(other); return this; @@ -543,8 +494,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.CreateShareRequest other) { - if (other == com.google.cloud.filestore.v1beta1.CreateShareRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.CreateShareRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -582,31 +532,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - shareId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + shareId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - input.readMessage(getShareFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getShareFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -619,23 +567,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The Filestore Instance to create the share for, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -644,24 +588,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The Filestore Instance to create the share for, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -669,70 +610,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The Filestore Instance to create the share for, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Filestore Instance to create the share for, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The Filestore Instance to create the share for, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + 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; @@ -740,8 +668,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object shareId_ = ""; /** - * - * *
      * Required. The ID to use for the share.
      * The ID must be unique within the specified instance.
@@ -750,13 +676,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The shareId. */ public java.lang.String getShareId() { java.lang.Object ref = shareId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareId_ = s; return s; @@ -765,8 +691,6 @@ public java.lang.String getShareId() { } } /** - * - * *
      * Required. The ID to use for the share.
      * The ID must be unique within the specified instance.
@@ -775,14 +699,15 @@ public java.lang.String getShareId() {
      * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for shareId. */ - public com.google.protobuf.ByteString getShareIdBytes() { + public com.google.protobuf.ByteString + getShareIdBytes() { java.lang.Object ref = shareId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); shareId_ = b; return b; } else { @@ -790,8 +715,6 @@ public com.google.protobuf.ByteString getShareIdBytes() { } } /** - * - * *
      * Required. The ID to use for the share.
      * The ID must be unique within the specified instance.
@@ -800,22 +723,20 @@ public com.google.protobuf.ByteString getShareIdBytes() {
      * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The shareId to set. * @return This builder for chaining. */ - public Builder setShareId(java.lang.String value) { + public Builder setShareId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + shareId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the share.
      * The ID must be unique within the specified instance.
@@ -824,18 +745,15 @@ public Builder setShareId(java.lang.String value) {
      * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearShareId() { - + shareId_ = getDefaultInstance().getShareId(); onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the share.
      * The ID must be unique within the specified instance.
@@ -844,16 +762,16 @@ public Builder clearShareId() {
      * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for shareId to set. * @return This builder for chaining. */ - public Builder setShareIdBytes(com.google.protobuf.ByteString value) { + public Builder setShareIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shareId_ = value; onChanged(); return this; @@ -861,58 +779,39 @@ public Builder setShareIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.filestore.v1beta1.Share share_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, - com.google.cloud.filestore.v1beta1.Share.Builder, - com.google.cloud.filestore.v1beta1.ShareOrBuilder> - shareBuilder_; + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> shareBuilder_; /** - * - * *
      * Required. A share resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the share field is set. */ public boolean hasShare() { return shareBuilder_ != null || share_ != null; } /** - * - * *
      * Required. A share resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The share. */ public com.google.cloud.filestore.v1beta1.Share getShare() { if (shareBuilder_ == null) { - return share_ == null - ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() - : share_; + return share_ == null ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; } else { return shareBuilder_.getMessage(); } } /** - * - * *
      * Required. A share resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setShare(com.google.cloud.filestore.v1beta1.Share value) { if (shareBuilder_ == null) { @@ -928,17 +827,14 @@ public Builder setShare(com.google.cloud.filestore.v1beta1.Share value) { return this; } /** - * - * *
      * Required. A share resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setShare(com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { + public Builder setShare( + com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { if (shareBuilder_ == null) { share_ = builderForValue.build(); onChanged(); @@ -949,23 +845,17 @@ public Builder setShare(com.google.cloud.filestore.v1beta1.Share.Builder builder return this; } /** - * - * *
      * Required. A share resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeShare(com.google.cloud.filestore.v1beta1.Share value) { if (shareBuilder_ == null) { if (share_ != null) { share_ = - com.google.cloud.filestore.v1beta1.Share.newBuilder(share_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1beta1.Share.newBuilder(share_).mergeFrom(value).buildPartial(); } else { share_ = value; } @@ -977,15 +867,11 @@ public Builder mergeShare(com.google.cloud.filestore.v1beta1.Share value) { return this; } /** - * - * *
      * Required. A share resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearShare() { if (shareBuilder_ == null) { @@ -999,71 +885,55 @@ public Builder clearShare() { return this; } /** - * - * *
      * Required. A share resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.Share.Builder getShareBuilder() { - + onChanged(); return getShareFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A share resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { if (shareBuilder_ != null) { return shareBuilder_.getMessageOrBuilder(); } else { - return share_ == null - ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() - : share_; + return share_ == null ? + com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; } } /** - * - * *
      * Required. A share resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, - com.google.cloud.filestore.v1beta1.Share.Builder, - com.google.cloud.filestore.v1beta1.ShareOrBuilder> + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> getShareFieldBuilder() { if (shareBuilder_ == null) { - shareBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, - com.google.cloud.filestore.v1beta1.Share.Builder, - com.google.cloud.filestore.v1beta1.ShareOrBuilder>( - getShare(), getParentForChildren(), isClean()); + shareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder>( + getShare(), + getParentForChildren(), + isClean()); share_ = null; } return shareBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1073,12 +943,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.CreateShareRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.CreateShareRequest) private static final com.google.cloud.filestore.v1beta1.CreateShareRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.CreateShareRequest(); } @@ -1087,27 +957,27 @@ public static com.google.cloud.filestore.v1beta1.CreateShareRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateShareRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1122,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.CreateShareRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java similarity index 58% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java index 29fab7024ec6..f23d94c34b54 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface CreateShareRequestOrBuilder - extends +public interface CreateShareRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.CreateShareRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Filestore Instance to create the share for, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The Filestore Instance to create the share for, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The ID to use for the share.
    * The ID must be unique within the specified instance.
@@ -65,13 +38,10 @@ public interface CreateShareRequestOrBuilder
    * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The shareId. */ java.lang.String getShareId(); /** - * - * *
    * Required. The ID to use for the share.
    * The ID must be unique within the specified instance.
@@ -80,49 +50,35 @@ public interface CreateShareRequestOrBuilder
    * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for shareId. */ - com.google.protobuf.ByteString getShareIdBytes(); + com.google.protobuf.ByteString + getShareIdBytes(); /** - * - * *
    * Required. A share resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the share field is set. */ boolean hasShare(); /** - * - * *
    * Required. A share resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The share. */ com.google.cloud.filestore.v1beta1.Share getShare(); /** - * - * *
    * Required. A share resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java similarity index 66% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java index 8ded8547058b..e162f5f05fd3 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * CreateSnapshotRequest creates a snapshot.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateSnapshotRequest} */ -public final class CreateSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.CreateSnapshotRequest) CreateSnapshotRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSnapshotRequest.newBuilder() to construct. private CreateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSnapshotRequest() { parent_ = ""; snapshotId_ = ""; @@ -44,44 +26,38 @@ private CreateSnapshotRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSnapshotRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The Filestore Instance to create the snapshots of, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -90,32 +66,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The Filestore Instance to create the snapshots of, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -126,8 +100,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SNAPSHOT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object snapshotId_; /** - * - * *
    * Required. The ID to use for the snapshot.
    * The ID must be unique within the specified instance.
@@ -136,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The snapshotId. */ @java.lang.Override @@ -145,15 +116,14 @@ public java.lang.String getSnapshotId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the snapshot.
    * The ID must be unique within the specified instance.
@@ -162,15 +132,16 @@ public java.lang.String getSnapshotId() {
    * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for snapshotId. */ @java.lang.Override - public com.google.protobuf.ByteString getSnapshotIdBytes() { + public com.google.protobuf.ByteString + getSnapshotIdBytes() { java.lang.Object ref = snapshotId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); snapshotId_ = b; return b; } else { @@ -181,16 +152,11 @@ public com.google.protobuf.ByteString getSnapshotIdBytes() { public static final int SNAPSHOT_FIELD_NUMBER = 3; private com.google.cloud.filestore.v1beta1.Snapshot snapshot_; /** - * - * *
    * Required. A snapshot resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the snapshot field is set. */ @java.lang.Override @@ -198,34 +164,23 @@ public boolean hasSnapshot() { return snapshot_ != null; } /** - * - * *
    * Required. A snapshot resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The snapshot. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot() { - return snapshot_ == null - ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() - : snapshot_; + return snapshot_ == null ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; } /** - * - * *
    * Required. A snapshot resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder() { @@ -233,7 +188,6 @@ public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,7 +199,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -271,7 +226,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, snapshotId_); } if (snapshot_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSnapshot()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSnapshot()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -281,19 +237,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.filestore.v1beta1.CreateSnapshotRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest other = - (com.google.cloud.filestore.v1beta1.CreateSnapshotRequest) obj; + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest other = (com.google.cloud.filestore.v1beta1.CreateSnapshotRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSnapshotId().equals(other.getSnapshotId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSnapshotId() + .equals(other.getSnapshotId())) return false; if (hasSnapshot() != other.hasSnapshot()) return false; if (hasSnapshot()) { - if (!getSnapshot().equals(other.getSnapshot())) return false; + if (!getSnapshot() + .equals(other.getSnapshot())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -320,136 +278,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( - java.nio.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.filestore.v1beta1.CreateSnapshotRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.CreateSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CreateSnapshotRequest creates a snapshot.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateSnapshotRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.CreateSnapshotRequest) com.google.cloud.filestore.v1beta1.CreateSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -467,9 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; } @java.lang.Override @@ -488,8 +439,7 @@ public com.google.cloud.filestore.v1beta1.CreateSnapshotRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.CreateSnapshotRequest buildPartial() { - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest result = - new com.google.cloud.filestore.v1beta1.CreateSnapshotRequest(this); + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest result = new com.google.cloud.filestore.v1beta1.CreateSnapshotRequest(this); result.parent_ = parent_; result.snapshotId_ = snapshotId_; if (snapshotBuilder_ == null) { @@ -505,39 +455,38 @@ public com.google.cloud.filestore.v1beta1.CreateSnapshotRequest 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.filestore.v1beta1.CreateSnapshotRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.CreateSnapshotRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.CreateSnapshotRequest)other); } else { super.mergeFrom(other); return this; @@ -545,8 +494,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest other) { - if (other == com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -584,31 +532,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - snapshotId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + snapshotId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - input.readMessage(getSnapshotFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getSnapshotFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -621,23 +567,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The Filestore Instance to create the snapshots of, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -646,24 +588,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The Filestore Instance to create the snapshots of, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -671,70 +610,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The Filestore Instance to create the snapshots of, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Filestore Instance to create the snapshots of, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The Filestore Instance to create the snapshots of, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + 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; @@ -742,8 +668,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object snapshotId_ = ""; /** - * - * *
      * Required. The ID to use for the snapshot.
      * The ID must be unique within the specified instance.
@@ -752,13 +676,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The snapshotId. */ public java.lang.String getSnapshotId() { java.lang.Object ref = snapshotId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotId_ = s; return s; @@ -767,8 +691,6 @@ public java.lang.String getSnapshotId() { } } /** - * - * *
      * Required. The ID to use for the snapshot.
      * The ID must be unique within the specified instance.
@@ -777,14 +699,15 @@ public java.lang.String getSnapshotId() {
      * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for snapshotId. */ - public com.google.protobuf.ByteString getSnapshotIdBytes() { + public com.google.protobuf.ByteString + getSnapshotIdBytes() { java.lang.Object ref = snapshotId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); snapshotId_ = b; return b; } else { @@ -792,8 +715,6 @@ public com.google.protobuf.ByteString getSnapshotIdBytes() { } } /** - * - * *
      * Required. The ID to use for the snapshot.
      * The ID must be unique within the specified instance.
@@ -802,22 +723,20 @@ public com.google.protobuf.ByteString getSnapshotIdBytes() {
      * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The snapshotId to set. * @return This builder for chaining. */ - public Builder setSnapshotId(java.lang.String value) { + public Builder setSnapshotId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + snapshotId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the snapshot.
      * The ID must be unique within the specified instance.
@@ -826,18 +745,15 @@ public Builder setSnapshotId(java.lang.String value) {
      * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSnapshotId() { - + snapshotId_ = getDefaultInstance().getSnapshotId(); onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the snapshot.
      * The ID must be unique within the specified instance.
@@ -846,16 +762,16 @@ public Builder clearSnapshotId() {
      * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for snapshotId to set. * @return This builder for chaining. */ - public Builder setSnapshotIdBytes(com.google.protobuf.ByteString value) { + public Builder setSnapshotIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshotId_ = value; onChanged(); return this; @@ -863,58 +779,39 @@ public Builder setSnapshotIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.filestore.v1beta1.Snapshot snapshot_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, - com.google.cloud.filestore.v1beta1.Snapshot.Builder, - com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> - snapshotBuilder_; + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> snapshotBuilder_; /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { return snapshotBuilder_ != null || snapshot_ != null; } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The snapshot. */ public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot() { if (snapshotBuilder_ == null) { - return snapshot_ == null - ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() - : snapshot_; + return snapshot_ == null ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; } else { return snapshotBuilder_.getMessage(); } } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { if (snapshotBuilder_ == null) { @@ -930,15 +827,11 @@ public Builder setSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { return this; } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSnapshot( com.google.cloud.filestore.v1beta1.Snapshot.Builder builderForValue) { @@ -952,23 +845,17 @@ public Builder setSnapshot( return this; } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { if (snapshotBuilder_ == null) { if (snapshot_ != null) { snapshot_ = - com.google.cloud.filestore.v1beta1.Snapshot.newBuilder(snapshot_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1beta1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); } else { snapshot_ = value; } @@ -980,15 +867,11 @@ public Builder mergeSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) return this; } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSnapshot() { if (snapshotBuilder_ == null) { @@ -1002,71 +885,55 @@ public Builder clearSnapshot() { return this; } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.Snapshot.Builder getSnapshotBuilder() { - + onChanged(); return getSnapshotFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder() { if (snapshotBuilder_ != null) { return snapshotBuilder_.getMessageOrBuilder(); } else { - return snapshot_ == null - ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() - : snapshot_; + return snapshot_ == null ? + com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; } } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, - com.google.cloud.filestore.v1beta1.Snapshot.Builder, - com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> getSnapshotFieldBuilder() { if (snapshotBuilder_ == null) { - snapshotBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, - com.google.cloud.filestore.v1beta1.Snapshot.Builder, - com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( - getSnapshot(), getParentForChildren(), isClean()); + snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( + getSnapshot(), + getParentForChildren(), + isClean()); snapshot_ = null; } return snapshotBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,12 +943,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.CreateSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.CreateSnapshotRequest) private static final com.google.cloud.filestore.v1beta1.CreateSnapshotRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.CreateSnapshotRequest(); } @@ -1090,27 +957,27 @@ public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.CreateSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java similarity index 58% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java index 566db50b3aa1..67c4acc3e03b 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface CreateSnapshotRequestOrBuilder - extends +public interface CreateSnapshotRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.CreateSnapshotRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Filestore Instance to create the snapshots of, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The Filestore Instance to create the snapshots of, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The ID to use for the snapshot.
    * The ID must be unique within the specified instance.
@@ -65,13 +38,10 @@ public interface CreateSnapshotRequestOrBuilder
    * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The snapshotId. */ java.lang.String getSnapshotId(); /** - * - * *
    * Required. The ID to use for the snapshot.
    * The ID must be unique within the specified instance.
@@ -80,49 +50,35 @@ public interface CreateSnapshotRequestOrBuilder
    * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for snapshotId. */ - com.google.protobuf.ByteString getSnapshotIdBytes(); + com.google.protobuf.ByteString + getSnapshotIdBytes(); /** - * - * *
    * Required. A snapshot resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the snapshot field is set. */ boolean hasSnapshot(); /** - * - * *
    * Required. A snapshot resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The snapshot. */ com.google.cloud.filestore.v1beta1.Snapshot getSnapshot(); /** - * - * *
    * Required. A snapshot resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java similarity index 64% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java index 2f18fa6f0562..4ba5b7424cc4 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java @@ -1,86 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * DeleteBackupRequest deletes a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.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_ = ""; } @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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, - com.google.cloud.filestore.v1beta1.DeleteBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, com.google.cloud.filestore.v1beta1.DeleteBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_id}/locations/{location}/backups/{backup_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_id}/locations/{location}/backups/{backup_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.DeleteBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.DeleteBackupRequest other = - (com.google.cloud.filestore.v1beta1.DeleteBackupRequest) obj; + com.google.cloud.filestore.v1beta1.DeleteBackupRequest other = (com.google.cloud.filestore.v1beta1.DeleteBackupRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +161,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.DeleteBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.DeleteBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.DeleteBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.DeleteBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.DeleteBackupRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.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; } /** - * - * *
    * DeleteBackupRequest deletes a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.DeleteBackupRequest) com.google.cloud.filestore.v1beta1.DeleteBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, - com.google.cloud.filestore.v1beta1.DeleteBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, com.google.cloud.filestore.v1beta1.DeleteBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.DeleteBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; } @java.lang.Override @@ -347,8 +314,7 @@ public com.google.cloud.filestore.v1beta1.DeleteBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.DeleteBackupRequest buildPartial() { - com.google.cloud.filestore.v1beta1.DeleteBackupRequest result = - new com.google.cloud.filestore.v1beta1.DeleteBackupRequest(this); + com.google.cloud.filestore.v1beta1.DeleteBackupRequest result = new com.google.cloud.filestore.v1beta1.DeleteBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -358,39 +324,38 @@ public com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.DeleteBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -398,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.DeleteBackupRequest other) { - if (other == com.google.cloud.filestore.v1beta1.DeleteBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.DeleteBackupRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -430,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string name = 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; @@ -480,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string name = 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 { @@ -505,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * - * 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. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string 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. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * - * 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); } @@ -585,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.DeleteBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.DeleteBackupRequest) private static final com.google.cloud.filestore.v1beta1.DeleteBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.DeleteBackupRequest(); } @@ -599,27 +541,27 @@ public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest getDefaultI 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.DeleteBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java new file mode 100644 index 000000000000..46bf045c3ce5 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface DeleteBackupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_id}/locations/{location}/backups/{backup_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_id}/locations/{location}/backups/{backup_id}`
+   * 
+ * + * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java similarity index 66% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java index 063230cacb7a..81af58cb45f6 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java @@ -1,86 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * DeleteInstanceRequest deletes an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteInstanceRequest} */ -public final class DeleteInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.DeleteInstanceRequest) DeleteInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteInstanceRequest.newBuilder() to construct. private DeleteInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,15 +99,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FORCE_FIELD_NUMBER = 2; private boolean force_; /** - * - * *
    * If set to true, any snapshots of the instance will also be deleted.
    * (Otherwise, the request will only work if the instance has no snapshots.)
    * 
* * bool force = 2; - * * @return The force. */ @java.lang.Override @@ -142,7 +113,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,7 +124,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,7 +145,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -184,16 +156,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest other = - (com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest other = (com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -208,143 +181,137 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( - java.nio.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.filestore.v1beta1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.DeleteInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * DeleteInstanceRequest deletes an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.DeleteInstanceRequest) com.google.cloud.filestore.v1beta1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -356,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -377,8 +344,7 @@ public com.google.cloud.filestore.v1beta1.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.DeleteInstanceRequest buildPartial() { - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest result = - new com.google.cloud.filestore.v1beta1.DeleteInstanceRequest(this); + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest result = new com.google.cloud.filestore.v1beta1.DeleteInstanceRequest(this); result.name_ = name_; result.force_ = force_; onBuilt(); @@ -389,39 +355,38 @@ public com.google.cloud.filestore.v1beta1.DeleteInstanceRequest 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.filestore.v1beta1.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -429,8 +394,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest other) { - if (other == com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -464,25 +428,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - force_ = input.readBool(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + force_ = input.readBool(); + + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -495,23 +456,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string name = 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; @@ -520,24 +477,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string name = 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 { @@ -545,86 +499,70 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * 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; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * If set to true, any snapshots of the instance will also be deleted.
      * (Otherwise, the request will only work if the instance has no snapshots.)
      * 
* * bool force = 2; - * * @return The force. */ @java.lang.Override @@ -632,45 +570,39 @@ public boolean getForce() { return force_; } /** - * - * *
      * If set to true, any snapshots of the instance will also be deleted.
      * (Otherwise, the request will only work if the instance has no snapshots.)
      * 
* * bool force = 2; - * * @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 snapshots of the instance will also be deleted.
      * (Otherwise, the request will only work if the instance has no snapshots.)
      * 
* * bool force = 2; - * * @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); } @@ -680,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.DeleteInstanceRequest) private static final com.google.cloud.filestore.v1beta1.DeleteInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.DeleteInstanceRequest(); } @@ -694,27 +626,27 @@ public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -729,4 +661,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java similarity index 50% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java index 2a6b8ee13512..16096d15f7d8 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java @@ -1,69 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface DeleteInstanceRequestOrBuilder - extends +public interface DeleteInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set to true, any snapshots of the instance will also be deleted.
    * (Otherwise, the request will only work if the instance has no snapshots.)
    * 
* * bool force = 2; - * * @return The force. */ boolean getForce(); diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java similarity index 64% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java index d08b5b49e5fe..f3fd2fed9f11 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java @@ -1,86 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * DeleteShareRequest deletes a share.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteShareRequest} */ -public final class DeleteShareRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteShareRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.DeleteShareRequest) DeleteShareRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteShareRequest.newBuilder() to construct. private DeleteShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteShareRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, - com.google.cloud.filestore.v1beta1.DeleteShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, com.google.cloud.filestore.v1beta1.DeleteShareRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The share resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The share resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.DeleteShareRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.DeleteShareRequest other = - (com.google.cloud.filestore.v1beta1.DeleteShareRequest) obj; + com.google.cloud.filestore.v1beta1.DeleteShareRequest other = (com.google.cloud.filestore.v1beta1.DeleteShareRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +161,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( - java.nio.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.filestore.v1beta1.DeleteShareRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.DeleteShareRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.DeleteShareRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.DeleteShareRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * DeleteShareRequest deletes a share.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteShareRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.DeleteShareRequest) com.google.cloud.filestore.v1beta1.DeleteShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, - com.google.cloud.filestore.v1beta1.DeleteShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, com.google.cloud.filestore.v1beta1.DeleteShareRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.DeleteShareRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; } @java.lang.Override @@ -347,8 +314,7 @@ public com.google.cloud.filestore.v1beta1.DeleteShareRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.DeleteShareRequest buildPartial() { - com.google.cloud.filestore.v1beta1.DeleteShareRequest result = - new com.google.cloud.filestore.v1beta1.DeleteShareRequest(this); + com.google.cloud.filestore.v1beta1.DeleteShareRequest result = new com.google.cloud.filestore.v1beta1.DeleteShareRequest(this); result.name_ = name_; onBuilt(); return result; @@ -358,39 +324,38 @@ public com.google.cloud.filestore.v1beta1.DeleteShareRequest 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.filestore.v1beta1.DeleteShareRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteShareRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteShareRequest)other); } else { super.mergeFrom(other); return this; @@ -398,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.DeleteShareRequest other) { - if (other == com.google.cloud.filestore.v1beta1.DeleteShareRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.DeleteShareRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -430,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
      * 
* - * - * string name = 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; @@ -480,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
      * 
* - * - * string name = 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 { @@ -505,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
      * 
* - * - * 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. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
      * 
* - * - * string 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. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
      * 
* - * - * 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); } @@ -585,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.DeleteShareRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.DeleteShareRequest) private static final com.google.cloud.filestore.v1beta1.DeleteShareRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.DeleteShareRequest(); } @@ -599,27 +541,27 @@ public static com.google.cloud.filestore.v1beta1.DeleteShareRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteShareRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.DeleteShareRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java new file mode 100644 index 000000000000..567d5af85793 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface DeleteShareRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
+   * 
+ * + * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java similarity index 64% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java index 3d893921cd50..c5a0e78ba9b7 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java @@ -1,86 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * DeleteSnapshotRequest deletes a snapshot.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteSnapshotRequest} */ -public final class DeleteSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) DeleteSnapshotRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSnapshotRequest.newBuilder() to construct. private DeleteSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSnapshotRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSnapshotRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The snapshot resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The snapshot resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest other = - (com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest) obj; + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest other = (com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +161,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( - java.nio.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.filestore.v1beta1.DeleteSnapshotRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.DeleteSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * DeleteSnapshotRequest deletes a snapshot.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteSnapshotRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) com.google.cloud.filestore.v1beta1.DeleteSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; } @java.lang.Override @@ -347,8 +314,7 @@ public com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest buildPartial() { - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest result = - new com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest(this); + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest result = new com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest(this); result.name_ = name_; onBuilt(); return result; @@ -358,39 +324,38 @@ public com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest 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.filestore.v1beta1.DeleteSnapshotRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest)other); } else { super.mergeFrom(other); return this; @@ -398,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest other) { - if (other == com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -430,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * - * string name = 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; @@ -480,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * - * string name = 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 { @@ -505,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * - * 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. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * - * string 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. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * - * 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); } @@ -585,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) private static final com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest(); } @@ -599,27 +541,27 @@ public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..cf7bb2e43c5b --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface DeleteSnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java similarity index 73% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java index 1d4be21945d2..9b3a6f9848f6 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * File share configuration for the instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.FileShareConfig} */ -public final class FileShareConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FileShareConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.FileShareConfig) FileShareConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FileShareConfig.newBuilder() to construct. private FileShareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FileShareConfig() { name_ = ""; nfsExportOptions_ = java.util.Collections.emptyList(); @@ -44,41 +26,37 @@ private FileShareConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FileShareConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.FileShareConfig.class, - com.google.cloud.filestore.v1beta1.FileShareConfig.Builder.class); + com.google.cloud.filestore.v1beta1.FileShareConfig.class, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SOURCE_BACKUP(9), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -94,29 +72,25 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 9: - return SOURCE_BACKUP; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 9: return SOURCE_BACKUP; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of the file share (must be 32 characters or less for
    * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -124,7 +98,6 @@ public SourceCase getSourceCase() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -133,15 +106,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the file share (must be 32 characters or less for
    * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -149,15 +121,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -168,15 +141,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CAPACITY_GB_FIELD_NUMBER = 2; private long capacityGb_; /** - * - * *
    * File share capacity in gigabytes (GB).
    * Filestore defines 1 GB as 1024^3 bytes.
    * 
* * int64 capacity_gb = 2; - * * @return The capacityGb. */ @java.lang.Override @@ -186,8 +156,6 @@ public long getCapacityGb() { public static final int SOURCE_BACKUP_FIELD_NUMBER = 9; /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -195,15 +163,12 @@ public long getCapacityGb() {
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ public boolean hasSourceBackup() { return sourceCase_ == 9; } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -211,7 +176,6 @@ public boolean hasSourceBackup() {
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ public java.lang.String getSourceBackup() { @@ -222,7 +186,8 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (sourceCase_ == 9) { source_ = s; @@ -231,8 +196,6 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -240,17 +203,18 @@ public java.lang.String getSourceBackup() {
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 9) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 9) { source_ = b; } @@ -263,8 +227,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { public static final int NFS_EXPORT_OPTIONS_FIELD_NUMBER = 8; private java.util.List nfsExportOptions_; /** - * - * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -273,13 +235,10 @@ public com.google.protobuf.ByteString getSourceBackupBytes() {
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    */
   @java.lang.Override
-  public java.util.List
-      getNfsExportOptionsList() {
+  public java.util.List getNfsExportOptionsList() {
     return nfsExportOptions_;
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -288,13 +247,11 @@ public com.google.protobuf.ByteString getSourceBackupBytes() {
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getNfsExportOptionsOrBuilderList() {
     return nfsExportOptions_;
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -307,8 +264,6 @@ public int getNfsExportOptionsCount() {
     return nfsExportOptions_.size();
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -321,8 +276,6 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(i
     return nfsExportOptions_.get(index);
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -337,7 +290,6 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExport
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -349,7 +301,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.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_);
     }
@@ -375,10 +328,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (capacityGb_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, capacityGb_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, capacityGb_);
     }
     for (int i = 0; i < nfsExportOptions_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, nfsExportOptions_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, nfsExportOptions_.get(i));
     }
     if (sourceCase_ == 9) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, source_);
@@ -391,21 +346,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.filestore.v1beta1.FileShareConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.filestore.v1beta1.FileShareConfig other =
-        (com.google.cloud.filestore.v1beta1.FileShareConfig) obj;
+    com.google.cloud.filestore.v1beta1.FileShareConfig other = (com.google.cloud.filestore.v1beta1.FileShareConfig) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (getCapacityGb() != other.getCapacityGb()) return false;
-    if (!getNfsExportOptionsList().equals(other.getNfsExportOptionsList())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (getCapacityGb()
+        != other.getCapacityGb()) return false;
+    if (!getNfsExportOptionsList()
+        .equals(other.getNfsExportOptionsList())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 9:
-        if (!getSourceBackup().equals(other.getSourceBackup())) return false;
+        if (!getSourceBackup()
+            .equals(other.getSourceBackup())) return false;
         break;
       case 0:
       default:
@@ -424,7 +382,8 @@ public int hashCode() {
     hash = (37 * hash) + NAME_FIELD_NUMBER;
     hash = (53 * hash) + getName().hashCode();
     hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getCapacityGb());
     if (getNfsExportOptionsCount() > 0) {
       hash = (37 * hash) + NFS_EXPORT_OPTIONS_FIELD_NUMBER;
       hash = (53 * hash) + getNfsExportOptionsList().hashCode();
@@ -443,135 +402,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
-      java.nio.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.filestore.v1beta1.FileShareConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.filestore.v1beta1.FileShareConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.filestore.v1beta1.FileShareConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.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.filestore.v1beta1.FileShareConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.filestore.v1beta1.FileShareConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * File share configuration for the instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.FileShareConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.FileShareConfig) com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.FileShareConfig.class, - com.google.cloud.filestore.v1beta1.FileShareConfig.Builder.class); + com.google.cloud.filestore.v1beta1.FileShareConfig.class, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.FileShareConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -592,9 +545,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; } @java.lang.Override @@ -613,8 +566,7 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.FileShareConfig buildPartial() { - com.google.cloud.filestore.v1beta1.FileShareConfig result = - new com.google.cloud.filestore.v1beta1.FileShareConfig(this); + com.google.cloud.filestore.v1beta1.FileShareConfig result = new com.google.cloud.filestore.v1beta1.FileShareConfig(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.capacityGb_ = capacityGb_; @@ -639,39 +591,38 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig 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.filestore.v1beta1.FileShareConfig) { - return mergeFrom((com.google.cloud.filestore.v1beta1.FileShareConfig) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.FileShareConfig)other); } else { super.mergeFrom(other); return this; @@ -679,8 +630,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.FileShareConfig other) { - if (other == com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -706,27 +656,24 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.FileShareConfig othe nfsExportOptionsBuilder_ = null; nfsExportOptions_ = other.nfsExportOptions_; bitField0_ = (bitField0_ & ~0x00000001); - nfsExportOptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNfsExportOptionsFieldBuilder() - : null; + nfsExportOptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNfsExportOptionsFieldBuilder() : null; } else { nfsExportOptionsBuilder_.addAllMessages(other.nfsExportOptions_); } } } switch (other.getSourceCase()) { - case SOURCE_BACKUP: - { - sourceCase_ = 9; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case SOURCE_BACKUP: { + sourceCase_ = 9; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -754,46 +701,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); + case 10: { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - capacityGb_ = input.readInt64(); + break; + } // case 10 + case 16: { + capacityGb_ = input.readInt64(); - break; - } // case 16 - case 66: - { - com.google.cloud.filestore.v1beta1.NfsExportOptions m = - input.readMessage( - com.google.cloud.filestore.v1beta1.NfsExportOptions.parser(), - extensionRegistry); - if (nfsExportOptionsBuilder_ == null) { - ensureNfsExportOptionsIsMutable(); - nfsExportOptions_.add(m); - } else { - nfsExportOptionsBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 9; - source_ = s; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 16 + case 66: { + com.google.cloud.filestore.v1beta1.NfsExportOptions m = + input.readMessage( + com.google.cloud.filestore.v1beta1.NfsExportOptions.parser(), + extensionRegistry); + if (nfsExportOptionsBuilder_ == null) { + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.add(m); + } else { + nfsExportOptionsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 9; + source_ = s; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -803,12 +745,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -822,8 +764,6 @@ public Builder clearSource() { private java.lang.Object name_ = ""; /** - * - * *
      * The name of the file share (must be 32 characters or less for
      * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -831,13 +771,13 @@ public Builder clearSource() {
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -846,8 +786,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the file share (must be 32 characters or less for
      * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -855,14 +793,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -870,8 +809,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the file share (must be 32 characters or less for
      * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -879,22 +816,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @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 file share (must be 32 characters or less for
      * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -902,18 +837,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the file share (must be 32 characters or less for
      * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -921,32 +853,29 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @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; } - private long capacityGb_; + private long capacityGb_ ; /** - * - * *
      * File share capacity in gigabytes (GB).
      * Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; - * * @return The capacityGb. */ @java.lang.Override @@ -954,46 +883,38 @@ public long getCapacityGb() { return capacityGb_; } /** - * - * *
      * File share capacity in gigabytes (GB).
      * Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; - * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** - * - * *
      * File share capacity in gigabytes (GB).
      * Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; - * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -1001,7 +922,6 @@ public Builder clearCapacityGb() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ @java.lang.Override @@ -1009,8 +929,6 @@ public boolean hasSourceBackup() { return sourceCase_ == 9; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -1018,7 +936,6 @@ public boolean hasSourceBackup() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ @java.lang.Override @@ -1028,7 +945,8 @@ public java.lang.String getSourceBackup() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (sourceCase_ == 9) { source_ = s; @@ -1039,8 +957,6 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -1048,18 +964,19 @@ public java.lang.String getSourceBackup() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 9) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 9) { source_ = b; } @@ -1069,8 +986,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -1078,22 +993,20 @@ public com.google.protobuf.ByteString getSourceBackupBytes() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup(java.lang.String value) { + public Builder setSourceBackup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 9; + throw new NullPointerException(); + } + sourceCase_ = 9; source_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -1101,7 +1014,6 @@ public Builder setSourceBackup(java.lang.String value) {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -1113,8 +1025,6 @@ public Builder clearSourceBackup() { return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -1122,15 +1032,15 @@ public Builder clearSourceBackup() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { + public Builder setSourceBackupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 9; source_ = value; onChanged(); @@ -1138,36 +1048,26 @@ public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { } private java.util.List nfsExportOptions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNfsExportOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nfsExportOptions_ = - new java.util.ArrayList( - nfsExportOptions_); + nfsExportOptions_ = new java.util.ArrayList(nfsExportOptions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, - com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, - com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> - nfsExportOptionsBuilder_; + com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> nfsExportOptionsBuilder_; /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ - public java.util.List - getNfsExportOptionsList() { + public java.util.List getNfsExportOptionsList() { if (nfsExportOptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(nfsExportOptions_); } else { @@ -1175,15 +1075,12 @@ private void ensureNfsExportOptionsIsMutable() { } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public int getNfsExportOptionsCount() { if (nfsExportOptionsBuilder_ == null) { @@ -1193,15 +1090,12 @@ public int getNfsExportOptionsCount() { } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(int index) { if (nfsExportOptionsBuilder_ == null) { @@ -1211,15 +1105,12 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(i } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder setNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions value) { @@ -1236,15 +1127,12 @@ public Builder setNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder setNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1258,15 +1146,12 @@ public Builder setNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder addNfsExportOptions(com.google.cloud.filestore.v1beta1.NfsExportOptions value) { if (nfsExportOptionsBuilder_ == null) { @@ -1282,15 +1167,12 @@ public Builder addNfsExportOptions(com.google.cloud.filestore.v1beta1.NfsExportO return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder addNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions value) { @@ -1307,15 +1189,12 @@ public Builder addNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder addNfsExportOptions( com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1329,15 +1208,12 @@ public Builder addNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder addNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1351,21 +1227,19 @@ public Builder addNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder addAllNfsExportOptions( java.lang.Iterable values) { if (nfsExportOptionsBuilder_ == null) { ensureNfsExportOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsExportOptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nfsExportOptions_); onChanged(); } else { nfsExportOptionsBuilder_.addAllMessages(values); @@ -1373,15 +1247,12 @@ public Builder addAllNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder clearNfsExportOptions() { if (nfsExportOptionsBuilder_ == null) { @@ -1394,15 +1265,12 @@ public Builder clearNfsExportOptions() { return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder removeNfsExportOptions(int index) { if (nfsExportOptionsBuilder_ == null) { @@ -1415,52 +1283,42 @@ public Builder removeNfsExportOptions(int index) { return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder getNfsExportOptionsBuilder( int index) { return getNfsExportOptionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ - public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder - getNfsExportOptionsOrBuilder(int index) { + public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder( + int index) { if (nfsExportOptionsBuilder_ == null) { - return nfsExportOptions_.get(index); - } else { + return nfsExportOptions_.get(index); } else { return nfsExportOptionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ - public java.util.List - getNfsExportOptionsOrBuilderList() { + public java.util.List + getNfsExportOptionsOrBuilderList() { if (nfsExportOptionsBuilder_ != null) { return nfsExportOptionsBuilder_.getMessageOrBuilderList(); } else { @@ -1468,65 +1326,48 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder getNfsExportO } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ - public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder - addNfsExportOptionsBuilder() { - return getNfsExportOptionsFieldBuilder() - .addBuilder(com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); + public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportOptionsBuilder() { + return getNfsExportOptionsFieldBuilder().addBuilder( + com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportOptionsBuilder( int index) { - return getNfsExportOptionsFieldBuilder() - .addBuilder( - index, com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); + return getNfsExportOptionsFieldBuilder().addBuilder( + index, com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ - public java.util.List - getNfsExportOptionsBuilderList() { + public java.util.List + getNfsExportOptionsBuilderList() { return getNfsExportOptionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, - com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, - com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> + com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> getNfsExportOptionsFieldBuilder() { if (nfsExportOptionsBuilder_ == null) { - nfsExportOptionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, - com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, - com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder>( + nfsExportOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder>( nfsExportOptions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1535,9 +1376,9 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportO } return nfsExportOptionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1547,12 +1388,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.FileShareConfig) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.FileShareConfig) private static final com.google.cloud.filestore.v1beta1.FileShareConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.FileShareConfig(); } @@ -1561,27 +1402,27 @@ public static com.google.cloud.filestore.v1beta1.FileShareConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FileShareConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileShareConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1596,4 +1437,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.FileShareConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java similarity index 80% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java index a2968dd626bf..d73700e98095 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface FileShareConfigOrBuilder - extends +public interface FileShareConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.FileShareConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the file share (must be 32 characters or less for
    * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -33,13 +15,10 @@ public interface FileShareConfigOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the file share (must be 32 characters or less for
    * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -47,28 +26,23 @@ public interface FileShareConfigOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * File share capacity in gigabytes (GB).
    * Filestore defines 1 GB as 1024^3 bytes.
    * 
* * int64 capacity_gb = 2; - * * @return The capacityGb. */ long getCapacityGb(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -76,13 +50,10 @@ public interface FileShareConfigOrBuilder
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ boolean hasSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -90,13 +61,10 @@ public interface FileShareConfigOrBuilder
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -104,14 +72,12 @@ public interface FileShareConfigOrBuilder
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString getSourceBackupBytes(); + com.google.protobuf.ByteString + getSourceBackupBytes(); /** - * - * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -119,10 +85,9 @@ public interface FileShareConfigOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    */
-  java.util.List getNfsExportOptionsList();
+  java.util.List 
+      getNfsExportOptionsList();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -132,8 +97,6 @@ public interface FileShareConfigOrBuilder
    */
   com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(int index);
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -143,8 +106,6 @@ public interface FileShareConfigOrBuilder
    */
   int getNfsExportOptionsCount();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -152,11 +113,9 @@ public interface FileShareConfigOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    */
-  java.util.List
+  java.util.List 
       getNfsExportOptionsOrBuilderList();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
similarity index 64%
rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
index 6f586fcba132..005a7cc4e2e8 100644
--- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
+++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
@@ -1,86 +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/filestore/v1beta1/cloud_filestore_service.proto
 
 package com.google.cloud.filestore.v1beta1;
 
 /**
- *
- *
  * 
  * GetBackupRequest gets the state of a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetBackupRequest.class, - com.google.cloud.filestore.v1beta1.GetBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetBackupRequest.class, com.google.cloud.filestore.v1beta1.GetBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.GetBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.GetBackupRequest other = - (com.google.cloud.filestore.v1beta1.GetBackupRequest) obj; + com.google.cloud.filestore.v1beta1.GetBackupRequest other = (com.google.cloud.filestore.v1beta1.GetBackupRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,135 +161,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom( - java.nio.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.filestore.v1beta1.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.filestore.v1beta1.GetBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.GetBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.GetBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.GetBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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; } /** - * - * *
    * GetBackupRequest gets the state of a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.GetBackupRequest) com.google.cloud.filestore.v1beta1.GetBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetBackupRequest.class, - com.google.cloud.filestore.v1beta1.GetBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetBackupRequest.class, com.google.cloud.filestore.v1beta1.GetBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.GetBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; } @java.lang.Override @@ -346,8 +314,7 @@ public com.google.cloud.filestore.v1beta1.GetBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.GetBackupRequest buildPartial() { - com.google.cloud.filestore.v1beta1.GetBackupRequest result = - new com.google.cloud.filestore.v1beta1.GetBackupRequest(this); + com.google.cloud.filestore.v1beta1.GetBackupRequest result = new com.google.cloud.filestore.v1beta1.GetBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,39 +324,38 @@ public com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.GetBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.GetBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.GetBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -397,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.GetBackupRequest other) { - if (other == com.google.cloud.filestore.v1beta1.GetBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.GetBackupRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -429,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -454,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string name = 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; @@ -479,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string name = 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 { @@ -504,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * 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. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string 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. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * 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); } @@ -584,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.GetBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.GetBackupRequest) private static final com.google.cloud.filestore.v1beta1.GetBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.GetBackupRequest(); } @@ -598,27 +541,27 @@ public static com.google.cloud.filestore.v1beta1.GetBackupRequest getDefaultInst 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.GetBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java new file mode 100644 index 000000000000..a64f2b9d2fdb --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface GetBackupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
+   * 
+ * + * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java similarity index 64% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java index 437ae7c91d16..61ab442b4faf 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java @@ -1,86 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * GetInstanceRequest gets the state of an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetInstanceRequest} */ -public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.GetInstanceRequest) GetInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, - com.google.cloud.filestore.v1beta1.GetInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, com.google.cloud.filestore.v1beta1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.GetInstanceRequest other = - (com.google.cloud.filestore.v1beta1.GetInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.GetInstanceRequest other = (com.google.cloud.filestore.v1beta1.GetInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +161,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( - java.nio.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.filestore.v1beta1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.GetInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * GetInstanceRequest gets the state of an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.GetInstanceRequest) com.google.cloud.filestore.v1beta1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, - com.google.cloud.filestore.v1beta1.GetInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, com.google.cloud.filestore.v1beta1.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.GetInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -347,8 +314,7 @@ public com.google.cloud.filestore.v1beta1.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.GetInstanceRequest buildPartial() { - com.google.cloud.filestore.v1beta1.GetInstanceRequest result = - new com.google.cloud.filestore.v1beta1.GetInstanceRequest(this); + com.google.cloud.filestore.v1beta1.GetInstanceRequest result = new com.google.cloud.filestore.v1beta1.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -358,39 +324,38 @@ public com.google.cloud.filestore.v1beta1.GetInstanceRequest 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.filestore.v1beta1.GetInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.GetInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.GetInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -398,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.GetInstanceRequest other) { - if (other == com.google.cloud.filestore.v1beta1.GetInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.GetInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -430,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string name = 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; @@ -480,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string name = 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 { @@ -505,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * 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); } @@ -585,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.GetInstanceRequest) private static final com.google.cloud.filestore.v1beta1.GetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.GetInstanceRequest(); } @@ -599,27 +541,27 @@ public static com.google.cloud.filestore.v1beta1.GetInstanceRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..80e191742978 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface GetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java similarity index 64% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java index 2dc7237ecde9..3aac1d4a2970 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java @@ -1,86 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * GetShareRequest gets the state of a share.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetShareRequest} */ -public final class GetShareRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetShareRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.GetShareRequest) GetShareRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetShareRequest.newBuilder() to construct. private GetShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetShareRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetShareRequest.class, - com.google.cloud.filestore.v1beta1.GetShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetShareRequest.class, com.google.cloud.filestore.v1beta1.GetShareRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The share resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The share resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.GetShareRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.GetShareRequest other = - (com.google.cloud.filestore.v1beta1.GetShareRequest) obj; + com.google.cloud.filestore.v1beta1.GetShareRequest other = (com.google.cloud.filestore.v1beta1.GetShareRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,135 +161,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( - java.nio.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.filestore.v1beta1.GetShareRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.GetShareRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetShareRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.GetShareRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.GetShareRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * GetShareRequest gets the state of a share.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetShareRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.GetShareRequest) com.google.cloud.filestore.v1beta1.GetShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetShareRequest.class, - com.google.cloud.filestore.v1beta1.GetShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetShareRequest.class, com.google.cloud.filestore.v1beta1.GetShareRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.GetShareRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; } @java.lang.Override @@ -346,8 +314,7 @@ public com.google.cloud.filestore.v1beta1.GetShareRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.GetShareRequest buildPartial() { - com.google.cloud.filestore.v1beta1.GetShareRequest result = - new com.google.cloud.filestore.v1beta1.GetShareRequest(this); + com.google.cloud.filestore.v1beta1.GetShareRequest result = new com.google.cloud.filestore.v1beta1.GetShareRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,39 +324,38 @@ public com.google.cloud.filestore.v1beta1.GetShareRequest 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.filestore.v1beta1.GetShareRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.GetShareRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.GetShareRequest)other); } else { super.mergeFrom(other); return this; @@ -397,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.GetShareRequest other) { - if (other == com.google.cloud.filestore.v1beta1.GetShareRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.GetShareRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -429,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -454,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
      * 
* - * - * string name = 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; @@ -479,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
      * 
* - * - * string name = 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 { @@ -504,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
      * 
* - * - * 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. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
      * 
* - * - * string 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. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
      * 
* - * - * 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); } @@ -584,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.GetShareRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.GetShareRequest) private static final com.google.cloud.filestore.v1beta1.GetShareRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.GetShareRequest(); } @@ -598,27 +541,27 @@ public static com.google.cloud.filestore.v1beta1.GetShareRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetShareRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.GetShareRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java new file mode 100644 index 000000000000..00fd3ccd7c96 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface GetShareRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
+   * 
+ * + * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java similarity index 64% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java index b000c73b5390..55eda1354990 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java @@ -1,86 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * GetSnapshotRequest gets the state of a snapshot.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetSnapshotRequest} */ -public final class GetSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.GetSnapshotRequest) GetSnapshotRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSnapshotRequest.newBuilder() to construct. private GetSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSnapshotRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSnapshotRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, - com.google.cloud.filestore.v1beta1.GetSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, com.google.cloud.filestore.v1beta1.GetSnapshotRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The snapshot resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The snapshot resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.GetSnapshotRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.GetSnapshotRequest other = - (com.google.cloud.filestore.v1beta1.GetSnapshotRequest) obj; + com.google.cloud.filestore.v1beta1.GetSnapshotRequest other = (com.google.cloud.filestore.v1beta1.GetSnapshotRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +161,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( - java.nio.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.filestore.v1beta1.GetSnapshotRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.GetSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.GetSnapshotRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.GetSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * GetSnapshotRequest gets the state of a snapshot.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetSnapshotRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.GetSnapshotRequest) com.google.cloud.filestore.v1beta1.GetSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, - com.google.cloud.filestore.v1beta1.GetSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, com.google.cloud.filestore.v1beta1.GetSnapshotRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.GetSnapshotRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; } @java.lang.Override @@ -347,8 +314,7 @@ public com.google.cloud.filestore.v1beta1.GetSnapshotRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.GetSnapshotRequest buildPartial() { - com.google.cloud.filestore.v1beta1.GetSnapshotRequest result = - new com.google.cloud.filestore.v1beta1.GetSnapshotRequest(this); + com.google.cloud.filestore.v1beta1.GetSnapshotRequest result = new com.google.cloud.filestore.v1beta1.GetSnapshotRequest(this); result.name_ = name_; onBuilt(); return result; @@ -358,39 +324,38 @@ public com.google.cloud.filestore.v1beta1.GetSnapshotRequest 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.filestore.v1beta1.GetSnapshotRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.GetSnapshotRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.GetSnapshotRequest)other); } else { super.mergeFrom(other); return this; @@ -398,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.GetSnapshotRequest other) { - if (other == com.google.cloud.filestore.v1beta1.GetSnapshotRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.GetSnapshotRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -430,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * - * string name = 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; @@ -480,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * - * string name = 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 { @@ -505,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * - * 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. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * - * string 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. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * - * 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); } @@ -585,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.GetSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.GetSnapshotRequest) private static final com.google.cloud.filestore.v1beta1.GetSnapshotRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.GetSnapshotRequest(); } @@ -599,27 +541,27 @@ public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.GetSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..44969c0e9600 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface GetSnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java similarity index 72% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java index fb2106bcbe8c..d2246f7d48a1 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * A Filestore instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Instance} */ -public final class Instance extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Instance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.Instance) InstanceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Instance() { name_ = ""; description_ = ""; @@ -52,54 +34,51 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_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.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Instance.class, - com.google.cloud.filestore.v1beta1.Instance.Builder.class); + com.google.cloud.filestore.v1beta1.Instance.class, com.google.cloud.filestore.v1beta1.Instance.Builder.class); } /** - * - * *
    * The instance state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Instance.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State not set.
      * 
@@ -108,8 +87,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The instance is being created.
      * 
@@ -118,8 +95,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The instance is available for use.
      * 
@@ -128,8 +103,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
      * Work is being done on the instance. You can get further details from the
      * `statusMessage` field of the `Instance` resource.
@@ -139,8 +112,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     REPAIRING(3),
     /**
-     *
-     *
      * 
      * The instance is shutting down.
      * 
@@ -149,8 +120,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
      * The instance is experiencing an issue and might be unusable. You can get
      * further details from the `statusMessage` field of the `Instance`
@@ -161,8 +130,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ERROR(6),
     /**
-     *
-     *
      * 
      * The instance is restoring a snapshot or backup to an existing file share
      * and may be unusable during this time.
@@ -172,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESTORING(7),
     /**
-     *
-     *
      * 
      * The instance is suspended. You can get further details from
      * the `suspension_reasons` field of the `Instance` resource.
@@ -183,8 +148,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUSPENDED(8),
     /**
-     *
-     *
      * 
      * The instance is reverting to a snapshot.
      * 
@@ -193,8 +156,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ REVERTING(9), /** - * - * *
      * The instance is in the process of becoming suspended.
      * 
@@ -203,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUSPENDING(10), /** - * - * *
      * The instance is in the process of becoming active.
      * 
@@ -216,8 +175,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * State not set.
      * 
@@ -226,8 +183,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The instance is being created.
      * 
@@ -236,8 +191,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The instance is available for use.
      * 
@@ -246,8 +199,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
      * Work is being done on the instance. You can get further details from the
      * `statusMessage` field of the `Instance` resource.
@@ -257,8 +208,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REPAIRING_VALUE = 3;
     /**
-     *
-     *
      * 
      * The instance is shutting down.
      * 
@@ -267,8 +216,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
      * The instance is experiencing an issue and might be unusable. You can get
      * further details from the `statusMessage` field of the `Instance`
@@ -279,8 +226,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_VALUE = 6;
     /**
-     *
-     *
      * 
      * The instance is restoring a snapshot or backup to an existing file share
      * and may be unusable during this time.
@@ -290,8 +235,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESTORING_VALUE = 7;
     /**
-     *
-     *
      * 
      * The instance is suspended. You can get further details from
      * the `suspension_reasons` field of the `Instance` resource.
@@ -301,8 +244,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUSPENDED_VALUE = 8;
     /**
-     *
-     *
      * 
      * The instance is reverting to a snapshot.
      * 
@@ -311,8 +252,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REVERTING_VALUE = 9; /** - * - * *
      * The instance is in the process of becoming suspended.
      * 
@@ -321,8 +260,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUSPENDING_VALUE = 10; /** - * - * *
      * The instance is in the process of becoming active.
      * 
@@ -331,6 +268,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESUMING_VALUE = 11; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -355,65 +293,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 READY; - case 3: - return REPAIRING; - case 4: - return DELETING; - case 6: - return ERROR; - case 7: - return RESTORING; - case 8: - return SUSPENDED; - case 9: - return REVERTING; - case 10: - return SUSPENDING; - case 11: - return RESUMING; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 3: return REPAIRING; + case 4: return DELETING; + case 6: return ERROR; + case 7: return RESTORING; + case 8: return SUSPENDED; + case 9: return REVERTING; + case 10: return SUSPENDING; + case 11: return RESUMING; + 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); + } + }; - 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.filestore.v1beta1.Instance.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; @@ -431,18 +361,15 @@ private State(int value) { } /** - * - * *
    * Available service tiers.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Instance.Tier} */ - public enum Tier implements com.google.protobuf.ProtocolMessageEnum { + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -451,8 +378,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ TIER_UNSPECIFIED(0), /** - * - * *
      * STANDARD tier. BASIC_HDD is the preferred term for this tier.
      * 
@@ -461,8 +386,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ STANDARD(1), /** - * - * *
      * PREMIUM tier. BASIC_SSD is the preferred term for this tier.
      * 
@@ -471,8 +394,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ PREMIUM(2), /** - * - * *
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_HDD is an alias for STANDARD Tier, offering economical
@@ -483,8 +404,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     BASIC_HDD(3),
     /**
-     *
-     *
      * 
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_SSD is an alias for PREMIUM Tier, and offers improved
@@ -495,8 +414,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     BASIC_SSD(4),
     /**
-     *
-     *
      * 
      * HIGH_SCALE instances offer expanded capacity and performance scaling
      * capabilities.
@@ -506,8 +423,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     HIGH_SCALE_SSD(6),
     /**
-     *
-     *
      * 
      * ENTERPRISE instances offer the features and availability needed for
      * mission-critical workloads.
@@ -520,8 +435,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not set.
      * 
@@ -530,8 +443,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * STANDARD tier. BASIC_HDD is the preferred term for this tier.
      * 
@@ -540,8 +451,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STANDARD_VALUE = 1; /** - * - * *
      * PREMIUM tier. BASIC_SSD is the preferred term for this tier.
      * 
@@ -550,8 +459,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PREMIUM_VALUE = 2; /** - * - * *
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_HDD is an alias for STANDARD Tier, offering economical
@@ -562,8 +469,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int BASIC_HDD_VALUE = 3;
     /**
-     *
-     *
      * 
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_SSD is an alias for PREMIUM Tier, and offers improved
@@ -574,8 +479,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int BASIC_SSD_VALUE = 4;
     /**
-     *
-     *
      * 
      * HIGH_SCALE instances offer expanded capacity and performance scaling
      * capabilities.
@@ -585,8 +488,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int HIGH_SCALE_SSD_VALUE = 6;
     /**
-     *
-     *
      * 
      * ENTERPRISE instances offer the features and availability needed for
      * mission-critical workloads.
@@ -596,6 +497,7 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ENTERPRISE_VALUE = 7;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -620,57 +522,53 @@ public static Tier valueOf(int value) {
      */
     public static Tier forNumber(int value) {
       switch (value) {
-        case 0:
-          return TIER_UNSPECIFIED;
-        case 1:
-          return STANDARD;
-        case 2:
-          return PREMIUM;
-        case 3:
-          return BASIC_HDD;
-        case 4:
-          return BASIC_SSD;
-        case 6:
-          return HIGH_SCALE_SSD;
-        case 7:
-          return ENTERPRISE;
-        default:
-          return null;
+        case 0: return TIER_UNSPECIFIED;
+        case 1: return STANDARD;
+        case 2: return PREMIUM;
+        case 3: return BASIC_HDD;
+        case 4: return BASIC_SSD;
+        case 6: return HIGH_SCALE_SSD;
+        case 7: return ENTERPRISE;
+        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<
+        Tier> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Tier findValueByNumber(int number) {
+              return Tier.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Tier findValueByNumber(int number) {
-            return Tier.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.filestore.v1beta1.Instance.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Tier[] VALUES = values();
 
-    public static Tier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Tier 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;
@@ -688,18 +586,15 @@ private Tier(int value) {
   }
 
   /**
-   *
-   *
    * 
    * SuspensionReason contains the possible reasons for a suspension.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Instance.SuspensionReason} */ - public enum SuspensionReason implements com.google.protobuf.ProtocolMessageEnum { + public enum SuspensionReason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -708,8 +603,6 @@ public enum SuspensionReason implements com.google.protobuf.ProtocolMessageEnum */ SUSPENSION_REASON_UNSPECIFIED(0), /** - * - * *
      * The KMS key used by the instance is either revoked or denied access to.
      * 
@@ -721,8 +614,6 @@ public enum SuspensionReason implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Not set.
      * 
@@ -731,8 +622,6 @@ public enum SuspensionReason implements com.google.protobuf.ProtocolMessageEnum */ public static final int SUSPENSION_REASON_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The KMS key used by the instance is either revoked or denied access to.
      * 
@@ -741,6 +630,7 @@ public enum SuspensionReason implements com.google.protobuf.ProtocolMessageEnum */ public static final int KMS_KEY_ISSUE_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -765,40 +655,38 @@ public static SuspensionReason valueOf(int value) { */ public static SuspensionReason forNumber(int value) { switch (value) { - case 0: - return SUSPENSION_REASON_UNSPECIFIED; - case 1: - return KMS_KEY_ISSUE; - default: - return null; + case 0: return SUSPENSION_REASON_UNSPECIFIED; + case 1: return KMS_KEY_ISSUE; + 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< + SuspensionReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SuspensionReason findValueByNumber(int number) { + return SuspensionReason.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SuspensionReason findValueByNumber(int number) { - return SuspensionReason.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.filestore.v1beta1.Instance.getDescriptor().getEnumTypes().get(2); } @@ -807,7 +695,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static SuspensionReason 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; @@ -827,15 +716,12 @@ private SuspensionReason(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -844,30 +730,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 resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -878,14 +764,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -894,29 +777,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; } } /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @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 { @@ -927,54 +810,38 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** - * - * *
    * Output only. The instance state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.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 instance state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.Instance.State getState() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.State result = - com.google.cloud.filestore.v1beta1.Instance.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Instance.State result = com.google.cloud.filestore.v1beta1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Instance.State.UNRECOGNIZED : result; } public static final int STATUS_MESSAGE_FIELD_NUMBER = 6; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -983,29 +850,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. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.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 { @@ -1016,15 +883,11 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1032,15 +895,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1048,14 +907,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1065,57 +921,49 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int TIER_FIELD_NUMBER = 8; private int tier_; /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @return The tier. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.Instance.Tier getTier() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.Tier result = - com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(tier_); + com.google.cloud.filestore.v1beta1.Instance.Tier result = com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED : result; } 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.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Instance_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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_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_; } @@ -1124,30 +972,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * 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(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -1155,12 +1001,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -1168,16 +1013,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; } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -1185,11 +1030,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(); } @@ -1199,8 +1045,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int FILE_SHARES_FIELD_NUMBER = 10; private java.util.List fileShares_; /** - * - * *
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1213,8 +1057,6 @@ public java.util.List getFil
     return fileShares_;
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1223,13 +1065,11 @@ public java.util.List getFil
    * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getFileSharesOrBuilderList() {
     return fileShares_;
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1242,8 +1082,6 @@ public int getFileSharesCount() {
     return fileShares_.size();
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1256,8 +1094,6 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig getFileShares(int inde
     return fileShares_.get(index);
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1274,8 +1110,6 @@ public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileShares
   public static final int NETWORKS_FIELD_NUMBER = 11;
   private java.util.List networks_;
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1288,8 +1122,6 @@ public java.util.List getNetwo
     return networks_;
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1298,13 +1130,11 @@ public java.util.List getNetwo
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getNetworksOrBuilderList() {
     return networks_;
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1317,8 +1147,6 @@ public int getNetworksCount() {
     return networks_.size();
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1331,8 +1159,6 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index) {
     return networks_.get(index);
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1341,22 +1167,20 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index) {
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(int index) {
+  public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(
+      int index) {
     return networks_.get(index);
   }
 
   public static final int ETAG_FIELD_NUMBER = 12;
   private volatile java.lang.Object etag_;
   /**
-   *
-   *
    * 
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @return The etag. */ @java.lang.Override @@ -1365,30 +1189,30 @@ 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; } } /** - * - * *
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @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 { @@ -1399,16 +1223,11 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int SATISFIES_PZS_FIELD_NUMBER = 13; private com.google.protobuf.BoolValue satisfiesPzs_; /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ @java.lang.Override @@ -1416,34 +1235,23 @@ public boolean hasSatisfiesPzs() { return satisfiesPzs_ != null; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ @java.lang.Override public com.google.protobuf.BoolValue getSatisfiesPzs() { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { @@ -1453,14 +1261,11 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { public static final int KMS_KEY_NAME_FIELD_NUMBER = 14; private volatile java.lang.Object kmsKeyName_; /** - * - * *
    * KMS key name used for data encryption.
    * 
* * string kms_key_name = 14; - * * @return The kmsKeyName. */ @java.lang.Override @@ -1469,29 +1274,29 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** - * - * *
    * KMS key name used for data encryption.
    * 
* * string kms_key_name = 14; - * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -1502,51 +1307,34 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { public static final int SUSPENSION_REASONS_FIELD_NUMBER = 15; private java.util.List suspensionReasons_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason> - suspensionReasons_converter_ = + java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason> suspensionReasons_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>() { - public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason convert( - java.lang.Integer from) { + public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.SuspensionReason result = - com.google.cloud.filestore.v1beta1.Instance.SuspensionReason.valueOf(from); - return result == null - ? com.google.cloud.filestore.v1beta1.Instance.SuspensionReason.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.Instance.SuspensionReason result = com.google.cloud.filestore.v1beta1.Instance.SuspensionReason.valueOf(from); + return result == null ? com.google.cloud.filestore.v1beta1.Instance.SuspensionReason.UNRECOGNIZED : result; } }; /** - * - * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the suspensionReasons. */ @java.lang.Override - public java.util.List - getSuspensionReasonsList() { + public java.util.List getSuspensionReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>( - suspensionReasons_, suspensionReasons_converter_); + java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>(suspensionReasons_, suspensionReasons_converter_); } /** - * - * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of suspensionReasons. */ @java.lang.Override @@ -1554,52 +1342,37 @@ public int getSuspensionReasonsCount() { return suspensionReasons_.size(); } /** - * - * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The suspensionReasons at the given index. */ @java.lang.Override - public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons( - int index) { + public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons(int index) { return suspensionReasons_converter_.convert(suspensionReasons_.get(index)); } /** - * - * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for suspensionReasons. */ @java.lang.Override - public java.util.List getSuspensionReasonsValueList() { + public java.util.List + getSuspensionReasonsValueList() { return suspensionReasons_; } /** - * - * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The enum numeric value on the wire of suspensionReasons at the given index. */ @@ -1607,20 +1380,16 @@ public java.util.List getSuspensionReasonsValueList() { public int getSuspensionReasonsValue(int index) { return suspensionReasons_.get(index); } - private int suspensionReasonsMemoizedSerializedSize; public static final int MAX_CAPACITY_GB_FIELD_NUMBER = 16; private long maxCapacityGb_; /** - * - * *
    * Output only. The max capacity of the instance.
    * 
* * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The maxCapacityGb. */ @java.lang.Override @@ -1631,14 +1400,11 @@ public long getMaxCapacityGb() { public static final int CAPACITY_STEP_SIZE_GB_FIELD_NUMBER = 17; private long capacityStepSizeGb_; /** - * - * *
    * Output only. The increase/decrease capacity step size.
    * 
* * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityStepSizeGb. */ @java.lang.Override @@ -1649,14 +1415,11 @@ public long getCapacityStepSizeGb() { public static final int MAX_SHARE_COUNT_FIELD_NUMBER = 18; private long maxShareCount_; /** - * - * *
    * Output only. The max number of shares allowed.
    * 
* * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The maxShareCount. */ @java.lang.Override @@ -1667,8 +1430,6 @@ public long getMaxShareCount() { public static final int CAPACITY_GB_FIELD_NUMBER = 19; private long capacityGb_; /** - * - * *
    * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
    * This capacity can be increased up to `max_capacity_gb` GB in multipliers
@@ -1676,7 +1437,6 @@ public long getMaxShareCount() {
    * 
* * int64 capacity_gb = 19; - * * @return The capacityGb. */ @java.lang.Override @@ -1686,9 +1446,7 @@ public long getCapacityGb() { public static final int MULTI_SHARE_ENABLED_FIELD_NUMBER = 20; private boolean multiShareEnabled_; - /** - * - * + /** *
    * Indicates whether this instance uses a multi-share configuration with which
    * it can have more than one file-share or none at all. File-shares are added,
@@ -1696,7 +1454,6 @@ public long getCapacityGb() {
    * 
* * bool multi_share_enabled = 20; - * * @return The multiShareEnabled. */ @java.lang.Override @@ -1705,7 +1462,6 @@ public boolean getMultiShareEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1717,7 +1473,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); @@ -1737,8 +1494,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (tier_ != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(8, tier_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 9); for (int i = 0; i < fileShares_.size(); i++) { output.writeMessage(10, fileShares_.get(i)); } @@ -1792,38 +1553,44 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1beta1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, statusMessage_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreateTime()); } if (tier_ != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, tier_); - } - 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 + .computeEnumSize(8, tier_); + } + 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__); } for (int i = 0; i < fileShares_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, fileShares_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, fileShares_.get(i)); } for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, networks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etag_); } if (satisfiesPzs_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSatisfiesPzs()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getSatisfiesPzs()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, kmsKeyName_); @@ -1831,30 +1598,34 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < suspensionReasons_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(suspensionReasons_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(suspensionReasons_.get(i)); } size += dataSize; - if (!getSuspensionReasonsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - suspensionReasonsMemoizedSerializedSize = dataSize; + if (!getSuspensionReasonsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }suspensionReasonsMemoizedSerializedSize = dataSize; } if (maxCapacityGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(16, maxCapacityGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(16, maxCapacityGb_); } if (capacityStepSizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(17, capacityStepSizeGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(17, capacityStepSizeGb_); } if (maxShareCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(18, maxShareCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(18, maxShareCount_); } if (capacityGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(19, capacityGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(19, capacityGb_); } if (multiShareEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, multiShareEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(20, multiShareEnabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1864,38 +1635,52 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.Instance)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.Instance other = - (com.google.cloud.filestore.v1beta1.Instance) obj; + com.google.cloud.filestore.v1beta1.Instance other = (com.google.cloud.filestore.v1beta1.Instance) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) 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 (tier_ != other.tier_) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getFileSharesList().equals(other.getFileSharesList())) return false; - if (!getNetworksList().equals(other.getNetworksList())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getFileSharesList() + .equals(other.getFileSharesList())) return false; + if (!getNetworksList() + .equals(other.getNetworksList())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { - if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; + if (!getSatisfiesPzs() + .equals(other.getSatisfiesPzs())) return false; } - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; if (!suspensionReasons_.equals(other.suspensionReasons_)) return false; - if (getMaxCapacityGb() != other.getMaxCapacityGb()) return false; - if (getCapacityStepSizeGb() != other.getCapacityStepSizeGb()) return false; - if (getMaxShareCount() != other.getMaxShareCount()) return false; - if (getCapacityGb() != other.getCapacityGb()) return false; - if (getMultiShareEnabled() != other.getMultiShareEnabled()) return false; + if (getMaxCapacityGb() + != other.getMaxCapacityGb()) return false; + if (getCapacityStepSizeGb() + != other.getCapacityStepSizeGb()) return false; + if (getMaxShareCount() + != other.getMaxShareCount()) return false; + if (getCapacityGb() + != other.getCapacityGb()) return false; + if (getMultiShareEnabled() + != other.getMultiShareEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1946,170 +1731,171 @@ public int hashCode() { hash = (53 * hash) + suspensionReasons_.hashCode(); } hash = (37 * hash) + MAX_CAPACITY_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxCapacityGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxCapacityGb()); hash = (37 * hash) + CAPACITY_STEP_SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityStepSizeGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCapacityStepSizeGb()); hash = (37 * hash) + MAX_SHARE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxShareCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxShareCount()); hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCapacityGb()); hash = (37 * hash) + MULTI_SHARE_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultiShareEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMultiShareEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1beta1.Instance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom(java.io.InputStream input) 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.filestore.v1beta1.Instance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.Instance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.Instance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Instance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.Instance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Filestore instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Instance} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.Instance) com.google.cloud.filestore.v1beta1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_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.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Instance.class, - com.google.cloud.filestore.v1beta1.Instance.Builder.class); + com.google.cloud.filestore.v1beta1.Instance.class, com.google.cloud.filestore.v1beta1.Instance.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.Instance.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2170,9 +1956,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; } @java.lang.Override @@ -2191,8 +1977,7 @@ public com.google.cloud.filestore.v1beta1.Instance build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance buildPartial() { - com.google.cloud.filestore.v1beta1.Instance result = - new com.google.cloud.filestore.v1beta1.Instance(this); + com.google.cloud.filestore.v1beta1.Instance result = new com.google.cloud.filestore.v1beta1.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -2249,39 +2034,38 @@ public com.google.cloud.filestore.v1beta1.Instance 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.filestore.v1beta1.Instance) { - return mergeFrom((com.google.cloud.filestore.v1beta1.Instance) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.Instance)other); } else { super.mergeFrom(other); return this; @@ -2311,7 +2095,8 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Instance other) { if (other.tier_ != 0) { setTierValue(other.getTierValue()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (fileSharesBuilder_ == null) { if (!other.fileShares_.isEmpty()) { if (fileShares_.isEmpty()) { @@ -2330,10 +2115,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Instance other) { fileSharesBuilder_ = null; fileShares_ = other.fileShares_; bitField0_ = (bitField0_ & ~0x00000002); - fileSharesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFileSharesFieldBuilder() - : null; + fileSharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFileSharesFieldBuilder() : null; } else { fileSharesBuilder_.addAllMessages(other.fileShares_); } @@ -2357,10 +2141,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Instance other) { networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000004); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNetworksFieldBuilder() - : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworksFieldBuilder() : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -2428,155 +2211,137 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 40: - { - state_ = input.readEnum(); - - break; - } // case 40 - case 50: - { - statusMessage_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 64: - { - tier_ = input.readEnum(); - - break; - } // case 64 - case 74: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 74 - case 82: - { - com.google.cloud.filestore.v1beta1.FileShareConfig m = - input.readMessage( - com.google.cloud.filestore.v1beta1.FileShareConfig.parser(), - extensionRegistry); - if (fileSharesBuilder_ == null) { - ensureFileSharesIsMutable(); - fileShares_.add(m); - } else { - fileSharesBuilder_.addMessage(m); - } - break; - } // case 82 - case 90: - { - com.google.cloud.filestore.v1beta1.NetworkConfig m = - input.readMessage( - com.google.cloud.filestore.v1beta1.NetworkConfig.parser(), - extensionRegistry); - if (networksBuilder_ == null) { - ensureNetworksIsMutable(); - networks_.add(m); - } else { - networksBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: - { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: - { - input.readMessage(getSatisfiesPzsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 106 - case 114: - { - kmsKeyName_ = input.readStringRequireUtf8(); - - break; - } // case 114 - case 120: - { + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 40: { + state_ = input.readEnum(); + + break; + } // case 40 + case 50: { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 64: { + tier_ = input.readEnum(); + + break; + } // case 64 + case 74: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 74 + case 82: { + com.google.cloud.filestore.v1beta1.FileShareConfig m = + input.readMessage( + com.google.cloud.filestore.v1beta1.FileShareConfig.parser(), + extensionRegistry); + if (fileSharesBuilder_ == null) { + ensureFileSharesIsMutable(); + fileShares_.add(m); + } else { + fileSharesBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: { + com.google.cloud.filestore.v1beta1.NetworkConfig m = + input.readMessage( + com.google.cloud.filestore.v1beta1.NetworkConfig.parser(), + extensionRegistry); + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.add(m); + } else { + networksBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: { + input.readMessage( + getSatisfiesPzsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 106 + case 114: { + kmsKeyName_ = input.readStringRequireUtf8(); + + break; + } // case 114 + case 120: { + int tmpRaw = input.readEnum(); + ensureSuspensionReasonsIsMutable(); + suspensionReasons_.add(tmpRaw); + break; + } // case 120 + case 122: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureSuspensionReasonsIsMutable(); suspensionReasons_.add(tmpRaw); - break; - } // case 120 - case 122: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureSuspensionReasonsIsMutable(); - suspensionReasons_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 122 - case 128: - { - maxCapacityGb_ = input.readInt64(); - - break; - } // case 128 - case 136: - { - capacityStepSizeGb_ = input.readInt64(); - - break; - } // case 136 - case 144: - { - maxShareCount_ = input.readInt64(); - - break; - } // case 144 - case 152: - { - capacityGb_ = input.readInt64(); - - break; - } // case 152 - case 160: - { - multiShareEnabled_ = input.readBool(); - - break; - } // case 160 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 122 + case 128: { + maxCapacityGb_ = input.readInt64(); + + break; + } // case 128 + case 136: { + capacityStepSizeGb_ = input.readInt64(); + + break; + } // case 136 + case 144: { + maxShareCount_ = input.readInt64(); + + break; + } // case 144 + case 152: { + capacityGb_ = input.readInt64(); + + break; + } // case 152 + case 160: { + multiShareEnabled_ = input.readBool(); + + break; + } // case 160 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2586,26 +2351,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2614,22 +2376,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2637,64 +2398,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* * 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 resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + 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; @@ -2702,20 +2456,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @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; @@ -2724,21 +2476,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @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 { @@ -2746,61 +2497,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @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; } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @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; @@ -2808,75 +2552,51 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.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 instance state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.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 instance state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.State result = - com.google.cloud.filestore.v1beta1.Instance.State.valueOf(state_); - return result == null - ? com.google.cloud.filestore.v1beta1.Instance.State.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.Instance.State result = com.google.cloud.filestore.v1beta1.Instance.State.valueOf(state_); + return result == null ? com.google.cloud.filestore.v1beta1.Instance.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2884,26 +2604,21 @@ public Builder setState(com.google.cloud.filestore.v1beta1.Instance.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2911,20 +2626,18 @@ public Builder clearState() { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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; @@ -2933,21 +2646,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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 { @@ -2955,61 +2667,54 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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; @@ -3017,58 +2722,39 @@ public Builder setStatusMessageBytes(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 time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3084,17 +2770,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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(); @@ -3105,21 +2788,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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; } @@ -3131,15 +2810,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3153,64 +2828,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -3218,67 +2877,51 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int tier_ = 0; /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @return The tier. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.Tier result = - com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(tier_); - return result == null - ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.Instance.Tier result = com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(tier_); + return result == null ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED : result; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @param value The tier to set. * @return This builder for chaining. */ @@ -3286,44 +2929,42 @@ public Builder setTier(com.google.cloud.filestore.v1beta1.Instance.Tier value) { if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; 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(); @@ -3335,30 +2976,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * 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(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -3366,12 +3005,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -3379,17 +3017,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; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -3397,11 +3034,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(); } @@ -3409,85 +3047,80 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * 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(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * 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; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * 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.util.List fileShares_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFileSharesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fileShares_ = - new java.util.ArrayList( - fileShares_); + fileShares_ = new java.util.ArrayList(fileShares_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.FileShareConfig, - com.google.cloud.filestore.v1beta1.FileShareConfig.Builder, - com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder> - fileSharesBuilder_; + com.google.cloud.filestore.v1beta1.FileShareConfig, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder, com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder> fileSharesBuilder_; /** - * - * *
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3503,8 +3136,6 @@ public java.util.List getFil
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3519,9 +3150,7 @@ public int getFileSharesCount() {
         return fileSharesBuilder_.getCount();
       }
     }
-    /**
-     *
-     *
+    /**
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3537,8 +3166,6 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig getFileShares(int inde
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3561,8 +3188,6 @@ public Builder setFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3582,8 +3207,6 @@ public Builder setFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3605,8 +3228,6 @@ public Builder addFileShares(com.google.cloud.filestore.v1beta1.FileShareConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3629,8 +3250,6 @@ public Builder addFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3650,8 +3269,6 @@ public Builder addFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3671,8 +3288,6 @@ public Builder addFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3684,7 +3299,8 @@ public Builder addAllFileShares(
         java.lang.Iterable values) {
       if (fileSharesBuilder_ == null) {
         ensureFileSharesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileShares_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, fileShares_);
         onChanged();
       } else {
         fileSharesBuilder_.addAllMessages(values);
@@ -3692,8 +3308,6 @@ public Builder addAllFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3712,8 +3326,6 @@ public Builder clearFileShares() {
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3732,8 +3344,6 @@ public Builder removeFileShares(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3746,8 +3356,6 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder getFileSharesB
       return getFileSharesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3758,14 +3366,11 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder getFileSharesB
     public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuilder(
         int index) {
       if (fileSharesBuilder_ == null) {
-        return fileShares_.get(index);
-      } else {
+        return fileShares_.get(index);  } else {
         return fileSharesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3773,8 +3378,8 @@ public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileShares
      *
      * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
      */
-    public java.util.List
-        getFileSharesOrBuilderList() {
+    public java.util.List 
+         getFileSharesOrBuilderList() {
       if (fileSharesBuilder_ != null) {
         return fileSharesBuilder_.getMessageOrBuilderList();
       } else {
@@ -3782,8 +3387,6 @@ public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileShares
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3792,12 +3395,10 @@ public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileShares
      * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
      */
     public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder addFileSharesBuilder() {
-      return getFileSharesFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance());
+      return getFileSharesFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3807,13 +3408,10 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder addFileSharesB
      */
     public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder addFileSharesBuilder(
         int index) {
-      return getFileSharesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance());
+      return getFileSharesFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3821,48 +3419,38 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder addFileSharesB
      *
      * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
      */
-    public java.util.List
-        getFileSharesBuilderList() {
+    public java.util.List 
+         getFileSharesBuilderList() {
       return getFileSharesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1beta1.FileShareConfig,
-            com.google.cloud.filestore.v1beta1.FileShareConfig.Builder,
-            com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>
+        com.google.cloud.filestore.v1beta1.FileShareConfig, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder, com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder> 
         getFileSharesFieldBuilder() {
       if (fileSharesBuilder_ == null) {
-        fileSharesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1beta1.FileShareConfig,
-                com.google.cloud.filestore.v1beta1.FileShareConfig.Builder,
-                com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>(
-                fileShares_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        fileSharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1beta1.FileShareConfig, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder, com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>(
+                fileShares_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         fileShares_ = null;
       }
       return fileSharesBuilder_;
     }
 
     private java.util.List networks_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureNetworksIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        networks_ =
-            new java.util.ArrayList(networks_);
+        networks_ = new java.util.ArrayList(networks_);
         bitField0_ |= 0x00000004;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1beta1.NetworkConfig,
-            com.google.cloud.filestore.v1beta1.NetworkConfig.Builder,
-            com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>
-        networksBuilder_;
+        com.google.cloud.filestore.v1beta1.NetworkConfig, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder, com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder> networksBuilder_;
 
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3878,8 +3466,6 @@ public java.util.List getNetwo
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3895,8 +3481,6 @@ public int getNetworksCount() {
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3912,8 +3496,6 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3921,7 +3503,8 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public Builder setNetworks(int index, com.google.cloud.filestore.v1beta1.NetworkConfig value) {
+    public Builder setNetworks(
+        int index, com.google.cloud.filestore.v1beta1.NetworkConfig value) {
       if (networksBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3935,8 +3518,6 @@ public Builder setNetworks(int index, com.google.cloud.filestore.v1beta1.Network
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3956,8 +3537,6 @@ public Builder setNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3979,8 +3558,6 @@ public Builder addNetworks(com.google.cloud.filestore.v1beta1.NetworkConfig valu
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3988,7 +3565,8 @@ public Builder addNetworks(com.google.cloud.filestore.v1beta1.NetworkConfig valu
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public Builder addNetworks(int index, com.google.cloud.filestore.v1beta1.NetworkConfig value) {
+    public Builder addNetworks(
+        int index, com.google.cloud.filestore.v1beta1.NetworkConfig value) {
       if (networksBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4002,8 +3580,6 @@ public Builder addNetworks(int index, com.google.cloud.filestore.v1beta1.Network
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -4023,8 +3599,6 @@ public Builder addNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -4044,8 +3618,6 @@ public Builder addNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -4057,7 +3629,8 @@ public Builder addAllNetworks(
         java.lang.Iterable values) {
       if (networksBuilder_ == null) {
         ensureNetworksIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, networks_);
         onChanged();
       } else {
         networksBuilder_.addAllMessages(values);
@@ -4065,8 +3638,6 @@ public Builder addAllNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -4085,8 +3656,6 @@ public Builder clearNetworks() {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -4105,8 +3674,6 @@ public Builder removeNetworks(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -4114,12 +3681,11 @@ public Builder removeNetworks(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder getNetworksBuilder(int index) {
+    public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder getNetworksBuilder(
+        int index) {
       return getNetworksFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -4130,14 +3696,11 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder getNetworksBuild
     public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(
         int index) {
       if (networksBuilder_ == null) {
-        return networks_.get(index);
-      } else {
+        return networks_.get(index);  } else {
         return networksBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -4145,8 +3708,8 @@ public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBu
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public java.util.List
-        getNetworksOrBuilderList() {
+    public java.util.List 
+         getNetworksOrBuilderList() {
       if (networksBuilder_ != null) {
         return networksBuilder_.getMessageOrBuilderList();
       } else {
@@ -4154,8 +3717,6 @@ public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBu
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -4164,12 +3725,10 @@ public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBu
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
     public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuilder() {
-      return getNetworksFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance());
+      return getNetworksFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -4177,13 +3736,12 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuild
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuilder(int index) {
-      return getNetworksFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance());
+    public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuilder(
+        int index) {
+      return getNetworksFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -4191,23 +3749,20 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuild
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public java.util.List
-        getNetworksBuilderList() {
+    public java.util.List 
+         getNetworksBuilderList() {
       return getNetworksFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1beta1.NetworkConfig,
-            com.google.cloud.filestore.v1beta1.NetworkConfig.Builder,
-            com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>
+        com.google.cloud.filestore.v1beta1.NetworkConfig, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder, com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder> 
         getNetworksFieldBuilder() {
       if (networksBuilder_ == null) {
-        networksBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1beta1.NetworkConfig,
-                com.google.cloud.filestore.v1beta1.NetworkConfig.Builder,
-                com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>(
-                networks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+        networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1beta1.NetworkConfig, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder, com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>(
+                networks_,
+                ((bitField0_ & 0x00000004) != 0),
+                getParentForChildren(),
+                isClean());
         networks_ = null;
       }
       return networksBuilder_;
@@ -4215,21 +3770,19 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuild
 
     private java.lang.Object etag_ = "";
     /**
-     *
-     *
      * 
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @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; @@ -4238,22 +3791,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @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 { @@ -4261,64 +3813,57 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @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; } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @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; @@ -4326,58 +3871,39 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.BoolValue satisfiesPzs_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - satisfiesPzsBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> satisfiesPzsBuilder_; /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ public boolean hasSatisfiesPzs() { return satisfiesPzsBuilder_ != null || satisfiesPzs_ != null; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ public com.google.protobuf.BoolValue getSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } else { return satisfiesPzsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { @@ -4393,17 +3919,14 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setSatisfiesPzs( + com.google.protobuf.BoolValue.Builder builderForValue) { if (satisfiesPzsBuilder_ == null) { satisfiesPzs_ = builderForValue.build(); onChanged(); @@ -4414,23 +3937,17 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForV return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { if (satisfiesPzs_ != null) { satisfiesPzs_ = - com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_).mergeFrom(value).buildPartial(); } else { satisfiesPzs_ = value; } @@ -4442,15 +3959,11 @@ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { @@ -4464,64 +3977,48 @@ public Builder clearSatisfiesPzs() { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder() { - + onChanged(); return getSatisfiesPzsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { if (satisfiesPzsBuilder_ != null) { return satisfiesPzsBuilder_.getMessageOrBuilder(); } else { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getSatisfiesPzsFieldBuilder() { if (satisfiesPzsBuilder_ == null) { - satisfiesPzsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getSatisfiesPzs(), getParentForChildren(), isClean()); + satisfiesPzsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getSatisfiesPzs(), + getParentForChildren(), + isClean()); satisfiesPzs_ = null; } return satisfiesPzsBuilder_; @@ -4529,20 +4026,18 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * KMS key name used for data encryption.
      * 
* * string kms_key_name = 14; - * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -4551,21 +4046,20 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * KMS key name used for data encryption.
      * 
* * string kms_key_name = 14; - * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -4573,69 +4067,61 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * KMS key name used for data encryption.
      * 
* * string kms_key_name = 14; - * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { + public Builder setKmsKeyName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** - * - * *
      * KMS key name used for data encryption.
      * 
* * string kms_key_name = 14; - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** - * - * *
      * KMS key name used for data encryption.
      * 
* * string kms_key_name = 14; - * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; } private java.util.List suspensionReasons_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSuspensionReasonsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { suspensionReasons_ = new java.util.ArrayList(suspensionReasons_); @@ -4643,69 +4129,46 @@ private void ensureSuspensionReasonsIsMutable() { } } /** - * - * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the suspensionReasons. */ - public java.util.List - getSuspensionReasonsList() { + public java.util.List getSuspensionReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>( - suspensionReasons_, suspensionReasons_converter_); + java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>(suspensionReasons_, suspensionReasons_converter_); } /** - * - * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of suspensionReasons. */ public int getSuspensionReasonsCount() { return suspensionReasons_.size(); } /** - * - * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The suspensionReasons at the given index. */ - public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons( - int index) { + public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons(int index) { return suspensionReasons_converter_.convert(suspensionReasons_.get(index)); } /** - * - * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The suspensionReasons to set. * @return This builder for chaining. @@ -4721,21 +4184,15 @@ public Builder setSuspensionReasons( return this; } /** - * - * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The suspensionReasons to add. * @return This builder for chaining. */ - public Builder addSuspensionReasons( - com.google.cloud.filestore.v1beta1.Instance.SuspensionReason value) { + public Builder addSuspensionReasons(com.google.cloud.filestore.v1beta1.Instance.SuspensionReason value) { if (value == null) { throw new NullPointerException(); } @@ -4745,22 +4202,16 @@ public Builder addSuspensionReasons( return this; } /** - * - * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The suspensionReasons to add. * @return This builder for chaining. */ public Builder addAllSuspensionReasons( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureSuspensionReasonsIsMutable(); for (com.google.cloud.filestore.v1beta1.Instance.SuspensionReason value : values) { suspensionReasons_.add(value.getNumber()); @@ -4769,16 +4220,11 @@ public Builder addAllSuspensionReasons( return this; } /** - * - * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSuspensionReasons() { @@ -4788,32 +4234,23 @@ public Builder clearSuspensionReasons() { return this; } /** - * - * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for suspensionReasons. */ - public java.util.List getSuspensionReasonsValueList() { + public java.util.List + getSuspensionReasonsValueList() { return java.util.Collections.unmodifiableList(suspensionReasons_); } /** - * - * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The enum numeric value on the wire of suspensionReasons at the given index. */ @@ -4821,37 +4258,28 @@ public int getSuspensionReasonsValue(int index) { return suspensionReasons_.get(index); } /** - * - * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The enum numeric value on the wire for suspensionReasons to set. * @return This builder for chaining. */ - public Builder setSuspensionReasonsValue(int index, int value) { + public Builder setSuspensionReasonsValue( + int index, int value) { ensureSuspensionReasonsIsMutable(); suspensionReasons_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for suspensionReasons to add. * @return This builder for chaining. */ @@ -4862,20 +4290,16 @@ public Builder addSuspensionReasonsValue(int value) { return this; } /** - * - * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The enum numeric values on the wire for suspensionReasons to add. * @return This builder for chaining. */ - public Builder addAllSuspensionReasonsValue(java.lang.Iterable values) { + public Builder addAllSuspensionReasonsValue( + java.lang.Iterable values) { ensureSuspensionReasonsIsMutable(); for (int value : values) { suspensionReasons_.add(value); @@ -4884,16 +4308,13 @@ public Builder addAllSuspensionReasonsValue(java.lang.Iterable * Output only. The max capacity of the instance. *
* * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The maxCapacityGb. */ @java.lang.Override @@ -4901,51 +4322,42 @@ public long getMaxCapacityGb() { return maxCapacityGb_; } /** - * - * *
      * Output only. The max capacity of the instance.
      * 
* * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The maxCapacityGb to set. * @return This builder for chaining. */ public Builder setMaxCapacityGb(long value) { - + maxCapacityGb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The max capacity of the instance.
      * 
* * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMaxCapacityGb() { - + maxCapacityGb_ = 0L; onChanged(); return this; } - private long capacityStepSizeGb_; + private long capacityStepSizeGb_ ; /** - * - * *
      * Output only. The increase/decrease capacity step size.
      * 
* * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityStepSizeGb. */ @java.lang.Override @@ -4953,51 +4365,42 @@ public long getCapacityStepSizeGb() { return capacityStepSizeGb_; } /** - * - * *
      * Output only. The increase/decrease capacity step size.
      * 
* * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The capacityStepSizeGb to set. * @return This builder for chaining. */ public Builder setCapacityStepSizeGb(long value) { - + capacityStepSizeGb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The increase/decrease capacity step size.
      * 
* * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCapacityStepSizeGb() { - + capacityStepSizeGb_ = 0L; onChanged(); return this; } - private long maxShareCount_; + private long maxShareCount_ ; /** - * - * *
      * Output only. The max number of shares allowed.
      * 
* * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The maxShareCount. */ @java.lang.Override @@ -5005,45 +4408,37 @@ public long getMaxShareCount() { return maxShareCount_; } /** - * - * *
      * Output only. The max number of shares allowed.
      * 
* * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The maxShareCount to set. * @return This builder for chaining. */ public Builder setMaxShareCount(long value) { - + maxShareCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The max number of shares allowed.
      * 
* * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMaxShareCount() { - + maxShareCount_ = 0L; onChanged(); return this; } - private long capacityGb_; + private long capacityGb_ ; /** - * - * *
      * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
      * This capacity can be increased up to `max_capacity_gb` GB in multipliers
@@ -5051,7 +4446,6 @@ public Builder clearMaxShareCount() {
      * 
* * int64 capacity_gb = 19; - * * @return The capacityGb. */ @java.lang.Override @@ -5059,8 +4453,6 @@ public long getCapacityGb() { return capacityGb_; } /** - * - * *
      * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
      * This capacity can be increased up to `max_capacity_gb` GB in multipliers
@@ -5068,19 +4460,16 @@ public long getCapacityGb() {
      * 
* * int64 capacity_gb = 19; - * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** - * - * *
      * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
      * This capacity can be increased up to `max_capacity_gb` GB in multipliers
@@ -5088,20 +4477,17 @@ public Builder setCapacityGb(long value) {
      * 
* * int64 capacity_gb = 19; - * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } - private boolean multiShareEnabled_; + private boolean multiShareEnabled_ ; /** - * - * *
      * Indicates whether this instance uses a multi-share configuration with which
      * it can have more than one file-share or none at all. File-shares are added,
@@ -5109,7 +4495,6 @@ public Builder clearCapacityGb() {
      * 
* * bool multi_share_enabled = 20; - * * @return The multiShareEnabled. */ @java.lang.Override @@ -5117,8 +4502,6 @@ public boolean getMultiShareEnabled() { return multiShareEnabled_; } /** - * - * *
      * Indicates whether this instance uses a multi-share configuration with which
      * it can have more than one file-share or none at all. File-shares are added,
@@ -5126,19 +4509,16 @@ public boolean getMultiShareEnabled() {
      * 
* * bool multi_share_enabled = 20; - * * @param value The multiShareEnabled to set. * @return This builder for chaining. */ public Builder setMultiShareEnabled(boolean value) { - + multiShareEnabled_ = value; onChanged(); return this; } /** - * - * *
      * Indicates whether this instance uses a multi-share configuration with which
      * it can have more than one file-share or none at all. File-shares are added,
@@ -5146,18 +4526,17 @@ public Builder setMultiShareEnabled(boolean value) {
      * 
* * bool multi_share_enabled = 20; - * * @return This builder for chaining. */ public Builder clearMultiShareEnabled() { - + multiShareEnabled_ = 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); } @@ -5167,12 +4546,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.Instance) private static final com.google.cloud.filestore.v1beta1.Instance DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.Instance(); } @@ -5181,27 +4560,27 @@ public static com.google.cloud.filestore.v1beta1.Instance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5216,4 +4595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java similarity index 75% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java index 21f10c8d2f83..4b21246d63cd 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java @@ -1,200 +1,140 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface InstanceOrBuilder - extends +public interface InstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.Instance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The instance state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The instance state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.filestore.v1beta1.Instance.State getState(); /** - * - * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @return The tier. */ com.google.cloud.filestore.v1beta1.Instance.Tier getTier(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -203,31 +143,30 @@ public interface InstanceOrBuilder */ int getLabelsCount(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * 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(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -236,24 +175,22 @@ public interface InstanceOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -261,10 +198,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
    */
-  java.util.List getFileSharesList();
+  java.util.List 
+      getFileSharesList();
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -274,8 +210,6 @@ java.lang.String getLabelsOrDefault(
    */
   com.google.cloud.filestore.v1beta1.FileShareConfig getFileShares(int index);
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -285,8 +219,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getFileSharesCount();
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -294,11 +226,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
    */
-  java.util.List
+  java.util.List 
       getFileSharesOrBuilderList();
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -306,11 +236,10 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
    */
-  com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuilder(int index);
+  com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -318,10 +247,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
-  java.util.List getNetworksList();
+  java.util.List 
+      getNetworksList();
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -331,8 +259,6 @@ java.lang.String getLabelsOrDefault(
    */
   com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index);
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -342,8 +268,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getNetworksCount();
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -351,11 +275,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
-  java.util.List
+  java.util.List 
       getNetworksOrBuilderList();
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -363,217 +285,158 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
-  com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(int index);
+  com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ boolean hasSatisfiesPzs(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ com.google.protobuf.BoolValue getSatisfiesPzs(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); /** - * - * *
    * KMS key name used for data encryption.
    * 
* * string kms_key_name = 14; - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * KMS key name used for data encryption.
    * 
* * string kms_key_name = 14; - * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the suspensionReasons. */ - java.util.List - getSuspensionReasonsList(); + java.util.List getSuspensionReasonsList(); /** - * - * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of suspensionReasons. */ int getSuspensionReasonsCount(); /** - * - * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The suspensionReasons at the given index. */ com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons(int index); /** - * - * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for suspensionReasons. */ - java.util.List getSuspensionReasonsValueList(); + java.util.List + getSuspensionReasonsValueList(); /** - * - * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The enum numeric value on the wire of suspensionReasons at the given index. */ int getSuspensionReasonsValue(int index); /** - * - * *
    * Output only. The max capacity of the instance.
    * 
* * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The maxCapacityGb. */ long getMaxCapacityGb(); /** - * - * *
    * Output only. The increase/decrease capacity step size.
    * 
* * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityStepSizeGb. */ long getCapacityStepSizeGb(); /** - * - * *
    * Output only. The max number of shares allowed.
    * 
* * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The maxShareCount. */ long getMaxShareCount(); /** - * - * *
    * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
    * This capacity can be increased up to `max_capacity_gb` GB in multipliers
@@ -581,14 +444,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * int64 capacity_gb = 19; - * * @return The capacityGb. */ long getCapacityGb(); /** - * - * *
    * Indicates whether this instance uses a multi-share configuration with which
    * it can have more than one file-share or none at all. File-shares are added,
@@ -596,7 +456,6 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool multi_share_enabled = 20; - * * @return The multiShareEnabled. */ boolean getMultiShareEnabled(); diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java similarity index 70% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java index ba515e238595..aa3c5e864482 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * ListBackupsRequest lists backups.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.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,35 +28,32 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, - com.google.cloud.filestore.v1beta1.ListBackupsRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, com.google.cloud.filestore.v1beta1.ListBackupsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location for which to retrieve backup information,
    * in the format `projects/{project_id}/locations/{location}`.
@@ -84,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -96,15 +72,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location for which to retrieve backup information,
    * in the format `projects/{project_id}/locations/{location}`.
@@ -114,18 +89,17 @@ public java.lang.String getParent() {
    * `{location}` value.
    * 
* - * - * string parent = 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 { @@ -136,14 +110,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -154,15 +125,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -171,30 +139,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * 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 { @@ -205,14 +173,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ @java.lang.Override @@ -221,29 +186,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; } } /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @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 { @@ -254,14 +219,11 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ @java.lang.Override @@ -270,29 +232,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; } } /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @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 { @@ -301,7 +263,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,7 +274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -342,7 +304,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_); @@ -361,19 +324,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.filestore.v1beta1.ListBackupsRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListBackupsRequest other = - (com.google.cloud.filestore.v1beta1.ListBackupsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.filestore.v1beta1.ListBackupsRequest other = (com.google.cloud.filestore.v1beta1.ListBackupsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -401,136 +368,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom( - java.nio.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.filestore.v1beta1.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.filestore.v1beta1.ListBackupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.ListBackupsRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.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; } /** - * - * *
    * ListBackupsRequest lists backups.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsRequest) com.google.cloud.filestore.v1beta1.ListBackupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, - com.google.cloud.filestore.v1beta1.ListBackupsRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, com.google.cloud.filestore.v1beta1.ListBackupsRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListBackupsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +508,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; } @java.lang.Override @@ -569,8 +529,7 @@ public com.google.cloud.filestore.v1beta1.ListBackupsRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListBackupsRequest buildPartial() { - com.google.cloud.filestore.v1beta1.ListBackupsRequest result = - new com.google.cloud.filestore.v1beta1.ListBackupsRequest(this); + com.google.cloud.filestore.v1beta1.ListBackupsRequest result = new com.google.cloud.filestore.v1beta1.ListBackupsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -584,39 +543,38 @@ public com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListBackupsRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListBackupsRequest)other); } else { super.mergeFrom(other); return this; @@ -624,8 +582,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListBackupsRequest other) { - if (other == com.google.cloud.filestore.v1beta1.ListBackupsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.ListBackupsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -671,43 +628,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -720,8 +671,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
@@ -731,16 +680,14 @@ public Builder mergeFrom(
      * `{location}` value.
      * 
* - * - * string parent = 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; @@ -749,8 +696,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
@@ -760,17 +705,16 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * - * string parent = 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 { @@ -778,8 +722,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
@@ -789,25 +731,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * `{location}` value.
      * 
* - * - * 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 project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
@@ -817,21 +755,16 @@ public Builder setParent(java.lang.String value) {
      * `{location}` value.
      * 
* - * - * string 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 project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
@@ -841,34 +774,29 @@ public Builder clearParent() {
      * `{location}` value.
      * 
* - * - * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -876,36 +804,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return.
      * 
* * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -913,21 +835,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -936,22 +856,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 { @@ -959,64 +878,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -1024,20 +936,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; @@ -1046,21 +956,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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 { @@ -1068,61 +977,54 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; @@ -1130,20 +1032,18 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; @@ -1152,21 +1052,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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 { @@ -1174,68 +1073,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1245,12 +1137,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListBackupsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListBackupsRequest) private static final com.google.cloud.filestore.v1beta1.ListBackupsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListBackupsRequest(); } @@ -1259,27 +1151,27 @@ public static com.google.cloud.filestore.v1beta1.ListBackupsRequest getDefaultIn 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1294,4 +1186,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListBackupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java similarity index 66% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java index 95d9fa16c81f..74c5675cd860 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListBackupsRequestOrBuilder - extends +public interface ListBackupsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListBackupsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location for which to retrieve backup information,
    * in the format `projects/{project_id}/locations/{location}`.
@@ -35,16 +17,11 @@ public interface ListBackupsRequestOrBuilder
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location for which to retrieve backup information,
    * in the format `projects/{project_id}/locations/{location}`.
@@ -54,101 +31,81 @@ public interface ListBackupsRequestOrBuilder
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java similarity index 77% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java index d01bcdb4d4f8..adb7efe41b30 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * ListBackupsResponse is the result of ListBackupsRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.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_ = ""; @@ -45,35 +27,32 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, - com.google.cloud.filestore.v1beta1.ListBackupsResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, com.google.cloud.filestore.v1beta1.ListBackupsResponse.Builder.class); } public static final int BACKUPS_FIELD_NUMBER = 1; private java.util.List backups_; /** - * - * *
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -90,8 +69,6 @@ public java.util.List getBackupsList(
     return backups_;
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -104,13 +81,11 @@ public java.util.List getBackupsList(
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getBackupsOrBuilderList() {
     return backups_;
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -127,8 +102,6 @@ public int getBackupsCount() {
     return backups_.size();
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -145,8 +118,6 @@ public com.google.cloud.filestore.v1beta1.Backup getBackups(int index) {
     return backups_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -159,22 +130,20 @@ public com.google.cloud.filestore.v1beta1.Backup getBackups(int index) {
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(int index) {
+  public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(
+      int index) {
     return backups_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -183,30 +152,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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 { @@ -217,42 +186,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. */ @@ -260,23 +221,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; @@ -288,7 +246,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -308,7 +267,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_); @@ -329,17 +289,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.filestore.v1beta1.ListBackupsResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListBackupsResponse other = - (com.google.cloud.filestore.v1beta1.ListBackupsResponse) obj; + com.google.cloud.filestore.v1beta1.ListBackupsResponse other = (com.google.cloud.filestore.v1beta1.ListBackupsResponse) obj; - if (!getBackupsList().equals(other.getBackupsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getBackupsList() + .equals(other.getBackupsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -367,136 +329,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.ListBackupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.ListBackupsResponse prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.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; } /** - * - * *
    * ListBackupsResponse is the result of ListBackupsRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsResponse) com.google.cloud.filestore.v1beta1.ListBackupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, - com.google.cloud.filestore.v1beta1.ListBackupsResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, com.google.cloud.filestore.v1beta1.ListBackupsResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListBackupsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -515,9 +470,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; } @java.lang.Override @@ -536,8 +491,7 @@ public com.google.cloud.filestore.v1beta1.ListBackupsResponse build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListBackupsResponse buildPartial() { - com.google.cloud.filestore.v1beta1.ListBackupsResponse result = - new com.google.cloud.filestore.v1beta1.ListBackupsResponse(this); + com.google.cloud.filestore.v1beta1.ListBackupsResponse result = new com.google.cloud.filestore.v1beta1.ListBackupsResponse(this); int from_bitField0_ = bitField0_; if (backupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -562,39 +516,38 @@ public com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsResponse) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListBackupsResponse) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListBackupsResponse)other); } else { super.mergeFrom(other); return this; @@ -602,8 +555,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListBackupsResponse other) { - if (other == com.google.cloud.filestore.v1beta1.ListBackupsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.ListBackupsResponse.getDefaultInstance()) return this; if (backupsBuilder_ == null) { if (!other.backups_.isEmpty()) { if (backups_.isEmpty()) { @@ -622,10 +574,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListBackupsResponse 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_); } @@ -671,39 +622,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.filestore.v1beta1.Backup m = - input.readMessage( - com.google.cloud.filestore.v1beta1.Backup.parser(), extensionRegistry); - if (backupsBuilder_ == null) { - ensureBackupsIsMutable(); - backups_.add(m); - } else { - backupsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.filestore.v1beta1.Backup m = + input.readMessage( + com.google.cloud.filestore.v1beta1.Backup.parser(), + extensionRegistry); + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(m); + } else { + backupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -713,28 +661,21 @@ public Builder mergeFrom( } // finally 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.filestore.v1beta1.Backup, - com.google.cloud.filestore.v1beta1.Backup.Builder, - com.google.cloud.filestore.v1beta1.BackupOrBuilder> - backupsBuilder_; + com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> backupsBuilder_; /** - * - * *
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -754,8 +695,6 @@ public java.util.List getBackupsList(
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -775,8 +714,6 @@ public int getBackupsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -796,8 +733,6 @@ public com.google.cloud.filestore.v1beta1.Backup getBackups(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -809,7 +744,8 @@ public com.google.cloud.filestore.v1beta1.Backup getBackups(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public Builder setBackups(int index, com.google.cloud.filestore.v1beta1.Backup value) {
+    public Builder setBackups(
+        int index, com.google.cloud.filestore.v1beta1.Backup value) {
       if (backupsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -823,8 +759,6 @@ public Builder setBackups(int index, com.google.cloud.filestore.v1beta1.Backup v
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -848,8 +782,6 @@ public Builder setBackups(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -875,8 +807,6 @@ public Builder addBackups(com.google.cloud.filestore.v1beta1.Backup value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -888,7 +818,8 @@ public Builder addBackups(com.google.cloud.filestore.v1beta1.Backup value) {
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public Builder addBackups(int index, com.google.cloud.filestore.v1beta1.Backup value) {
+    public Builder addBackups(
+        int index, com.google.cloud.filestore.v1beta1.Backup value) {
       if (backupsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -902,8 +833,6 @@ public Builder addBackups(int index, com.google.cloud.filestore.v1beta1.Backup v
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -915,7 +844,8 @@ public Builder addBackups(int index, com.google.cloud.filestore.v1beta1.Backup v
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public Builder addBackups(com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) {
+    public Builder addBackups(
+        com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) {
       if (backupsBuilder_ == null) {
         ensureBackupsIsMutable();
         backups_.add(builderForValue.build());
@@ -926,8 +856,6 @@ public Builder addBackups(com.google.cloud.filestore.v1beta1.Backup.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -951,8 +879,6 @@ public Builder addBackups(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -968,7 +894,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);
@@ -976,8 +903,6 @@ public Builder addAllBackups(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1000,8 +925,6 @@ public Builder clearBackups() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1024,8 +947,6 @@ public Builder removeBackups(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1037,12 +958,11 @@ public Builder removeBackups(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupsBuilder(int index) {
+    public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupsBuilder(
+        int index) {
       return getBackupsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1054,16 +974,14 @@ public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupsBuilder(int i
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(int index) {
+    public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(
+        int index) {
       if (backupsBuilder_ == null) {
-        return backups_.get(index);
-      } else {
+        return backups_.get(index);  } else {
         return backupsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1075,8 +993,8 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(in
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public java.util.List
-        getBackupsOrBuilderList() {
+    public java.util.List 
+         getBackupsOrBuilderList() {
       if (backupsBuilder_ != null) {
         return backupsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1084,8 +1002,6 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(in
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1098,12 +1014,10 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(in
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
     public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder() {
-      return getBackupsFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance());
+      return getBackupsFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1115,13 +1029,12 @@ public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder() {
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder(int index) {
-      return getBackupsFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance());
+    public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder(
+        int index) {
+      return getBackupsFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1133,23 +1046,20 @@ public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder(int i
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public java.util.List
-        getBackupsBuilderList() {
+    public java.util.List 
+         getBackupsBuilderList() {
       return getBackupsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1beta1.Backup,
-            com.google.cloud.filestore.v1beta1.Backup.Builder,
-            com.google.cloud.filestore.v1beta1.BackupOrBuilder>
+        com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> 
         getBackupsFieldBuilder() {
       if (backupsBuilder_ == null) {
-        backupsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1beta1.Backup,
-                com.google.cloud.filestore.v1beta1.Backup.Builder,
-                com.google.cloud.filestore.v1beta1.BackupOrBuilder>(
-                backups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        backupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder>(
+                backups_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         backups_ = null;
       }
       return backupsBuilder_;
@@ -1157,21 +1067,19 @@ public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder(int i
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; @@ -1180,22 +1088,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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 { @@ -1203,115 +1110,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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. */ @@ -1319,90 +1209,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() { @@ -1412,30 +1292,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); } @@ -1445,12 +1323,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListBackupsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListBackupsResponse) private static final com.google.cloud.filestore.v1beta1.ListBackupsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListBackupsResponse(); } @@ -1459,27 +1337,27 @@ public static com.google.cloud.filestore.v1beta1.ListBackupsResponse getDefaultI 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1494,4 +1372,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListBackupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java similarity index 80% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java index 4dee374efbbd..affd6d463f13 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListBackupsResponseOrBuilder - extends +public interface ListBackupsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListBackupsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -37,10 +19,9 @@ public interface ListBackupsResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
-  java.util.List getBackupsList();
+  java.util.List 
+      getBackupsList();
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -54,8 +35,6 @@ public interface ListBackupsResponseOrBuilder
    */
   com.google.cloud.filestore.v1beta1.Backup getBackups(int index);
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -69,8 +48,6 @@ public interface ListBackupsResponseOrBuilder
    */
   int getBackupsCount();
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -82,11 +59,9 @@ public interface ListBackupsResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
-  java.util.List
+  java.util.List 
       getBackupsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -98,83 +73,69 @@ public interface ListBackupsResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
-  com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(int index);
+  com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java similarity index 70% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java index 2340d2777677..dad0a237fd41 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * ListInstancesRequest lists instances.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListInstancesRequest} */ -public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListInstancesRequest) ListInstancesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,35 +28,32 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, - com.google.cloud.filestore.v1beta1.ListInstancesRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, com.google.cloud.filestore.v1beta1.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location for which to retrieve instance information,
    * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -83,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -95,15 +71,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location for which to retrieve instance information,
    * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -112,18 +87,17 @@ public java.lang.String getParent() {
    * `{location}` value.
    * 
* - * - * string parent = 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 { @@ -134,14 +108,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -152,15 +123,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -169,30 +137,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -203,14 +171,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ @java.lang.Override @@ -219,29 +184,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; } } /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @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 { @@ -252,14 +217,11 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ @java.lang.Override @@ -268,29 +230,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; } } /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @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 { @@ -299,7 +261,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,7 +272,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -340,7 +302,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_); @@ -359,19 +322,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.filestore.v1beta1.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListInstancesRequest other = - (com.google.cloud.filestore.v1beta1.ListInstancesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.filestore.v1beta1.ListInstancesRequest other = (com.google.cloud.filestore.v1beta1.ListInstancesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,136 +366,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( - java.nio.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.filestore.v1beta1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.ListInstancesRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListInstancesRequest lists instances.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListInstancesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListInstancesRequest) com.google.cloud.filestore.v1beta1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, - com.google.cloud.filestore.v1beta1.ListInstancesRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, com.google.cloud.filestore.v1beta1.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListInstancesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +506,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -567,8 +527,7 @@ public com.google.cloud.filestore.v1beta1.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListInstancesRequest buildPartial() { - com.google.cloud.filestore.v1beta1.ListInstancesRequest result = - new com.google.cloud.filestore.v1beta1.ListInstancesRequest(this); + com.google.cloud.filestore.v1beta1.ListInstancesRequest result = new com.google.cloud.filestore.v1beta1.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -582,39 +541,38 @@ public com.google.cloud.filestore.v1beta1.ListInstancesRequest 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.filestore.v1beta1.ListInstancesRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListInstancesRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListInstancesRequest)other); } else { super.mergeFrom(other); return this; @@ -622,8 +580,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListInstancesRequest other) { - if (other == com.google.cloud.filestore.v1beta1.ListInstancesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.ListInstancesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -669,43 +626,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -718,8 +669,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -728,16 +677,14 @@ public Builder mergeFrom(
      * `{location}` value.
      * 
* - * - * string parent = 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; @@ -746,8 +693,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -756,17 +701,16 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * - * string parent = 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 { @@ -774,8 +718,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -784,25 +726,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * `{location}` value.
      * 
* - * - * 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 project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -811,21 +749,16 @@ public Builder setParent(java.lang.String value) {
      * `{location}` value.
      * 
* - * - * string 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 project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -834,34 +767,29 @@ public Builder clearParent() {
      * `{location}` value.
      * 
* - * - * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -869,36 +797,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return.
      * 
* * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -906,21 +828,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -929,22 +849,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 { @@ -952,64 +871,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -1017,20 +929,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; @@ -1039,21 +949,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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 { @@ -1061,61 +970,54 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; @@ -1123,20 +1025,18 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; @@ -1145,21 +1045,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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 { @@ -1167,68 +1066,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1238,12 +1130,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListInstancesRequest) private static final com.google.cloud.filestore.v1beta1.ListInstancesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListInstancesRequest(); } @@ -1252,27 +1144,27 @@ public static com.google.cloud.filestore.v1beta1.ListInstancesRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1287,4 +1179,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java similarity index 66% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java index 648d4ecc7726..6e6567c49c2a 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListInstancesRequestOrBuilder - extends +public interface ListInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location for which to retrieve instance information,
    * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -34,16 +16,11 @@ public interface ListInstancesRequestOrBuilder
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location for which to retrieve instance information,
    * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -52,101 +29,81 @@ public interface ListInstancesRequestOrBuilder
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java similarity index 77% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java index aa5d74c78ad1..a723180f1a77 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * ListInstancesResponse is the result of ListInstancesRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListInstancesResponse} */ -public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListInstancesResponse) ListInstancesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,35 +27,32 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, - com.google.cloud.filestore.v1beta1.ListInstancesResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, com.google.cloud.filestore.v1beta1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** - * - * *
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -89,8 +68,6 @@ public java.util.List getInstancesL
     return instances_;
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -102,13 +79,11 @@ public java.util.List getInstancesL
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getInstancesOrBuilderList() {
     return instances_;
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -124,8 +99,6 @@ public int getInstancesCount() {
     return instances_.size();
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -141,8 +114,6 @@ public com.google.cloud.filestore.v1beta1.Instance getInstances(int index) {
     return instances_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -154,22 +125,20 @@ public com.google.cloud.filestore.v1beta1.Instance getInstances(int index) {
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index) {
+  public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
+      int index) {
     return instances_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -178,30 +147,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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 { @@ -212,42 +181,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. */ @@ -255,23 +216,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; @@ -283,7 +241,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -303,7 +262,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -324,17 +284,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.filestore.v1beta1.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListInstancesResponse other = - (com.google.cloud.filestore.v1beta1.ListInstancesResponse) obj; + com.google.cloud.filestore.v1beta1.ListInstancesResponse other = (com.google.cloud.filestore.v1beta1.ListInstancesResponse) obj; - if (!getInstancesList().equals(other.getInstancesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -362,136 +324,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( - java.nio.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.filestore.v1beta1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.ListInstancesResponse prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListInstancesResponse is the result of ListInstancesRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListInstancesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListInstancesResponse) com.google.cloud.filestore.v1beta1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, - com.google.cloud.filestore.v1beta1.ListInstancesResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, com.google.cloud.filestore.v1beta1.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListInstancesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -510,9 +465,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -531,8 +486,7 @@ public com.google.cloud.filestore.v1beta1.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListInstancesResponse buildPartial() { - com.google.cloud.filestore.v1beta1.ListInstancesResponse result = - new com.google.cloud.filestore.v1beta1.ListInstancesResponse(this); + com.google.cloud.filestore.v1beta1.ListInstancesResponse result = new com.google.cloud.filestore.v1beta1.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -557,39 +511,38 @@ public com.google.cloud.filestore.v1beta1.ListInstancesResponse 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.filestore.v1beta1.ListInstancesResponse) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListInstancesResponse) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListInstancesResponse)other); } else { super.mergeFrom(other); return this; @@ -597,8 +550,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListInstancesResponse other) { - if (other == com.google.cloud.filestore.v1beta1.ListInstancesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.ListInstancesResponse.getDefaultInstance()) return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -617,10 +569,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListInstancesRespons instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstancesFieldBuilder() - : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstancesFieldBuilder() : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -666,39 +617,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.filestore.v1beta1.Instance m = - input.readMessage( - com.google.cloud.filestore.v1beta1.Instance.parser(), extensionRegistry); - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.add(m); - } else { - instancesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.filestore.v1beta1.Instance m = + input.readMessage( + com.google.cloud.filestore.v1beta1.Instance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -708,29 +656,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - instances_ = - new java.util.ArrayList(instances_); + instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, - com.google.cloud.filestore.v1beta1.Instance.Builder, - com.google.cloud.filestore.v1beta1.InstanceOrBuilder> - instancesBuilder_; + com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> instancesBuilder_; /** - * - * *
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -749,8 +689,6 @@ public java.util.List getInstancesL
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -769,8 +707,6 @@ public int getInstancesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -789,8 +725,6 @@ public com.google.cloud.filestore.v1beta1.Instance getInstances(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -801,7 +735,8 @@ public com.google.cloud.filestore.v1beta1.Instance getInstances(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public Builder setInstances(int index, com.google.cloud.filestore.v1beta1.Instance value) {
+    public Builder setInstances(
+        int index, com.google.cloud.filestore.v1beta1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -815,8 +750,6 @@ public Builder setInstances(int index, com.google.cloud.filestore.v1beta1.Instan
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -839,8 +772,6 @@ public Builder setInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -865,8 +796,6 @@ public Builder addInstances(com.google.cloud.filestore.v1beta1.Instance value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -877,7 +806,8 @@ public Builder addInstances(com.google.cloud.filestore.v1beta1.Instance value) {
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public Builder addInstances(int index, com.google.cloud.filestore.v1beta1.Instance value) {
+    public Builder addInstances(
+        int index, com.google.cloud.filestore.v1beta1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -891,8 +821,6 @@ public Builder addInstances(int index, com.google.cloud.filestore.v1beta1.Instan
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -915,8 +843,6 @@ public Builder addInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -939,8 +865,6 @@ public Builder addInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -955,7 +879,8 @@ public Builder addAllInstances(
         java.lang.Iterable values) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, instances_);
         onChanged();
       } else {
         instancesBuilder_.addAllMessages(values);
@@ -963,8 +888,6 @@ public Builder addAllInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -986,8 +909,6 @@ public Builder clearInstances() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1009,8 +930,6 @@ public Builder removeInstances(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1021,12 +940,11 @@ public Builder removeInstances(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1beta1.Instance.Builder getInstancesBuilder(int index) {
+    public com.google.cloud.filestore.v1beta1.Instance.Builder getInstancesBuilder(
+        int index) {
       return getInstancesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1037,16 +955,14 @@ public com.google.cloud.filestore.v1beta1.Instance.Builder getInstancesBuilder(i
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index) {
+    public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
+        int index) {
       if (instancesBuilder_ == null) {
-        return instances_.get(index);
-      } else {
+        return instances_.get(index);  } else {
         return instancesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1057,8 +973,8 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilde
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public java.util.List
-        getInstancesOrBuilderList() {
+    public java.util.List 
+         getInstancesOrBuilderList() {
       if (instancesBuilder_ != null) {
         return instancesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1066,8 +982,6 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1079,12 +993,10 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilde
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
     public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder() {
-      return getInstancesFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance());
+      return getInstancesFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1095,13 +1007,12 @@ public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder()
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder(int index) {
-      return getInstancesFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance());
+    public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder(
+        int index) {
+      return getInstancesFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1112,23 +1023,20 @@ public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder(i
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public java.util.List
-        getInstancesBuilderList() {
+    public java.util.List 
+         getInstancesBuilderList() {
       return getInstancesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1beta1.Instance,
-            com.google.cloud.filestore.v1beta1.Instance.Builder,
-            com.google.cloud.filestore.v1beta1.InstanceOrBuilder>
+        com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> 
         getInstancesFieldBuilder() {
       if (instancesBuilder_ == null) {
-        instancesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1beta1.Instance,
-                com.google.cloud.filestore.v1beta1.Instance.Builder,
-                com.google.cloud.filestore.v1beta1.InstanceOrBuilder>(
-                instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder>(
+                instances_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         instances_ = null;
       }
       return instancesBuilder_;
@@ -1136,21 +1044,19 @@ public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder(i
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; @@ -1159,22 +1065,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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 { @@ -1182,115 +1087,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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. */ @@ -1298,90 +1186,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() { @@ -1391,30 +1269,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); } @@ -1424,12 +1300,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListInstancesResponse) private static final com.google.cloud.filestore.v1beta1.ListInstancesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListInstancesResponse(); } @@ -1438,27 +1314,27 @@ public static com.google.cloud.filestore.v1beta1.ListInstancesResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1473,4 +1349,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java similarity index 80% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java index 0d245132d892..40cd0d466af8 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListInstancesResponseOrBuilder - extends +public interface ListInstancesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -36,10 +18,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
-  java.util.List getInstancesList();
+  java.util.List 
+      getInstancesList();
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -52,8 +33,6 @@ public interface ListInstancesResponseOrBuilder
    */
   com.google.cloud.filestore.v1beta1.Instance getInstances(int index);
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -66,8 +45,6 @@ public interface ListInstancesResponseOrBuilder
    */
   int getInstancesCount();
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -78,11 +55,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
-  java.util.List
+  java.util.List 
       getInstancesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -93,83 +68,69 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
-  com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index);
+  com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java similarity index 69% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java index 0d521aa473bf..4ba08ff8f544 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * ListSharesRequest lists shares.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSharesRequest} */ -public final class ListSharesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSharesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListSharesRequest) ListSharesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSharesRequest.newBuilder() to construct. private ListSharesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSharesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +28,39 @@ private ListSharesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSharesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSharesRequest.class, - com.google.cloud.filestore.v1beta1.ListSharesRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListSharesRequest.class, com.google.cloud.filestore.v1beta1.ListSharesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The instance for which to retrieve share information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -93,33 +69,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The instance for which to retrieve share information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -130,14 +104,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -148,15 +119,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -165,30 +133,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -199,14 +167,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ @java.lang.Override @@ -215,29 +180,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; } } /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @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 { @@ -248,14 +213,11 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ @java.lang.Override @@ -264,29 +226,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; } } /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @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 { @@ -295,7 +257,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,7 +268,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -336,7 +298,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_); @@ -355,19 +318,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.filestore.v1beta1.ListSharesRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListSharesRequest other = - (com.google.cloud.filestore.v1beta1.ListSharesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.filestore.v1beta1.ListSharesRequest other = (com.google.cloud.filestore.v1beta1.ListSharesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -395,135 +362,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( - java.nio.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.filestore.v1beta1.ListSharesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.ListSharesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListSharesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListSharesRequest lists shares.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSharesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListSharesRequest) com.google.cloud.filestore.v1beta1.ListSharesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSharesRequest.class, - com.google.cloud.filestore.v1beta1.ListSharesRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListSharesRequest.class, com.google.cloud.filestore.v1beta1.ListSharesRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListSharesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -541,9 +502,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; } @java.lang.Override @@ -562,8 +523,7 @@ public com.google.cloud.filestore.v1beta1.ListSharesRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListSharesRequest buildPartial() { - com.google.cloud.filestore.v1beta1.ListSharesRequest result = - new com.google.cloud.filestore.v1beta1.ListSharesRequest(this); + com.google.cloud.filestore.v1beta1.ListSharesRequest result = new com.google.cloud.filestore.v1beta1.ListSharesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -577,39 +537,38 @@ public com.google.cloud.filestore.v1beta1.ListSharesRequest 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.filestore.v1beta1.ListSharesRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListSharesRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListSharesRequest)other); } else { super.mergeFrom(other); return this; @@ -617,8 +576,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSharesRequest other) { - if (other == com.google.cloud.filestore.v1beta1.ListSharesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.ListSharesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -664,43 +622,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -713,24 +665,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The instance for which to retrieve share information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -739,25 +687,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The instance for which to retrieve share information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -765,88 +710,72 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The instance for which to retrieve share information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The instance for which to retrieve share information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The instance for which to retrieve share information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + 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 maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -854,36 +783,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return.
      * 
* * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -891,21 +814,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -914,22 +835,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 { @@ -937,64 +857,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -1002,20 +915,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; @@ -1024,21 +935,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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 { @@ -1046,61 +956,54 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; @@ -1108,20 +1011,18 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; @@ -1130,21 +1031,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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 { @@ -1152,68 +1052,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1223,12 +1116,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListSharesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListSharesRequest) private static final com.google.cloud.filestore.v1beta1.ListSharesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListSharesRequest(); } @@ -1237,27 +1130,27 @@ public static com.google.cloud.filestore.v1beta1.ListSharesRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSharesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSharesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1272,4 +1165,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListSharesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java similarity index 63% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java index 4e596590c46b..0cc9956e9f5a 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java @@ -1,148 +1,105 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListSharesRequestOrBuilder - extends +public interface ListSharesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListSharesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The instance for which to retrieve share information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The instance for which to retrieve share information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java similarity index 73% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java index bfea69284a61..846d1d9a5f5f 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * ListSharesResponse is the result of ListSharesRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSharesResponse} */ -public final class ListSharesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSharesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListSharesResponse) ListSharesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSharesResponse.newBuilder() to construct. private ListSharesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSharesResponse() { shares_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,35 +27,32 @@ private ListSharesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSharesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSharesResponse.class, - com.google.cloud.filestore.v1beta1.ListSharesResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListSharesResponse.class, com.google.cloud.filestore.v1beta1.ListSharesResponse.Builder.class); } public static final int SHARES_FIELD_NUMBER = 1; private java.util.List shares_; /** - * - * *
    * A list of shares in the project for the specified instance.
    * 
@@ -85,8 +64,6 @@ public java.util.List getSharesList() return shares_; } /** - * - * *
    * A list of shares in the project for the specified instance.
    * 
@@ -94,13 +71,11 @@ public java.util.List getSharesList() * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSharesOrBuilderList() { return shares_; } /** - * - * *
    * A list of shares in the project for the specified instance.
    * 
@@ -112,8 +87,6 @@ public int getSharesCount() { return shares_.size(); } /** - * - * *
    * A list of shares in the project for the specified instance.
    * 
@@ -125,8 +98,6 @@ public com.google.cloud.filestore.v1beta1.Share getShares(int index) { return shares_.get(index); } /** - * - * *
    * A list of shares in the project for the specified instance.
    * 
@@ -134,22 +105,20 @@ public com.google.cloud.filestore.v1beta1.Share getShares(int index) { * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ @java.lang.Override - public com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder(int index) { + public com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder( + int index) { return shares_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -158,30 +127,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -192,42 +161,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. */ @@ -235,23 +196,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; @@ -263,7 +221,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < shares_.size(); i++) { output.writeMessage(1, shares_.get(i)); } @@ -283,7 +242,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < shares_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, shares_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, shares_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -304,17 +264,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.filestore.v1beta1.ListSharesResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListSharesResponse other = - (com.google.cloud.filestore.v1beta1.ListSharesResponse) obj; + com.google.cloud.filestore.v1beta1.ListSharesResponse other = (com.google.cloud.filestore.v1beta1.ListSharesResponse) obj; - if (!getSharesList().equals(other.getSharesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getSharesList() + .equals(other.getSharesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -342,136 +304,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( - java.nio.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.filestore.v1beta1.ListSharesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.ListSharesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.ListSharesResponse prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListSharesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListSharesResponse is the result of ListSharesRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSharesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListSharesResponse) com.google.cloud.filestore.v1beta1.ListSharesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSharesResponse.class, - com.google.cloud.filestore.v1beta1.ListSharesResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListSharesResponse.class, com.google.cloud.filestore.v1beta1.ListSharesResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListSharesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +445,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; } @java.lang.Override @@ -511,8 +466,7 @@ public com.google.cloud.filestore.v1beta1.ListSharesResponse build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListSharesResponse buildPartial() { - com.google.cloud.filestore.v1beta1.ListSharesResponse result = - new com.google.cloud.filestore.v1beta1.ListSharesResponse(this); + com.google.cloud.filestore.v1beta1.ListSharesResponse result = new com.google.cloud.filestore.v1beta1.ListSharesResponse(this); int from_bitField0_ = bitField0_; if (sharesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -537,39 +491,38 @@ public com.google.cloud.filestore.v1beta1.ListSharesResponse 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.filestore.v1beta1.ListSharesResponse) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListSharesResponse) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListSharesResponse)other); } else { super.mergeFrom(other); return this; @@ -577,8 +530,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSharesResponse other) { - if (other == com.google.cloud.filestore.v1beta1.ListSharesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.ListSharesResponse.getDefaultInstance()) return this; if (sharesBuilder_ == null) { if (!other.shares_.isEmpty()) { if (shares_.isEmpty()) { @@ -597,10 +549,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSharesResponse o sharesBuilder_ = null; shares_ = other.shares_; bitField0_ = (bitField0_ & ~0x00000001); - sharesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSharesFieldBuilder() - : null; + sharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSharesFieldBuilder() : null; } else { sharesBuilder_.addAllMessages(other.shares_); } @@ -646,39 +597,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.filestore.v1beta1.Share m = - input.readMessage( - com.google.cloud.filestore.v1beta1.Share.parser(), extensionRegistry); - if (sharesBuilder_ == null) { - ensureSharesIsMutable(); - shares_.add(m); - } else { - sharesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.filestore.v1beta1.Share m = + input.readMessage( + com.google.cloud.filestore.v1beta1.Share.parser(), + extensionRegistry); + if (sharesBuilder_ == null) { + ensureSharesIsMutable(); + shares_.add(m); + } else { + sharesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -688,28 +636,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List shares_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSharesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { shares_ = new java.util.ArrayList(shares_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, - com.google.cloud.filestore.v1beta1.Share.Builder, - com.google.cloud.filestore.v1beta1.ShareOrBuilder> - sharesBuilder_; + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> sharesBuilder_; /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
@@ -724,8 +665,6 @@ public java.util.List getSharesList() } } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
@@ -740,8 +679,6 @@ public int getSharesCount() { } } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
@@ -756,15 +693,14 @@ public com.google.cloud.filestore.v1beta1.Share getShares(int index) { } } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public Builder setShares(int index, com.google.cloud.filestore.v1beta1.Share value) { + public Builder setShares( + int index, com.google.cloud.filestore.v1beta1.Share value) { if (sharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -778,8 +714,6 @@ public Builder setShares(int index, com.google.cloud.filestore.v1beta1.Share val return this; } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
@@ -798,8 +732,6 @@ public Builder setShares( return this; } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
@@ -820,15 +752,14 @@ public Builder addShares(com.google.cloud.filestore.v1beta1.Share value) { return this; } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public Builder addShares(int index, com.google.cloud.filestore.v1beta1.Share value) { + public Builder addShares( + int index, com.google.cloud.filestore.v1beta1.Share value) { if (sharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -842,15 +773,14 @@ public Builder addShares(int index, com.google.cloud.filestore.v1beta1.Share val return this; } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public Builder addShares(com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { + public Builder addShares( + com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { if (sharesBuilder_ == null) { ensureSharesIsMutable(); shares_.add(builderForValue.build()); @@ -861,8 +791,6 @@ public Builder addShares(com.google.cloud.filestore.v1beta1.Share.Builder builde return this; } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
@@ -881,8 +809,6 @@ public Builder addShares( return this; } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
@@ -893,7 +819,8 @@ public Builder addAllShares( java.lang.Iterable values) { if (sharesBuilder_ == null) { ensureSharesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shares_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shares_); onChanged(); } else { sharesBuilder_.addAllMessages(values); @@ -901,8 +828,6 @@ public Builder addAllShares( return this; } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
@@ -920,8 +845,6 @@ public Builder clearShares() { return this; } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
@@ -939,44 +862,39 @@ public Builder removeShares(int index) { return this; } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public com.google.cloud.filestore.v1beta1.Share.Builder getSharesBuilder(int index) { + public com.google.cloud.filestore.v1beta1.Share.Builder getSharesBuilder( + int index) { return getSharesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder(int index) { + public com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder( + int index) { if (sharesBuilder_ == null) { - return shares_.get(index); - } else { + return shares_.get(index); } else { return sharesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public java.util.List - getSharesOrBuilderList() { + public java.util.List + getSharesOrBuilderList() { if (sharesBuilder_ != null) { return sharesBuilder_.getMessageOrBuilderList(); } else { @@ -984,8 +902,6 @@ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder(int } } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
@@ -993,47 +909,42 @@ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder(int * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ public com.google.cloud.filestore.v1beta1.Share.Builder addSharesBuilder() { - return getSharesFieldBuilder() - .addBuilder(com.google.cloud.filestore.v1beta1.Share.getDefaultInstance()); + return getSharesFieldBuilder().addBuilder( + com.google.cloud.filestore.v1beta1.Share.getDefaultInstance()); } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public com.google.cloud.filestore.v1beta1.Share.Builder addSharesBuilder(int index) { - return getSharesFieldBuilder() - .addBuilder(index, com.google.cloud.filestore.v1beta1.Share.getDefaultInstance()); + public com.google.cloud.filestore.v1beta1.Share.Builder addSharesBuilder( + int index) { + return getSharesFieldBuilder().addBuilder( + index, com.google.cloud.filestore.v1beta1.Share.getDefaultInstance()); } /** - * - * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public java.util.List getSharesBuilderList() { + public java.util.List + getSharesBuilderList() { return getSharesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, - com.google.cloud.filestore.v1beta1.Share.Builder, - com.google.cloud.filestore.v1beta1.ShareOrBuilder> + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> getSharesFieldBuilder() { if (sharesBuilder_ == null) { - sharesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, - com.google.cloud.filestore.v1beta1.Share.Builder, - com.google.cloud.filestore.v1beta1.ShareOrBuilder>( - shares_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + sharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder>( + shares_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); shares_ = null; } return sharesBuilder_; @@ -1041,21 +952,19 @@ public java.util.List getShare private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; @@ -1064,22 +973,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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 { @@ -1087,115 +995,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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. */ @@ -1203,90 +1094,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() { @@ -1296,30 +1177,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); } @@ -1329,12 +1208,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListSharesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListSharesResponse) private static final com.google.cloud.filestore.v1beta1.ListSharesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListSharesResponse(); } @@ -1343,27 +1222,27 @@ public static com.google.cloud.filestore.v1beta1.ListSharesResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSharesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSharesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1378,4 +1257,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListSharesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java similarity index 73% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java index fe07abad95f3..f459e4466939 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListSharesResponseOrBuilder - extends +public interface ListSharesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListSharesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of shares in the project for the specified instance.
    * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - java.util.List getSharesList(); + java.util.List + getSharesList(); /** - * - * *
    * A list of shares in the project for the specified instance.
    * 
@@ -44,8 +25,6 @@ public interface ListSharesResponseOrBuilder */ com.google.cloud.filestore.v1beta1.Share getShares(int index); /** - * - * *
    * A list of shares in the project for the specified instance.
    * 
@@ -54,102 +33,84 @@ public interface ListSharesResponseOrBuilder */ int getSharesCount(); /** - * - * *
    * A list of shares in the project for the specified instance.
    * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - java.util.List + java.util.List getSharesOrBuilderList(); /** - * - * *
    * A list of shares in the project for the specified instance.
    * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder(int index); + com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder( + int index); /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java similarity index 69% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java index 24db3c1a663a..2b50752b737f 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * ListSnapshotsRequest lists snapshots.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSnapshotsRequest} */ -public final class ListSnapshotsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSnapshotsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListSnapshotsRequest) ListSnapshotsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSnapshotsRequest.newBuilder() to construct. private ListSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSnapshotsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +28,39 @@ private ListSnapshotsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSnapshotsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The instance for which to retrieve snapshot information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -93,33 +69,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The instance for which to retrieve snapshot information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -130,14 +104,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -148,15 +119,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -165,30 +133,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -199,14 +167,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ @java.lang.Override @@ -215,29 +180,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; } } /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @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 { @@ -248,14 +213,11 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ @java.lang.Override @@ -264,29 +226,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; } } /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @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 { @@ -295,7 +257,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,7 +268,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -336,7 +298,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_); @@ -355,19 +318,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.filestore.v1beta1.ListSnapshotsRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest other = - (com.google.cloud.filestore.v1beta1.ListSnapshotsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest other = (com.google.cloud.filestore.v1beta1.ListSnapshotsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -395,136 +362,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( - java.nio.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.filestore.v1beta1.ListSnapshotsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.ListSnapshotsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListSnapshotsRequest lists snapshots.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSnapshotsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListSnapshotsRequest) com.google.cloud.filestore.v1beta1.ListSnapshotsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -542,9 +502,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; } @java.lang.Override @@ -563,8 +523,7 @@ public com.google.cloud.filestore.v1beta1.ListSnapshotsRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListSnapshotsRequest buildPartial() { - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest result = - new com.google.cloud.filestore.v1beta1.ListSnapshotsRequest(this); + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest result = new com.google.cloud.filestore.v1beta1.ListSnapshotsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -578,39 +537,38 @@ public com.google.cloud.filestore.v1beta1.ListSnapshotsRequest 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.filestore.v1beta1.ListSnapshotsRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListSnapshotsRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListSnapshotsRequest)other); } else { super.mergeFrom(other); return this; @@ -618,8 +576,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest other) { - if (other == com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -665,43 +622,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -714,24 +665,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The instance for which to retrieve snapshot information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -740,25 +687,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The instance for which to retrieve snapshot information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -766,88 +710,72 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The instance for which to retrieve snapshot information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The instance for which to retrieve snapshot information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The instance for which to retrieve snapshot information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + 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 maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -855,36 +783,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return.
      * 
* * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -892,21 +814,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -915,22 +835,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 { @@ -938,64 +857,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -1003,20 +915,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; @@ -1025,21 +935,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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 { @@ -1047,61 +956,54 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @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; @@ -1109,20 +1011,18 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; @@ -1131,21 +1031,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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 { @@ -1153,68 +1052,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1224,12 +1116,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListSnapshotsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListSnapshotsRequest) private static final com.google.cloud.filestore.v1beta1.ListSnapshotsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListSnapshotsRequest(); } @@ -1238,27 +1130,27 @@ public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSnapshotsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSnapshotsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1273,4 +1165,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java similarity index 63% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java index cbbec8ba3a1b..870bb448da11 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java @@ -1,148 +1,105 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListSnapshotsRequestOrBuilder - extends +public interface ListSnapshotsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListSnapshotsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The instance for which to retrieve snapshot information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The instance for which to retrieve snapshot information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java similarity index 73% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java index 983affd8dee3..ccc374a716cc 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * ListSnapshotsResponse is the result of ListSnapshotsRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSnapshotsResponse} */ -public final class ListSnapshotsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSnapshotsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListSnapshotsResponse) ListSnapshotsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSnapshotsResponse.newBuilder() to construct. private ListSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSnapshotsResponse() { snapshots_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,35 +26,32 @@ private ListSnapshotsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSnapshotsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.Builder.class); } public static final int SNAPSHOTS_FIELD_NUMBER = 1; private java.util.List snapshots_; /** - * - * *
    * A list of snapshots in the project for the specified instance.
    * 
@@ -84,8 +63,6 @@ public java.util.List getSnapshotsL return snapshots_; } /** - * - * *
    * A list of snapshots in the project for the specified instance.
    * 
@@ -93,13 +70,11 @@ public java.util.List getSnapshotsL * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSnapshotsOrBuilderList() { return snapshots_; } /** - * - * *
    * A list of snapshots in the project for the specified instance.
    * 
@@ -111,8 +86,6 @@ public int getSnapshotsCount() { return snapshots_.size(); } /** - * - * *
    * A list of snapshots in the project for the specified instance.
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.filestore.v1beta1.Snapshot getSnapshots(int index) { return snapshots_.get(index); } /** - * - * *
    * A list of snapshots in the project for the specified instance.
    * 
@@ -133,22 +104,20 @@ public com.google.cloud.filestore.v1beta1.Snapshot getSnapshots(int index) { * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ @java.lang.Override - public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { + public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder( + int index) { return snapshots_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,30 +126,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -189,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < snapshots_.size(); i++) { output.writeMessage(1, snapshots_.get(i)); } @@ -218,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < snapshots_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snapshots_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, snapshots_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -231,16 +201,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.filestore.v1beta1.ListSnapshotsResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse other = - (com.google.cloud.filestore.v1beta1.ListSnapshotsResponse) obj; + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse other = (com.google.cloud.filestore.v1beta1.ListSnapshotsResponse) obj; - if (!getSnapshotsList().equals(other.getSnapshotsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSnapshotsList() + .equals(other.getSnapshotsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,136 +235,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( - java.nio.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.filestore.v1beta1.ListSnapshotsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.ListSnapshotsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListSnapshotsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListSnapshotsResponse is the result of ListSnapshotsRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSnapshotsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListSnapshotsResponse) com.google.cloud.filestore.v1beta1.ListSnapshotsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; } @java.lang.Override @@ -431,8 +395,7 @@ public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse buildPartial() { - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse result = - new com.google.cloud.filestore.v1beta1.ListSnapshotsResponse(this); + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse result = new com.google.cloud.filestore.v1beta1.ListSnapshotsResponse(this); int from_bitField0_ = bitField0_; if (snapshotsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -452,39 +415,38 @@ public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse 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.filestore.v1beta1.ListSnapshotsResponse) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListSnapshotsResponse) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListSnapshotsResponse)other); } else { super.mergeFrom(other); return this; @@ -492,8 +454,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSnapshotsResponse other) { - if (other == com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.getDefaultInstance()) return this; if (snapshotsBuilder_ == null) { if (!other.snapshots_.isEmpty()) { if (snapshots_.isEmpty()) { @@ -512,10 +473,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSnapshotsRespons snapshotsBuilder_ = null; snapshots_ = other.snapshots_; bitField0_ = (bitField0_ & ~0x00000001); - snapshotsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSnapshotsFieldBuilder() - : null; + snapshotsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSnapshotsFieldBuilder() : null; } else { snapshotsBuilder_.addAllMessages(other.snapshots_); } @@ -551,32 +511,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.filestore.v1beta1.Snapshot m = - input.readMessage( - com.google.cloud.filestore.v1beta1.Snapshot.parser(), extensionRegistry); - if (snapshotsBuilder_ == null) { - ensureSnapshotsIsMutable(); - snapshots_.add(m); - } else { - snapshotsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.filestore.v1beta1.Snapshot m = + input.readMessage( + com.google.cloud.filestore.v1beta1.Snapshot.parser(), + extensionRegistry); + if (snapshotsBuilder_ == null) { + ensureSnapshotsIsMutable(); + snapshots_.add(m); + } else { + snapshotsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -586,29 +544,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List snapshots_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSnapshotsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - snapshots_ = - new java.util.ArrayList(snapshots_); + snapshots_ = new java.util.ArrayList(snapshots_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, - com.google.cloud.filestore.v1beta1.Snapshot.Builder, - com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> - snapshotsBuilder_; + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> snapshotsBuilder_; /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -623,8 +573,6 @@ public java.util.List getSnapshotsL } } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -639,8 +587,6 @@ public int getSnapshotsCount() { } } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -655,15 +601,14 @@ public com.google.cloud.filestore.v1beta1.Snapshot getSnapshots(int index) { } } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - public Builder setSnapshots(int index, com.google.cloud.filestore.v1beta1.Snapshot value) { + public Builder setSnapshots( + int index, com.google.cloud.filestore.v1beta1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -677,8 +622,6 @@ public Builder setSnapshots(int index, com.google.cloud.filestore.v1beta1.Snapsh return this; } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -697,8 +640,6 @@ public Builder setSnapshots( return this; } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -719,15 +660,14 @@ public Builder addSnapshots(com.google.cloud.filestore.v1beta1.Snapshot value) { return this; } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - public Builder addSnapshots(int index, com.google.cloud.filestore.v1beta1.Snapshot value) { + public Builder addSnapshots( + int index, com.google.cloud.filestore.v1beta1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -741,8 +681,6 @@ public Builder addSnapshots(int index, com.google.cloud.filestore.v1beta1.Snapsh return this; } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -761,8 +699,6 @@ public Builder addSnapshots( return this; } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -781,8 +717,6 @@ public Builder addSnapshots( return this; } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -793,7 +727,8 @@ public Builder addAllSnapshots( java.lang.Iterable values) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snapshots_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, snapshots_); onChanged(); } else { snapshotsBuilder_.addAllMessages(values); @@ -801,8 +736,6 @@ public Builder addAllSnapshots( return this; } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -820,8 +753,6 @@ public Builder clearSnapshots() { return this; } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -839,44 +770,39 @@ public Builder removeSnapshots(int index) { return this; } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - public com.google.cloud.filestore.v1beta1.Snapshot.Builder getSnapshotsBuilder(int index) { + public com.google.cloud.filestore.v1beta1.Snapshot.Builder getSnapshotsBuilder( + int index) { return getSnapshotsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { + public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder( + int index) { if (snapshotsBuilder_ == null) { - return snapshots_.get(index); - } else { + return snapshots_.get(index); } else { return snapshotsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - public java.util.List - getSnapshotsOrBuilderList() { + public java.util.List + getSnapshotsOrBuilderList() { if (snapshotsBuilder_ != null) { return snapshotsBuilder_.getMessageOrBuilderList(); } else { @@ -884,8 +810,6 @@ public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilde } } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -893,48 +817,42 @@ public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilde * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ public com.google.cloud.filestore.v1beta1.Snapshot.Builder addSnapshotsBuilder() { - return getSnapshotsFieldBuilder() - .addBuilder(com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance()); + return getSnapshotsFieldBuilder().addBuilder( + com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance()); } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - public com.google.cloud.filestore.v1beta1.Snapshot.Builder addSnapshotsBuilder(int index) { - return getSnapshotsFieldBuilder() - .addBuilder(index, com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance()); + public com.google.cloud.filestore.v1beta1.Snapshot.Builder addSnapshotsBuilder( + int index) { + return getSnapshotsFieldBuilder().addBuilder( + index, com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance()); } /** - * - * *
      * A list of snapshots in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - public java.util.List - getSnapshotsBuilderList() { + public java.util.List + getSnapshotsBuilderList() { return getSnapshotsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, - com.google.cloud.filestore.v1beta1.Snapshot.Builder, - com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> getSnapshotsFieldBuilder() { if (snapshotsBuilder_ == null) { - snapshotsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, - com.google.cloud.filestore.v1beta1.Snapshot.Builder, - com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( - snapshots_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + snapshotsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( + snapshots_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); snapshots_ = null; } return snapshotsBuilder_; @@ -942,21 +860,19 @@ public com.google.cloud.filestore.v1beta1.Snapshot.Builder addSnapshotsBuilder(i private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; @@ -965,22 +881,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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 { @@ -988,71 +903,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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); } @@ -1062,12 +970,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListSnapshotsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListSnapshotsResponse) private static final com.google.cloud.filestore.v1beta1.ListSnapshotsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListSnapshotsResponse(); } @@ -1076,27 +984,27 @@ public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSnapshotsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSnapshotsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1111,4 +1019,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java similarity index 69% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java index fd0791ac8e51..db2f8f67e48c 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListSnapshotsResponseOrBuilder - extends +public interface ListSnapshotsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListSnapshotsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of snapshots in the project for the specified instance.
    * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - java.util.List getSnapshotsList(); + java.util.List + getSnapshotsList(); /** - * - * *
    * A list of snapshots in the project for the specified instance.
    * 
@@ -44,8 +25,6 @@ public interface ListSnapshotsResponseOrBuilder */ com.google.cloud.filestore.v1beta1.Snapshot getSnapshots(int index); /** - * - * *
    * A list of snapshots in the project for the specified instance.
    * 
@@ -54,51 +33,43 @@ public interface ListSnapshotsResponseOrBuilder */ int getSnapshotsCount(); /** - * - * *
    * A list of snapshots in the project for the specified instance.
    * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - java.util.List + java.util.List getSnapshotsOrBuilderList(); /** - * - * *
    * A list of snapshots in the project for the specified instance.
    * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder(int index); + com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder( + int index); /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java similarity index 78% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java index 7b03697de6da..a18f34a9c251 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * Network configuration for the instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.NetworkConfig} */ -public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NetworkConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.NetworkConfig) NetworkConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NetworkConfig.newBuilder() to construct. private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NetworkConfig() { network_ = ""; modes_ = java.util.Collections.emptyList(); @@ -47,43 +29,39 @@ private NetworkConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NetworkConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.NetworkConfig.class, - com.google.cloud.filestore.v1beta1.NetworkConfig.Builder.class); + com.google.cloud.filestore.v1beta1.NetworkConfig.class, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder.class); } /** - * - * *
    * Internet protocol versions supported by Filestore.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.NetworkConfig.AddressMode} */ - public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { + public enum AddressMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Internet protocol not set.
      * 
@@ -92,8 +70,6 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { */ ADDRESS_MODE_UNSPECIFIED(0), /** - * - * *
      * Use the IPv4 internet protocol.
      * 
@@ -105,8 +81,6 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Internet protocol not set.
      * 
@@ -115,8 +89,6 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADDRESS_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Use the IPv4 internet protocol.
      * 
@@ -125,6 +97,7 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MODE_IPV4_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -149,47 +122,48 @@ public static AddressMode valueOf(int value) { */ public static AddressMode forNumber(int value) { switch (value) { - case 0: - return ADDRESS_MODE_UNSPECIFIED; - case 1: - return MODE_IPV4; - default: - return null; + case 0: return ADDRESS_MODE_UNSPECIFIED; + case 1: return MODE_IPV4; + 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< + AddressMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AddressMode findValueByNumber(int number) { + return AddressMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AddressMode findValueByNumber(int number) { - return AddressMode.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.filestore.v1beta1.NetworkConfig.getDescriptor().getEnumTypes().get(0); } private static final AddressMode[] VALUES = values(); - public static AddressMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AddressMode 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; @@ -207,18 +181,15 @@ private AddressMode(int value) { } /** - * - * *
    * Available connection modes.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode} */ - public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { + public enum ConnectMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * ConnectMode not set.
      * 
@@ -227,8 +198,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { */ CONNECT_MODE_UNSPECIFIED(0), /** - * - * *
      * Connect via direct peering to the Filestore service.
      * 
@@ -237,8 +206,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { */ DIRECT_PEERING(1), /** - * - * *
      * Connect to your Filestore instance using Private Service
      * Access. Private services access provides an IP address range for multiple
@@ -252,8 +219,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * ConnectMode not set.
      * 
@@ -262,8 +227,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONNECT_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Connect via direct peering to the Filestore service.
      * 
@@ -272,8 +235,6 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DIRECT_PEERING_VALUE = 1; /** - * - * *
      * Connect to your Filestore instance using Private Service
      * Access. Private services access provides an IP address range for multiple
@@ -284,6 +245,7 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PRIVATE_SERVICE_ACCESS_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -308,49 +270,49 @@ public static ConnectMode valueOf(int value) {
      */
     public static ConnectMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return CONNECT_MODE_UNSPECIFIED;
-        case 1:
-          return DIRECT_PEERING;
-        case 2:
-          return PRIVATE_SERVICE_ACCESS;
-        default:
-          return null;
+        case 0: return CONNECT_MODE_UNSPECIFIED;
+        case 1: return DIRECT_PEERING;
+        case 2: return PRIVATE_SERVICE_ACCESS;
+        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<
+        ConnectMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ConnectMode findValueByNumber(int number) {
+              return ConnectMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public ConnectMode findValueByNumber(int number) {
-            return ConnectMode.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.filestore.v1beta1.NetworkConfig.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final ConnectMode[] VALUES = values();
 
-    public static ConnectMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static ConnectMode 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;
@@ -370,8 +332,6 @@ private ConnectMode(int value) {
   public static final int NETWORK_FIELD_NUMBER = 1;
   private volatile java.lang.Object network_;
   /**
-   *
-   *
    * 
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -379,7 +339,6 @@ private ConnectMode(int value) {
    * 
* * string network = 1; - * * @return The network. */ @java.lang.Override @@ -388,15 +347,14 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -404,15 +362,16 @@ public java.lang.String getNetwork() {
    * 
* * string network = 1; - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -423,49 +382,36 @@ public com.google.protobuf.ByteString getNetworkBytes() { public static final int MODES_FIELD_NUMBER = 3; private java.util.List modes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode> - modes_converter_ = + java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode> modes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>() { - public com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode convert( - java.lang.Integer from) { + public com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode result = - com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode.valueOf(from); - return result == null - ? com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode result = com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode.valueOf(from); + return result == null ? com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode.UNRECOGNIZED : result; } }; /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the modes. */ @java.lang.Override - public java.util.List - getModesList() { + public java.util.List getModesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>( - modes_, modes_converter_); + java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>(modes_, modes_converter_); } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return The count of modes. */ @java.lang.Override @@ -473,15 +419,12 @@ public int getModesCount() { return modes_.size(); } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the element to return. * @return The modes at the given index. */ @@ -490,31 +433,26 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode getModes(int return modes_converter_.convert(modes_.get(index)); } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the enum numeric values on the wire for modes. */ @java.lang.Override - public java.util.List getModesValueList() { + public java.util.List + getModesValueList() { return modes_; } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ @@ -522,14 +460,11 @@ public java.util.List getModesValueList() { public int getModesValue(int index) { return modes_.get(index); } - private int modesMemoizedSerializedSize; public static final int RESERVED_IP_RANGE_FIELD_NUMBER = 4; private volatile java.lang.Object reservedIpRange_; /** - * - * *
    * Optional, reserved_ip_range can have one of the following two types of
    * values.
@@ -551,7 +486,6 @@ public int getModesValue(int index) {
    * 
* * string reserved_ip_range = 4; - * * @return The reservedIpRange. */ @java.lang.Override @@ -560,15 +494,14 @@ public java.lang.String getReservedIpRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; } } /** - * - * *
    * Optional, reserved_ip_range can have one of the following two types of
    * values.
@@ -590,15 +523,16 @@ public java.lang.String getReservedIpRange() {
    * 
* * string reserved_ip_range = 4; - * * @return The bytes for reservedIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString getReservedIpRangeBytes() { + public com.google.protobuf.ByteString + getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -609,8 +543,6 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() { public static final int IP_ADDRESSES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList ipAddresses_; /** - * - * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -618,15 +550,13 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList getIpAddressesList() { + public com.google.protobuf.ProtocolStringList + getIpAddressesList() { return ipAddresses_; } /** - * - * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -634,15 +564,12 @@ public com.google.protobuf.ProtocolStringList getIpAddressesList() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** - * - * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -650,7 +577,6 @@ public int getIpAddressesCount() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -658,8 +584,6 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** - * - * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -667,56 +591,44 @@ public java.lang.String getIpAddresses(int index) {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString + getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } public static final int CONNECT_MODE_FIELD_NUMBER = 6; private int connectMode_; /** - * - * *
    * The network connect mode of the Filestore instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; - * * @return The enum numeric value on the wire for connectMode. */ - @java.lang.Override - public int getConnectModeValue() { + @java.lang.Override public int getConnectModeValue() { return connectMode_; } /** - * - * *
    * The network connect mode of the Filestore instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; - * * @return The connectMode. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode getConnectMode() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode getConnectMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode result = - com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.valueOf(connectMode_); - return result == null - ? com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode result = com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.valueOf(connectMode_); + return result == null ? com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -728,7 +640,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); @@ -746,9 +659,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < ipAddresses_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ipAddresses_.getRaw(i)); } - if (connectMode_ - != com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.CONNECT_MODE_UNSPECIFIED - .getNumber()) { + if (connectMode_ != com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(6, connectMode_); } getUnknownFields().writeTo(output); @@ -766,14 +677,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < modes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(modes_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(modes_.get(i)); } size += dataSize; - if (!getModesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - modesMemoizedSerializedSize = dataSize; + if (!getModesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }modesMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservedIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reservedIpRange_); @@ -786,10 +697,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getIpAddressesList().size(); } - if (connectMode_ - != com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.CONNECT_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, connectMode_); + if (connectMode_ != com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, connectMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -799,18 +709,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.filestore.v1beta1.NetworkConfig)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.NetworkConfig other = - (com.google.cloud.filestore.v1beta1.NetworkConfig) obj; + com.google.cloud.filestore.v1beta1.NetworkConfig other = (com.google.cloud.filestore.v1beta1.NetworkConfig) obj; - if (!getNetwork().equals(other.getNetwork())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; if (!modes_.equals(other.modes_)) return false; - if (!getReservedIpRange().equals(other.getReservedIpRange())) return false; - if (!getIpAddressesList().equals(other.getIpAddressesList())) return false; + if (!getReservedIpRange() + .equals(other.getReservedIpRange())) return false; + if (!getIpAddressesList() + .equals(other.getIpAddressesList())) return false; if (connectMode_ != other.connectMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -842,136 +754,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.NetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.NetworkConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Network configuration for the instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.NetworkConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.NetworkConfig) com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.NetworkConfig.class, - com.google.cloud.filestore.v1beta1.NetworkConfig.Builder.class); + com.google.cloud.filestore.v1beta1.NetworkConfig.class, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.NetworkConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -989,9 +895,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; } @java.lang.Override @@ -1010,8 +916,7 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.NetworkConfig buildPartial() { - com.google.cloud.filestore.v1beta1.NetworkConfig result = - new com.google.cloud.filestore.v1beta1.NetworkConfig(this); + com.google.cloud.filestore.v1beta1.NetworkConfig result = new com.google.cloud.filestore.v1beta1.NetworkConfig(this); int from_bitField0_ = bitField0_; result.network_ = network_; if (((bitField0_ & 0x00000001) != 0)) { @@ -1034,39 +939,38 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig 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.filestore.v1beta1.NetworkConfig) { - return mergeFrom((com.google.cloud.filestore.v1beta1.NetworkConfig) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.NetworkConfig)other); } else { super.mergeFrom(other); return this; @@ -1074,8 +978,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.NetworkConfig other) { - if (other == com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance()) return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); @@ -1133,57 +1036,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - network_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 24: - { + case 10: { + network_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 24: { + int tmpRaw = input.readEnum(); + ensureModesIsMutable(); + modes_.add(tmpRaw); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureModesIsMutable(); modes_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureModesIsMutable(); - modes_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 34: - { - reservedIpRange_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpAddressesIsMutable(); - ipAddresses_.add(s); - break; - } // case 42 - case 48: - { - connectMode_ = input.readEnum(); - - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 26 + case 34: { + reservedIpRange_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureIpAddressesIsMutable(); + ipAddresses_.add(s); + break; + } // case 42 + case 48: { + connectMode_ = input.readEnum(); + + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1193,13 +1089,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object network_ = ""; /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1207,13 +1100,13 @@ public Builder mergeFrom(
      * 
* * string network = 1; - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -1222,8 +1115,6 @@ public java.lang.String getNetwork() { } } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1231,14 +1122,15 @@ public java.lang.String getNetwork() {
      * 
* * string network = 1; - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -1246,8 +1138,6 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1255,22 +1145,20 @@ public com.google.protobuf.ByteString getNetworkBytes() {
      * 
* * string network = 1; - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { + public Builder setNetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1278,18 +1166,15 @@ public Builder setNetwork(java.lang.String value) {
      * 
* * string network = 1; - * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1297,23 +1182,23 @@ public Builder clearNetwork() {
      * 
* * string network = 1; - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; } - private java.util.List modes_ = java.util.Collections.emptyList(); - + private java.util.List modes_ = + java.util.Collections.emptyList(); private void ensureModesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { modes_ = new java.util.ArrayList(modes_); @@ -1321,48 +1206,37 @@ private void ensureModesIsMutable() { } } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the modes. */ - public java.util.List - getModesList() { + public java.util.List getModesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>( - modes_, modes_converter_); + java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>(modes_, modes_converter_); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return The count of modes. */ public int getModesCount() { return modes_.size(); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the element to return. * @return The modes at the given index. */ @@ -1370,15 +1244,12 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode getModes(int return modes_converter_.convert(modes_.get(index)); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index to set the value at. * @param value The modes to set. * @return This builder for chaining. @@ -1394,15 +1265,12 @@ public Builder setModes( return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param value The modes to add. * @return This builder for chaining. */ @@ -1416,21 +1284,17 @@ public Builder addModes(com.google.cloud.filestore.v1beta1.NetworkConfig.Address return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param values The modes to add. * @return This builder for chaining. */ public Builder addAllModes( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureModesIsMutable(); for (com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode value : values) { modes_.add(value.getNumber()); @@ -1439,15 +1303,12 @@ public Builder addAllModes( return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return This builder for chaining. */ public Builder clearModes() { @@ -1457,30 +1318,25 @@ public Builder clearModes() { return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the enum numeric values on the wire for modes. */ - public java.util.List getModesValueList() { + public java.util.List + getModesValueList() { return java.util.Collections.unmodifiableList(modes_); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ @@ -1488,35 +1344,30 @@ public int getModesValue(int index) { return modes_.get(index); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index to set the value at. * @param value The enum numeric value on the wire for modes to set. * @return This builder for chaining. */ - public Builder setModesValue(int index, int value) { + public Builder setModesValue( + int index, int value) { ensureModesIsMutable(); modes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param value The enum numeric value on the wire for modes to add. * @return This builder for chaining. */ @@ -1527,19 +1378,17 @@ public Builder addModesValue(int value) { return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param values The enum numeric values on the wire for modes to add. * @return This builder for chaining. */ - public Builder addAllModesValue(java.lang.Iterable values) { + public Builder addAllModesValue( + java.lang.Iterable values) { ensureModesIsMutable(); for (int value : values) { modes_.add(value); @@ -1550,8 +1399,6 @@ public Builder addAllModesValue(java.lang.Iterable values) { private java.lang.Object reservedIpRange_ = ""; /** - * - * *
      * Optional, reserved_ip_range can have one of the following two types of
      * values.
@@ -1573,13 +1420,13 @@ public Builder addAllModesValue(java.lang.Iterable values) {
      * 
* * string reserved_ip_range = 4; - * * @return The reservedIpRange. */ public java.lang.String getReservedIpRange() { java.lang.Object ref = reservedIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; @@ -1588,8 +1435,6 @@ public java.lang.String getReservedIpRange() { } } /** - * - * *
      * Optional, reserved_ip_range can have one of the following two types of
      * values.
@@ -1611,14 +1456,15 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 4; - * * @return The bytes for reservedIpRange. */ - public com.google.protobuf.ByteString getReservedIpRangeBytes() { + public com.google.protobuf.ByteString + getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -1626,8 +1472,6 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() { } } /** - * - * *
      * Optional, reserved_ip_range can have one of the following two types of
      * values.
@@ -1649,22 +1493,20 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
      * 
* * string reserved_ip_range = 4; - * * @param value The reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRange(java.lang.String value) { + public Builder setReservedIpRange( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reservedIpRange_ = value; onChanged(); return this; } /** - * - * *
      * Optional, reserved_ip_range can have one of the following two types of
      * values.
@@ -1686,18 +1528,15 @@ public Builder setReservedIpRange(java.lang.String value) {
      * 
* * string reserved_ip_range = 4; - * * @return This builder for chaining. */ public Builder clearReservedIpRange() { - + reservedIpRange_ = getDefaultInstance().getReservedIpRange(); onChanged(); return this; } /** - * - * *
      * Optional, reserved_ip_range can have one of the following two types of
      * values.
@@ -1719,33 +1558,29 @@ public Builder clearReservedIpRange() {
      * 
* * string reserved_ip_range = 4; - * * @param value The bytes for reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) { + public Builder setReservedIpRangeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reservedIpRange_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ipAddresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpAddressesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ipAddresses_ = new com.google.protobuf.LazyStringArrayList(ipAddresses_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1753,15 +1588,13 @@ private void ensureIpAddressesIsMutable() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList getIpAddressesList() { + public com.google.protobuf.ProtocolStringList + getIpAddressesList() { return ipAddresses_.getUnmodifiableView(); } /** - * - * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1769,15 +1602,12 @@ public com.google.protobuf.ProtocolStringList getIpAddressesList() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** - * - * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1785,7 +1615,6 @@ public int getIpAddressesCount() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -1793,8 +1622,6 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** - * - * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1802,16 +1629,14 @@ public java.lang.String getIpAddresses(int index) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString + getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } /** - * - * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1819,23 +1644,21 @@ public com.google.protobuf.ByteString getIpAddressesBytes(int index) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index to set the value at. * @param value The ipAddresses to set. * @return This builder for chaining. */ - public Builder setIpAddresses(int index, java.lang.String value) { + public Builder setIpAddresses( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1843,22 +1666,20 @@ public Builder setIpAddresses(int index, java.lang.String value) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddresses(java.lang.String value) { + public Builder addIpAddresses( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1866,19 +1687,18 @@ public Builder addIpAddresses(java.lang.String value) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param values The ipAddresses to add. * @return This builder for chaining. */ - public Builder addAllIpAddresses(java.lang.Iterable values) { + public Builder addAllIpAddresses( + java.lang.Iterable values) { ensureIpAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ipAddresses_); onChanged(); return this; } /** - * - * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1886,7 +1706,6 @@ public Builder addAllIpAddresses(java.lang.Iterable values) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearIpAddresses() { @@ -1896,8 +1715,6 @@ public Builder clearIpAddresses() { return this; } /** - * - * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1905,15 +1722,15 @@ public Builder clearIpAddresses() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes of the ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { + public Builder addIpAddressesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); @@ -1922,105 +1739,85 @@ public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { private int connectMode_ = 0; /** - * - * *
      * The network connect mode of the Filestore instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; - * * @return The enum numeric value on the wire for connectMode. */ - @java.lang.Override - public int getConnectModeValue() { + @java.lang.Override public int getConnectModeValue() { return connectMode_; } /** - * - * *
      * The network connect mode of the Filestore instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; - * * @param value The enum numeric value on the wire for connectMode to set. * @return This builder for chaining. */ public Builder setConnectModeValue(int value) { - + connectMode_ = value; onChanged(); return this; } /** - * - * *
      * The network connect mode of the Filestore instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; - * * @return The connectMode. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode getConnectMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode result = - com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.valueOf(connectMode_); - return result == null - ? com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode result = com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.valueOf(connectMode_); + return result == null ? com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.UNRECOGNIZED : result; } /** - * - * *
      * The network connect mode of the Filestore instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; - * * @param value The connectMode to set. * @return This builder for chaining. */ - public Builder setConnectMode( - com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode value) { + public Builder setConnectMode(com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode value) { if (value == null) { throw new NullPointerException(); } - + connectMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The network connect mode of the Filestore instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; - * * @return This builder for chaining. */ public Builder clearConnectMode() { - + connectMode_ = 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); } @@ -2030,12 +1827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.NetworkConfig) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.NetworkConfig) private static final com.google.cloud.filestore.v1beta1.NetworkConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.NetworkConfig(); } @@ -2044,27 +1841,27 @@ public static com.google.cloud.filestore.v1beta1.NetworkConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2079,4 +1876,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.NetworkConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java similarity index 87% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java index a923cb8ed67d..ad43b3781bbe 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface NetworkConfigOrBuilder - extends +public interface NetworkConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.NetworkConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -33,13 +15,10 @@ public interface NetworkConfigOrBuilder
    * 
* * string network = 1; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -47,82 +26,66 @@ public interface NetworkConfigOrBuilder
    * 
* * string network = 1; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the modes. */ java.util.List getModesList(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return The count of modes. */ int getModesCount(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the element to return. * @return The modes at the given index. */ com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode getModes(int index); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the enum numeric values on the wire for modes. */ - java.util.List getModesValueList(); + java.util.List + getModesValueList(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ int getModesValue(int index); /** - * - * *
    * Optional, reserved_ip_range can have one of the following two types of
    * values.
@@ -144,13 +107,10 @@ public interface NetworkConfigOrBuilder
    * 
* * string reserved_ip_range = 4; - * * @return The reservedIpRange. */ java.lang.String getReservedIpRange(); /** - * - * *
    * Optional, reserved_ip_range can have one of the following two types of
    * values.
@@ -172,14 +132,12 @@ public interface NetworkConfigOrBuilder
    * 
* * string reserved_ip_range = 4; - * * @return The bytes for reservedIpRange. */ - com.google.protobuf.ByteString getReservedIpRangeBytes(); + com.google.protobuf.ByteString + getReservedIpRangeBytes(); /** - * - * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -187,13 +145,11 @@ public interface NetworkConfigOrBuilder
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the ipAddresses. */ - java.util.List getIpAddressesList(); + java.util.List + getIpAddressesList(); /** - * - * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -201,13 +157,10 @@ public interface NetworkConfigOrBuilder
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of ipAddresses. */ int getIpAddressesCount(); /** - * - * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -215,14 +168,11 @@ public interface NetworkConfigOrBuilder
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ java.lang.String getIpAddresses(int index); /** - * - * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -230,35 +180,29 @@ public interface NetworkConfigOrBuilder
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - com.google.protobuf.ByteString getIpAddressesBytes(int index); + com.google.protobuf.ByteString + getIpAddressesBytes(int index); /** - * - * *
    * The network connect mode of the Filestore instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; - * * @return The enum numeric value on the wire for connectMode. */ int getConnectModeValue(); /** - * - * *
    * The network connect mode of the Filestore instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; - * * @return The connectMode. */ com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode getConnectMode(); diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java similarity index 75% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java index 945d52887e71..cb1fee60c8e2 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * NFS export options specifications.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.NfsExportOptions} */ -public final class NfsExportOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NfsExportOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.NfsExportOptions) NfsExportOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NfsExportOptions.newBuilder() to construct. private NfsExportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NfsExportOptions() { ipRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; accessMode_ = 0; @@ -45,43 +27,39 @@ private NfsExportOptions() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NfsExportOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.NfsExportOptions.class, - com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder.class); + com.google.cloud.filestore.v1beta1.NfsExportOptions.class, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder.class); } /** - * - * *
    * The access mode.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode} */ - public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { + public enum AccessMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * AccessMode not set.
      * 
@@ -90,8 +68,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ ACCESS_MODE_UNSPECIFIED(0), /** - * - * *
      * The client can only read the file share.
      * 
@@ -100,8 +76,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ READ_ONLY(1), /** - * - * *
      * The client can read and write the file share (default).
      * 
@@ -113,8 +87,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * AccessMode not set.
      * 
@@ -123,8 +95,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACCESS_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The client can only read the file share.
      * 
@@ -133,8 +103,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READ_ONLY_VALUE = 1; /** - * - * *
      * The client can read and write the file share (default).
      * 
@@ -143,6 +111,7 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READ_WRITE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -167,51 +136,49 @@ public static AccessMode valueOf(int value) { */ public static AccessMode forNumber(int value) { switch (value) { - case 0: - return ACCESS_MODE_UNSPECIFIED; - case 1: - return READ_ONLY; - case 2: - return READ_WRITE; - default: - return null; + case 0: return ACCESS_MODE_UNSPECIFIED; + case 1: return READ_ONLY; + case 2: return READ_WRITE; + 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< + AccessMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AccessMode findValueByNumber(int number) { + return AccessMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AccessMode findValueByNumber(int number) { - return AccessMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.NfsExportOptions.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.NfsExportOptions.getDescriptor().getEnumTypes().get(0); } private static final AccessMode[] VALUES = values(); - public static AccessMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AccessMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -229,18 +196,15 @@ private AccessMode(int value) { } /** - * - * *
    * The squash mode.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode} */ - public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { + public enum SquashMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * SquashMode not set.
      * 
@@ -249,8 +213,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ SQUASH_MODE_UNSPECIFIED(0), /** - * - * *
      * The Root user has root access to the file share (default).
      * 
@@ -259,8 +221,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ NO_ROOT_SQUASH(1), /** - * - * *
      * The Root user has squashed access to the anonymous uid/gid.
      * 
@@ -272,8 +232,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * SquashMode not set.
      * 
@@ -282,8 +240,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SQUASH_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Root user has root access to the file share (default).
      * 
@@ -292,8 +248,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_ROOT_SQUASH_VALUE = 1; /** - * - * *
      * The Root user has squashed access to the anonymous uid/gid.
      * 
@@ -302,6 +256,7 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROOT_SQUASH_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -326,51 +281,49 @@ public static SquashMode valueOf(int value) { */ public static SquashMode forNumber(int value) { switch (value) { - case 0: - return SQUASH_MODE_UNSPECIFIED; - case 1: - return NO_ROOT_SQUASH; - case 2: - return ROOT_SQUASH; - default: - return null; + case 0: return SQUASH_MODE_UNSPECIFIED; + case 1: return NO_ROOT_SQUASH; + case 2: return ROOT_SQUASH; + 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< + SquashMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SquashMode findValueByNumber(int number) { + return SquashMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SquashMode findValueByNumber(int number) { - return SquashMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.NfsExportOptions.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.NfsExportOptions.getDescriptor().getEnumTypes().get(1); } private static final SquashMode[] VALUES = values(); - public static SquashMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SquashMode 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; @@ -390,8 +343,6 @@ private SquashMode(int value) { public static final int IP_RANGES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList ipRanges_; /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -404,15 +355,13 @@ private SquashMode(int value) {
    * 
* * repeated string ip_ranges = 1; - * * @return A list containing the ipRanges. */ - public com.google.protobuf.ProtocolStringList getIpRangesList() { + public com.google.protobuf.ProtocolStringList + getIpRangesList() { return ipRanges_; } /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -425,15 +374,12 @@ public com.google.protobuf.ProtocolStringList getIpRangesList() {
    * 
* * repeated string ip_ranges = 1; - * * @return The count of ipRanges. */ public int getIpRangesCount() { return ipRanges_.size(); } /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -446,7 +392,6 @@ public int getIpRangesCount() {
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the element to return. * @return The ipRanges at the given index. */ @@ -454,8 +399,6 @@ public java.lang.String getIpRanges(int index) { return ipRanges_.get(index); } /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -468,19 +411,17 @@ public java.lang.String getIpRanges(int index) {
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - public com.google.protobuf.ByteString getIpRangesBytes(int index) { + public com.google.protobuf.ByteString + getIpRangesBytes(int index) { return ipRanges_.getByteString(index); } public static final int ACCESS_MODE_FIELD_NUMBER = 2; private int accessMode_; /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -488,16 +429,12 @@ public com.google.protobuf.ByteString getIpRangesBytes(int index) {
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The enum numeric value on the wire for accessMode. */ - @java.lang.Override - public int getAccessModeValue() { + @java.lang.Override public int getAccessModeValue() { return accessMode_; } /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -505,24 +442,17 @@ public int getAccessModeValue() {
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The accessMode. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessMode() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode result = - com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.valueOf(accessMode_); - return result == null - ? com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode result = com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.valueOf(accessMode_); + return result == null ? com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.UNRECOGNIZED : result; } public static final int SQUASH_MODE_FIELD_NUMBER = 3; private int squashMode_; /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -530,16 +460,12 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessM
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The enum numeric value on the wire for squashMode. */ - @java.lang.Override - public int getSquashModeValue() { + @java.lang.Override public int getSquashModeValue() { return squashMode_; } /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -547,24 +473,17 @@ public int getSquashModeValue() {
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The squashMode. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashMode() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode result = - com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.valueOf(squashMode_); - return result == null - ? com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode result = com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.valueOf(squashMode_); + return result == null ? com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.UNRECOGNIZED : result; } public static final int ANON_UID_FIELD_NUMBER = 4; private long anonUid_; /** - * - * *
    * An integer representing the anonymous user id with a default value of
    * 65534.
@@ -573,7 +492,6 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashM
    * 
* * int64 anon_uid = 4; - * * @return The anonUid. */ @java.lang.Override @@ -584,8 +502,6 @@ public long getAnonUid() { public static final int ANON_GID_FIELD_NUMBER = 5; private long anonGid_; /** - * - * *
    * An integer representing the anonymous group id with a default value of
    * 65534.
@@ -594,7 +510,6 @@ public long getAnonUid() {
    * 
* * int64 anon_gid = 5; - * * @return The anonGid. */ @java.lang.Override @@ -603,7 +518,6 @@ public long getAnonGid() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -615,18 +529,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < ipRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipRanges_.getRaw(i)); } - if (accessMode_ - != com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED - .getNumber()) { + if (accessMode_ != com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, accessMode_); } - if (squashMode_ - != com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED - .getNumber()) { + if (squashMode_ != com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(3, squashMode_); } if (anonUid_ != 0L) { @@ -652,21 +563,21 @@ public int getSerializedSize() { size += dataSize; size += 1 * getIpRangesList().size(); } - if (accessMode_ - != com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, accessMode_); + if (accessMode_ != com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, accessMode_); } - if (squashMode_ - != com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, squashMode_); + if (squashMode_ != com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, squashMode_); } if (anonUid_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, anonUid_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, anonUid_); } if (anonGid_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, anonGid_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, anonGid_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -676,19 +587,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.filestore.v1beta1.NfsExportOptions)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.NfsExportOptions other = - (com.google.cloud.filestore.v1beta1.NfsExportOptions) obj; + com.google.cloud.filestore.v1beta1.NfsExportOptions other = (com.google.cloud.filestore.v1beta1.NfsExportOptions) obj; - if (!getIpRangesList().equals(other.getIpRangesList())) return false; + if (!getIpRangesList() + .equals(other.getIpRangesList())) return false; if (accessMode_ != other.accessMode_) return false; if (squashMode_ != other.squashMode_) return false; - if (getAnonUid() != other.getAnonUid()) return false; - if (getAnonGid() != other.getAnonGid()) return false; + if (getAnonUid() + != other.getAnonUid()) return false; + if (getAnonGid() + != other.getAnonGid()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -709,144 +622,140 @@ public int hashCode() { hash = (37 * hash) + SQUASH_MODE_FIELD_NUMBER; hash = (53 * hash) + squashMode_; hash = (37 * hash) + ANON_UID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAnonUid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAnonUid()); hash = (37 * hash) + ANON_GID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAnonGid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAnonGid()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( - java.nio.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.filestore.v1beta1.NfsExportOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.NfsExportOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.NfsExportOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * NFS export options specifications.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.NfsExportOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.NfsExportOptions) com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.NfsExportOptions.class, - com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder.class); + com.google.cloud.filestore.v1beta1.NfsExportOptions.class, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.NfsExportOptions.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -864,9 +773,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; } @java.lang.Override @@ -885,8 +794,7 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions buildPartial() { - com.google.cloud.filestore.v1beta1.NfsExportOptions result = - new com.google.cloud.filestore.v1beta1.NfsExportOptions(this); + com.google.cloud.filestore.v1beta1.NfsExportOptions result = new com.google.cloud.filestore.v1beta1.NfsExportOptions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { ipRanges_ = ipRanges_.getUnmodifiableView(); @@ -905,39 +813,38 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions 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.filestore.v1beta1.NfsExportOptions) { - return mergeFrom((com.google.cloud.filestore.v1beta1.NfsExportOptions) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.NfsExportOptions)other); } else { super.mergeFrom(other); return this; @@ -945,8 +852,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.NfsExportOptions other) { - if (other == com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()) return this; if (!other.ipRanges_.isEmpty()) { if (ipRanges_.isEmpty()) { ipRanges_ = other.ipRanges_; @@ -995,44 +901,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpRangesIsMutable(); - ipRanges_.add(s); - break; - } // case 10 - case 16: - { - accessMode_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - squashMode_ = input.readEnum(); - - break; - } // case 24 - case 32: - { - anonUid_ = input.readInt64(); - - break; - } // case 32 - case 40: - { - anonGid_ = input.readInt64(); - - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureIpRangesIsMutable(); + ipRanges_.add(s); + break; + } // case 10 + case 16: { + accessMode_ = input.readEnum(); + + break; + } // case 16 + case 24: { + squashMode_ = input.readEnum(); + + break; + } // case 24 + case 32: { + anonUid_ = input.readInt64(); + + break; + } // case 32 + case 40: { + anonGid_ = input.readInt64(); + + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1042,21 +942,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList ipRanges_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ipRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpRangesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ipRanges_ = new com.google.protobuf.LazyStringArrayList(ipRanges_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1069,15 +964,13 @@ private void ensureIpRangesIsMutable() {
      * 
* * repeated string ip_ranges = 1; - * * @return A list containing the ipRanges. */ - public com.google.protobuf.ProtocolStringList getIpRangesList() { + public com.google.protobuf.ProtocolStringList + getIpRangesList() { return ipRanges_.getUnmodifiableView(); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1090,15 +983,12 @@ public com.google.protobuf.ProtocolStringList getIpRangesList() {
      * 
* * repeated string ip_ranges = 1; - * * @return The count of ipRanges. */ public int getIpRangesCount() { return ipRanges_.size(); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1111,7 +1001,6 @@ public int getIpRangesCount() {
      * 
* * repeated string ip_ranges = 1; - * * @param index The index of the element to return. * @return The ipRanges at the given index. */ @@ -1119,8 +1008,6 @@ public java.lang.String getIpRanges(int index) { return ipRanges_.get(index); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1133,16 +1020,14 @@ public java.lang.String getIpRanges(int index) {
      * 
* * repeated string ip_ranges = 1; - * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - public com.google.protobuf.ByteString getIpRangesBytes(int index) { + public com.google.protobuf.ByteString + getIpRangesBytes(int index) { return ipRanges_.getByteString(index); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1155,23 +1040,21 @@ public com.google.protobuf.ByteString getIpRangesBytes(int index) {
      * 
* * repeated string ip_ranges = 1; - * * @param index The index to set the value at. * @param value The ipRanges to set. * @return This builder for chaining. */ - public Builder setIpRanges(int index, java.lang.String value) { + public Builder setIpRanges( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpRangesIsMutable(); + throw new NullPointerException(); + } + ensureIpRangesIsMutable(); ipRanges_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1184,22 +1067,20 @@ public Builder setIpRanges(int index, java.lang.String value) {
      * 
* * repeated string ip_ranges = 1; - * * @param value The ipRanges to add. * @return This builder for chaining. */ - public Builder addIpRanges(java.lang.String value) { + public Builder addIpRanges( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpRangesIsMutable(); + throw new NullPointerException(); + } + ensureIpRangesIsMutable(); ipRanges_.add(value); onChanged(); return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1212,19 +1093,18 @@ public Builder addIpRanges(java.lang.String value) {
      * 
* * repeated string ip_ranges = 1; - * * @param values The ipRanges to add. * @return This builder for chaining. */ - public Builder addAllIpRanges(java.lang.Iterable values) { + public Builder addAllIpRanges( + java.lang.Iterable values) { ensureIpRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipRanges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ipRanges_); onChanged(); return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1237,7 +1117,6 @@ public Builder addAllIpRanges(java.lang.Iterable values) {
      * 
* * repeated string ip_ranges = 1; - * * @return This builder for chaining. */ public Builder clearIpRanges() { @@ -1247,8 +1126,6 @@ public Builder clearIpRanges() { return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1261,15 +1138,15 @@ public Builder clearIpRanges() {
      * 
* * repeated string ip_ranges = 1; - * * @param value The bytes of the ipRanges to add. * @return This builder for chaining. */ - public Builder addIpRangesBytes(com.google.protobuf.ByteString value) { + public Builder addIpRangesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpRangesIsMutable(); ipRanges_.add(value); onChanged(); @@ -1278,8 +1155,6 @@ public Builder addIpRangesBytes(com.google.protobuf.ByteString value) { private int accessMode_ = 0; /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1287,16 +1162,12 @@ public Builder addIpRangesBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The enum numeric value on the wire for accessMode. */ - @java.lang.Override - public int getAccessModeValue() { + @java.lang.Override public int getAccessModeValue() { return accessMode_; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1304,19 +1175,16 @@ public int getAccessModeValue() {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @param value The enum numeric value on the wire for accessMode to set. * @return This builder for chaining. */ public Builder setAccessModeValue(int value) { - + accessMode_ = value; onChanged(); return this; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1324,21 +1192,15 @@ public Builder setAccessModeValue(int value) {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The accessMode. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode result = - com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.valueOf(accessMode_); - return result == null - ? com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode result = com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.valueOf(accessMode_); + return result == null ? com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.UNRECOGNIZED : result; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1346,23 +1208,19 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessM
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @param value The accessMode to set. * @return This builder for chaining. */ - public Builder setAccessMode( - com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode value) { + public Builder setAccessMode(com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode value) { if (value == null) { throw new NullPointerException(); } - + accessMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1370,11 +1228,10 @@ public Builder setAccessMode(
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @return This builder for chaining. */ public Builder clearAccessMode() { - + accessMode_ = 0; onChanged(); return this; @@ -1382,8 +1239,6 @@ public Builder clearAccessMode() { private int squashMode_ = 0; /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1391,16 +1246,12 @@ public Builder clearAccessMode() {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The enum numeric value on the wire for squashMode. */ - @java.lang.Override - public int getSquashModeValue() { + @java.lang.Override public int getSquashModeValue() { return squashMode_; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1408,19 +1259,16 @@ public int getSquashModeValue() {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @param value The enum numeric value on the wire for squashMode to set. * @return This builder for chaining. */ public Builder setSquashModeValue(int value) { - + squashMode_ = value; onChanged(); return this; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1428,21 +1276,15 @@ public Builder setSquashModeValue(int value) {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The squashMode. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode result = - com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.valueOf(squashMode_); - return result == null - ? com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode result = com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.valueOf(squashMode_); + return result == null ? com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.UNRECOGNIZED : result; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1450,23 +1292,19 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashM
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @param value The squashMode to set. * @return This builder for chaining. */ - public Builder setSquashMode( - com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode value) { + public Builder setSquashMode(com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode value) { if (value == null) { throw new NullPointerException(); } - + squashMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1474,20 +1312,17 @@ public Builder setSquashMode(
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return This builder for chaining. */ public Builder clearSquashMode() { - + squashMode_ = 0; onChanged(); return this; } - private long anonUid_; + private long anonUid_ ; /** - * - * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1496,7 +1331,6 @@ public Builder clearSquashMode() {
      * 
* * int64 anon_uid = 4; - * * @return The anonUid. */ @java.lang.Override @@ -1504,8 +1338,6 @@ public long getAnonUid() { return anonUid_; } /** - * - * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1514,19 +1346,16 @@ public long getAnonUid() {
      * 
* * int64 anon_uid = 4; - * * @param value The anonUid to set. * @return This builder for chaining. */ public Builder setAnonUid(long value) { - + anonUid_ = value; onChanged(); return this; } /** - * - * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1535,20 +1364,17 @@ public Builder setAnonUid(long value) {
      * 
* * int64 anon_uid = 4; - * * @return This builder for chaining. */ public Builder clearAnonUid() { - + anonUid_ = 0L; onChanged(); return this; } - private long anonGid_; + private long anonGid_ ; /** - * - * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1557,7 +1383,6 @@ public Builder clearAnonUid() {
      * 
* * int64 anon_gid = 5; - * * @return The anonGid. */ @java.lang.Override @@ -1565,8 +1390,6 @@ public long getAnonGid() { return anonGid_; } /** - * - * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1575,19 +1398,16 @@ public long getAnonGid() {
      * 
* * int64 anon_gid = 5; - * * @param value The anonGid to set. * @return This builder for chaining. */ public Builder setAnonGid(long value) { - + anonGid_ = value; onChanged(); return this; } /** - * - * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1596,18 +1416,17 @@ public Builder setAnonGid(long value) {
      * 
* * int64 anon_gid = 5; - * * @return This builder for chaining. */ public Builder clearAnonGid() { - + anonGid_ = 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); } @@ -1617,12 +1436,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.NfsExportOptions) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.NfsExportOptions) private static final com.google.cloud.filestore.v1beta1.NfsExportOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.NfsExportOptions(); } @@ -1631,27 +1450,27 @@ public static com.google.cloud.filestore.v1beta1.NfsExportOptions getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NfsExportOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NfsExportOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1666,4 +1485,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.NfsExportOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java similarity index 84% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java index 26e0487d1284..785eea1ec756 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface NfsExportOptionsOrBuilder - extends +public interface NfsExportOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.NfsExportOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -38,13 +20,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @return A list containing the ipRanges. */ - java.util.List getIpRangesList(); + java.util.List + getIpRangesList(); /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -57,13 +37,10 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @return The count of ipRanges. */ int getIpRangesCount(); /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -76,14 +53,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the element to return. * @return The ipRanges at the given index. */ java.lang.String getIpRanges(int index); /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -96,15 +70,13 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - com.google.protobuf.ByteString getIpRangesBytes(int index); + com.google.protobuf.ByteString + getIpRangesBytes(int index); /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -112,13 +84,10 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The enum numeric value on the wire for accessMode. */ int getAccessModeValue(); /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -126,14 +95,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The accessMode. */ com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessMode(); /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -141,13 +107,10 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The enum numeric value on the wire for squashMode. */ int getSquashModeValue(); /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -155,14 +118,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The squashMode. */ com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashMode(); /** - * - * *
    * An integer representing the anonymous user id with a default value of
    * 65534.
@@ -171,14 +131,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * int64 anon_uid = 4; - * * @return The anonUid. */ long getAnonUid(); /** - * - * *
    * An integer representing the anonymous group id with a default value of
    * 65534.
@@ -187,7 +144,6 @@ public interface NfsExportOptionsOrBuilder
    * 
* * int64 anon_gid = 5; - * * @return The anonGid. */ long getAnonGid(); diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java similarity index 71% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java index 7865aca5d513..c8be597fab01 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * RestoreInstanceRequest restores an existing instance's file share from a
  * snapshot or backup.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.filestore.v1beta1.RestoreInstanceRequest}
  */
-public final class RestoreInstanceRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RestoreInstanceRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.RestoreInstanceRequest)
     RestoreInstanceRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RestoreInstanceRequest.newBuilder() to construct.
   private RestoreInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RestoreInstanceRequest() {
     name_ = "";
     fileShare_ = "";
@@ -45,42 +27,38 @@ private RestoreInstanceRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RestoreInstanceRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
-        .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
-        .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable
+    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class,
-            com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.Builder.class);
+            com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class, com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.Builder.class);
   }
 
   private int sourceCase_ = 0;
   private java.lang.Object source_;
-
   public enum SourceCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     SOURCE_SNAPSHOT(3),
     SOURCE_BACKUP(4),
     SOURCE_NOT_SET(0);
     private final int value;
-
     private SourceCase(int value) {
       this.value = value;
     }
@@ -96,40 +74,32 @@ public static SourceCase valueOf(int value) {
 
     public static SourceCase forNumber(int value) {
       switch (value) {
-        case 3:
-          return SOURCE_SNAPSHOT;
-        case 4:
-          return SOURCE_BACKUP;
-        case 0:
-          return SOURCE_NOT_SET;
-        default:
-          return null;
+        case 3: return SOURCE_SNAPSHOT;
+        case 4: return SOURCE_BACKUP;
+        case 0: return SOURCE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public SourceCase getSourceCase() {
-    return SourceCase.forNumber(sourceCase_);
+  public SourceCase
+  getSourceCase() {
+    return SourceCase.forNumber(
+        sourceCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 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 @@ -138,32 +108,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 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 { @@ -174,15 +142,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FILE_SHARE_FIELD_NUMBER = 2; private volatile java.lang.Object fileShare_; /** - * - * *
    * Required. Name of the file share in the Filestore instance that the snapshot
    * is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fileShare. */ @java.lang.Override @@ -191,30 +156,30 @@ public java.lang.String getFileShare() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileShare_ = s; return s; } } /** - * - * *
    * Required. Name of the file share in the Filestore instance that the snapshot
    * is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fileShare. */ @java.lang.Override - public com.google.protobuf.ByteString getFileShareBytes() { + public com.google.protobuf.ByteString + getFileShareBytes() { java.lang.Object ref = fileShare_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fileShare_ = b; return b; } else { @@ -224,30 +189,24 @@ public com.google.protobuf.ByteString getFileShareBytes() { public static final int SOURCE_SNAPSHOT_FIELD_NUMBER = 3; /** - * - * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceSnapshot field is set. */ public boolean hasSourceSnapshot() { return sourceCase_ == 3; } /** - * - * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The sourceSnapshot. */ public java.lang.String getSourceSnapshot() { @@ -258,7 +217,8 @@ public java.lang.String getSourceSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (sourceCase_ == 3) { source_ = s; @@ -267,25 +227,24 @@ public java.lang.String getSourceSnapshot() { } } /** - * - * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceSnapshot. */ - public com.google.protobuf.ByteString getSourceSnapshotBytes() { + public com.google.protobuf.ByteString + getSourceSnapshotBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 3) { source_ = b; } @@ -297,30 +256,24 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { public static final int SOURCE_BACKUP_FIELD_NUMBER = 4; /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ public boolean hasSourceBackup() { return sourceCase_ == 4; } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ public java.lang.String getSourceBackup() { @@ -331,7 +284,8 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (sourceCase_ == 4) { source_ = s; @@ -340,25 +294,24 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 4) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 4) { source_ = b; } @@ -369,7 +322,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,7 +333,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -423,23 +376,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.RestoreInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest other = - (com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest other = (com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getFileShare().equals(other.getFileShare())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getFileShare() + .equals(other.getFileShare())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 3: - if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false; + if (!getSourceSnapshot() + .equals(other.getSourceSnapshot())) return false; break; case 4: - if (!getSourceBackup().equals(other.getSourceBackup())) return false; + if (!getSourceBackup() + .equals(other.getSourceBackup())) return false; break; case 0: default: @@ -477,104 +433,96 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( - java.nio.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.filestore.v1beta1.RestoreInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.RestoreInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.RestoreInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * RestoreInstanceRequest restores an existing instance's file share from a
    * snapshot or backup.
@@ -582,32 +530,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.filestore.v1beta1.RestoreInstanceRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.RestoreInstanceRequest)
       com.google.cloud.filestore.v1beta1.RestoreInstanceRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
-          .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
-          .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable
+      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class,
-              com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.Builder.class);
+              com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class, com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -621,9 +570,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
-          .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor;
     }
 
     @java.lang.Override
@@ -642,8 +591,7 @@ public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest build() {
 
     @java.lang.Override
     public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest buildPartial() {
-      com.google.cloud.filestore.v1beta1.RestoreInstanceRequest result =
-          new com.google.cloud.filestore.v1beta1.RestoreInstanceRequest(this);
+      com.google.cloud.filestore.v1beta1.RestoreInstanceRequest result = new com.google.cloud.filestore.v1beta1.RestoreInstanceRequest(this);
       result.name_ = name_;
       result.fileShare_ = fileShare_;
       if (sourceCase_ == 3) {
@@ -661,39 +609,38 @@ public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest 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.filestore.v1beta1.RestoreInstanceRequest) {
-        return mergeFrom((com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) other);
+        return mergeFrom((com.google.cloud.filestore.v1beta1.RestoreInstanceRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -701,8 +648,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.filestore.v1beta1.RestoreInstanceRequest other) {
-      if (other == com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -712,24 +658,21 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.RestoreInstanceReque
         onChanged();
       }
       switch (other.getSourceCase()) {
-        case SOURCE_SNAPSHOT:
-          {
-            sourceCase_ = 3;
-            source_ = other.source_;
-            onChanged();
-            break;
-          }
-        case SOURCE_BACKUP:
-          {
-            sourceCase_ = 4;
-            source_ = other.source_;
-            onChanged();
-            break;
-          }
-        case SOURCE_NOT_SET:
-          {
-            break;
-          }
+        case SOURCE_SNAPSHOT: {
+          sourceCase_ = 3;
+          source_ = other.source_;
+          onChanged();
+          break;
+        }
+        case SOURCE_BACKUP: {
+          sourceCase_ = 4;
+          source_ = other.source_;
+          onChanged();
+          break;
+        }
+        case SOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -757,39 +700,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
+            case 10: {
+              name_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                fileShare_ = input.readStringRequireUtf8();
+              break;
+            } // case 10
+            case 18: {
+              fileShare_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                sourceCase_ = 3;
-                source_ = s;
-                break;
-              } // case 26
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                sourceCase_ = 4;
-                source_ = s;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              sourceCase_ = 3;
+              source_ = s;
+              break;
+            } // case 26
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
+              sourceCase_ = 4;
+              source_ = s;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -799,12 +737,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-
-    public SourceCase getSourceCase() {
-      return SourceCase.forNumber(sourceCase_);
+    public SourceCase
+        getSourceCase() {
+      return SourceCase.forNumber(
+          sourceCase_);
     }
 
     public Builder clearSource() {
@@ -814,25 +752,22 @@ public Builder clearSource() {
       return this;
     }
 
+
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string name = 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; @@ -841,24 +776,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string name = 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 { @@ -866,70 +798,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * 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. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string 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. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * 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; @@ -937,21 +856,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object fileShare_ = ""; /** - * - * *
      * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fileShare. */ public java.lang.String getFileShare() { java.lang.Object ref = fileShare_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileShare_ = s; return s; @@ -960,22 +877,21 @@ public java.lang.String getFileShare() { } } /** - * - * *
      * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fileShare. */ - public com.google.protobuf.ByteString getFileShareBytes() { + public com.google.protobuf.ByteString + getFileShareBytes() { java.lang.Object ref = fileShare_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fileShare_ = b; return b; } else { @@ -983,79 +899,69 @@ public com.google.protobuf.ByteString getFileShareBytes() { } } /** - * - * *
      * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The fileShare to set. * @return This builder for chaining. */ - public Builder setFileShare(java.lang.String value) { + public Builder setFileShare( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fileShare_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFileShare() { - + fileShare_ = getDefaultInstance().getFileShare(); onChanged(); return this; } /** - * - * *
      * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for fileShare to set. * @return This builder for chaining. */ - public Builder setFileShareBytes(com.google.protobuf.ByteString value) { + public Builder setFileShareBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fileShare_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceSnapshot field is set. */ @java.lang.Override @@ -1063,15 +969,12 @@ public boolean hasSourceSnapshot() { return sourceCase_ == 3; } /** - * - * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The sourceSnapshot. */ @java.lang.Override @@ -1081,7 +984,8 @@ public java.lang.String getSourceSnapshot() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (sourceCase_ == 3) { source_ = s; @@ -1092,26 +996,25 @@ public java.lang.String getSourceSnapshot() { } } /** - * - * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceSnapshot. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceSnapshotBytes() { + public com.google.protobuf.ByteString + getSourceSnapshotBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 3) { source_ = b; } @@ -1121,37 +1024,32 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { } } /** - * - * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @param value The sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshot(java.lang.String value) { + public Builder setSourceSnapshot( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 3; + throw new NullPointerException(); + } + sourceCase_ = 3; source_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSourceSnapshot() { @@ -1163,23 +1061,21 @@ public Builder clearSourceSnapshot() { return this; } /** - * - * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { + public Builder setSourceSnapshotBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 3; source_ = value; onChanged(); @@ -1187,15 +1083,12 @@ public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ @java.lang.Override @@ -1203,15 +1096,12 @@ public boolean hasSourceBackup() { return sourceCase_ == 4; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ @java.lang.Override @@ -1221,7 +1111,8 @@ public java.lang.String getSourceBackup() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (sourceCase_ == 4) { source_ = s; @@ -1232,26 +1123,25 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 4) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 4) { source_ = b; } @@ -1261,37 +1151,32 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup(java.lang.String value) { + public Builder setSourceBackup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 4; + throw new NullPointerException(); + } + sourceCase_ = 4; source_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -1303,31 +1188,29 @@ public Builder clearSourceBackup() { return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { + public Builder setSourceBackupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 4; source_ = 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); } @@ -1337,12 +1220,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.RestoreInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.RestoreInstanceRequest) private static final com.google.cloud.filestore.v1beta1.RestoreInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.RestoreInstanceRequest(); } @@ -1351,27 +1234,27 @@ public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1386,4 +1269,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java similarity index 72% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java index 6e7c543b97f7..55810b5d72b0 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java @@ -1,165 +1,119 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface RestoreInstanceRequestOrBuilder - extends +public interface RestoreInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.RestoreInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 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(); /** - * - * *
    * Required. Name of the file share in the Filestore instance that the snapshot
    * is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fileShare. */ java.lang.String getFileShare(); /** - * - * *
    * Required. Name of the file share in the Filestore instance that the snapshot
    * is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fileShare. */ - com.google.protobuf.ByteString getFileShareBytes(); + com.google.protobuf.ByteString + getFileShareBytes(); /** - * - * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceSnapshot field is set. */ boolean hasSourceSnapshot(); /** - * - * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The sourceSnapshot. */ java.lang.String getSourceSnapshot(); /** - * - * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceSnapshot. */ - com.google.protobuf.ByteString getSourceSnapshotBytes(); + com.google.protobuf.ByteString + getSourceSnapshotBytes(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ boolean hasSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString getSourceBackupBytes(); + com.google.protobuf.ByteString + getSourceBackupBytes(); public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.SourceCase getSourceCase(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java similarity index 68% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java index 30430fc3c8e3..7b1b4af04b90 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * RevertInstanceRequest reverts the given instance's file share to the
  * specified snapshot.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.filestore.v1beta1.RevertInstanceRequest}
  */
-public final class RevertInstanceRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RevertInstanceRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.RevertInstanceRequest)
     RevertInstanceRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RevertInstanceRequest.newBuilder() to construct.
   private RevertInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RevertInstanceRequest() {
     name_ = "";
     targetSnapshotId_ = "";
@@ -45,44 +27,38 @@ private RevertInstanceRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RevertInstanceRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
-        .internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
-        .internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable
+    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class,
-            com.google.cloud.filestore.v1beta1.RevertInstanceRequest.Builder.class);
+            com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class, com.google.cloud.filestore.v1beta1.RevertInstanceRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
    * The resource name of the instance, in the format
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,32 +67,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
    * The resource name of the instance, in the format
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -127,8 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TARGET_SNAPSHOT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object targetSnapshotId_; /** - * - * *
    * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
    * ID is the {snapshot_id} of the fully qualified name like
@@ -136,7 +108,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetSnapshotId. */ @java.lang.Override @@ -145,15 +116,14 @@ public java.lang.String getTargetSnapshotId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetSnapshotId_ = s; return s; } } /** - * - * *
    * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
    * ID is the {snapshot_id} of the fully qualified name like
@@ -161,15 +131,16 @@ public java.lang.String getTargetSnapshotId() {
    * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetSnapshotId. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetSnapshotIdBytes() { + public com.google.protobuf.ByteString + getTargetSnapshotIdBytes() { java.lang.Object ref = targetSnapshotId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetSnapshotId_ = b; return b; } else { @@ -178,7 +149,6 @@ public com.google.protobuf.ByteString getTargetSnapshotIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,7 +160,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -220,16 +191,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.filestore.v1beta1.RevertInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.RevertInstanceRequest other = - (com.google.cloud.filestore.v1beta1.RevertInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.RevertInstanceRequest other = (com.google.cloud.filestore.v1beta1.RevertInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getTargetSnapshotId().equals(other.getTargetSnapshotId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getTargetSnapshotId() + .equals(other.getTargetSnapshotId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,104 +223,96 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( - java.nio.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.filestore.v1beta1.RevertInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.RevertInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.RevertInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.RevertInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * RevertInstanceRequest reverts the given instance's file share to the
    * specified snapshot.
@@ -356,32 +320,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.filestore.v1beta1.RevertInstanceRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.RevertInstanceRequest)
       com.google.cloud.filestore.v1beta1.RevertInstanceRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
-          .internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
-          .internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable
+      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class,
-              com.google.cloud.filestore.v1beta1.RevertInstanceRequest.Builder.class);
+              com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class, com.google.cloud.filestore.v1beta1.RevertInstanceRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.filestore.v1beta1.RevertInstanceRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -393,9 +358,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
-          .internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor;
     }
 
     @java.lang.Override
@@ -414,8 +379,7 @@ public com.google.cloud.filestore.v1beta1.RevertInstanceRequest build() {
 
     @java.lang.Override
     public com.google.cloud.filestore.v1beta1.RevertInstanceRequest buildPartial() {
-      com.google.cloud.filestore.v1beta1.RevertInstanceRequest result =
-          new com.google.cloud.filestore.v1beta1.RevertInstanceRequest(this);
+      com.google.cloud.filestore.v1beta1.RevertInstanceRequest result = new com.google.cloud.filestore.v1beta1.RevertInstanceRequest(this);
       result.name_ = name_;
       result.targetSnapshotId_ = targetSnapshotId_;
       onBuilt();
@@ -426,39 +390,38 @@ public com.google.cloud.filestore.v1beta1.RevertInstanceRequest 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.filestore.v1beta1.RevertInstanceRequest) {
-        return mergeFrom((com.google.cloud.filestore.v1beta1.RevertInstanceRequest) other);
+        return mergeFrom((com.google.cloud.filestore.v1beta1.RevertInstanceRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -466,8 +429,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.filestore.v1beta1.RevertInstanceRequest other) {
-      if (other == com.google.cloud.filestore.v1beta1.RevertInstanceRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.filestore.v1beta1.RevertInstanceRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -502,25 +464,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                targetSnapshotId_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              targetSnapshotId_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -533,23 +492,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
      * The resource name of the instance, in the format
      * 
* - * - * string name = 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; @@ -558,24 +513,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
      * The resource name of the instance, in the format
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -583,70 +535,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
      * The resource name of the instance, in the format
      * 
* - * - * 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. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
      * The resource name of the instance, in the format
      * 
* - * - * string 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. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
      * The resource name of the instance, in the format
      * 
* - * - * 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; @@ -654,8 +593,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object targetSnapshotId_ = ""; /** - * - * *
      * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
      * ID is the {snapshot_id} of the fully qualified name like
@@ -663,13 +600,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetSnapshotId. */ public java.lang.String getTargetSnapshotId() { java.lang.Object ref = targetSnapshotId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetSnapshotId_ = s; return s; @@ -678,8 +615,6 @@ public java.lang.String getTargetSnapshotId() { } } /** - * - * *
      * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
      * ID is the {snapshot_id} of the fully qualified name like
@@ -687,14 +622,15 @@ public java.lang.String getTargetSnapshotId() {
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetSnapshotId. */ - public com.google.protobuf.ByteString getTargetSnapshotIdBytes() { + public com.google.protobuf.ByteString + getTargetSnapshotIdBytes() { java.lang.Object ref = targetSnapshotId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetSnapshotId_ = b; return b; } else { @@ -702,8 +638,6 @@ public com.google.protobuf.ByteString getTargetSnapshotIdBytes() { } } /** - * - * *
      * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
      * ID is the {snapshot_id} of the fully qualified name like
@@ -711,22 +645,20 @@ public com.google.protobuf.ByteString getTargetSnapshotIdBytes() {
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetSnapshotId to set. * @return This builder for chaining. */ - public Builder setTargetSnapshotId(java.lang.String value) { + public Builder setTargetSnapshotId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetSnapshotId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
      * ID is the {snapshot_id} of the fully qualified name like
@@ -734,18 +666,15 @@ public Builder setTargetSnapshotId(java.lang.String value) {
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetSnapshotId() { - + targetSnapshotId_ = getDefaultInstance().getTargetSnapshotId(); onChanged(); return this; } /** - * - * *
      * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
      * ID is the {snapshot_id} of the fully qualified name like
@@ -753,23 +682,23 @@ public Builder clearTargetSnapshotId() {
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetSnapshotId to set. * @return This builder for chaining. */ - public Builder setTargetSnapshotIdBytes(com.google.protobuf.ByteString value) { + public Builder setTargetSnapshotIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetSnapshotId_ = 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); } @@ -779,12 +708,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.RevertInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.RevertInstanceRequest) private static final com.google.cloud.filestore.v1beta1.RevertInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.RevertInstanceRequest(); } @@ -793,27 +722,27 @@ public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevertInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevertInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -828,4 +757,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.RevertInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java similarity index 60% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java index 305641a18e48..d2183850d8a0 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface RevertInstanceRequestOrBuilder - extends +public interface RevertInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.RevertInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
    * The resource name of the instance, in the format
    * 
* - * - * string name = 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. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
    * The resource name of the instance, in the format
    * 
* - * - * string name = 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(); /** - * - * *
    * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
    * ID is the {snapshot_id} of the fully qualified name like
@@ -64,13 +37,10 @@ public interface RevertInstanceRequestOrBuilder
    * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetSnapshotId. */ java.lang.String getTargetSnapshotId(); /** - * - * *
    * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
    * ID is the {snapshot_id} of the fully qualified name like
@@ -78,8 +48,8 @@ public interface RevertInstanceRequestOrBuilder
    * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetSnapshotId. */ - com.google.protobuf.ByteString getTargetSnapshotIdBytes(); + com.google.protobuf.ByteString + getTargetSnapshotIdBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java similarity index 69% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java index 7a2e3d9d2abd..4a954547aea1 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * A Filestore share.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Share} */ -public final class Share extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Share extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.Share) ShareOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Share.newBuilder() to construct. private Share(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Share() { name_ = ""; mountName_ = ""; @@ -47,54 +29,51 @@ private Share() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Share(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Share_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_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.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Share.class, - com.google.cloud.filestore.v1beta1.Share.Builder.class); + com.google.cloud.filestore.v1beta1.Share.class, com.google.cloud.filestore.v1beta1.Share.Builder.class); } /** - * - * *
    * The share state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Share.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State not set.
      * 
@@ -103,8 +82,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Share is being created.
      * 
@@ -113,8 +90,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * Share is ready for use.
      * 
@@ -123,8 +98,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(3), /** - * - * *
      * Share is being deleted.
      * 
@@ -136,8 +109,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * State not set.
      * 
@@ -146,8 +117,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Share is being created.
      * 
@@ -156,8 +125,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * Share is ready for use.
      * 
@@ -166,8 +133,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 3; /** - * - * *
      * Share is being deleted.
      * 
@@ -176,6 +141,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -200,51 +166,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 3: - return READY; - case 4: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 3: return READY; + case 4: 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.filestore.v1beta1.Share.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; @@ -264,15 +229,12 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the share, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -281,30 +243,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 resource name of the share, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -315,15 +277,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int MOUNT_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object mountName_; /** - * - * *
    * The mount name of the share. Must be 63 characters or less and consist of
    * uppercase or lowercase letters, numbers, and underscores.
    * 
* * string mount_name = 2; - * * @return The mountName. */ @java.lang.Override @@ -332,30 +291,30 @@ public java.lang.String getMountName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountName_ = s; return s; } } /** - * - * *
    * The mount name of the share. Must be 63 characters or less and consist of
    * uppercase or lowercase letters, numbers, and underscores.
    * 
* * string mount_name = 2; - * * @return The bytes for mountName. */ @java.lang.Override - public com.google.protobuf.ByteString getMountNameBytes() { + public com.google.protobuf.ByteString + getMountNameBytes() { java.lang.Object ref = mountName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountName_ = b; return b; } else { @@ -366,15 +325,12 @@ public com.google.protobuf.ByteString getMountNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * A description of the share with 2048 characters or less. Requests with
    * longer descriptions will be rejected.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -383,30 +339,30 @@ 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; } } /** - * - * *
    * A description of the share with 2048 characters or less. Requests with
    * longer descriptions will be rejected.
    * 
* * string description = 3; - * * @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 { @@ -417,15 +373,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CAPACITY_GB_FIELD_NUMBER = 4; private long capacityGb_; /** - * - * *
    * File share capacity in gigabytes (GB). Filestore defines 1 GB as
    * 1024^3 bytes. Must be greater than 0.
    * 
* * int64 capacity_gb = 4; - * * @return The capacityGb. */ @java.lang.Override @@ -436,8 +389,6 @@ public long getCapacityGb() { public static final int NFS_EXPORT_OPTIONS_FIELD_NUMBER = 5; private java.util.List nfsExportOptions_; /** - * - * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -446,13 +397,10 @@ public long getCapacityGb() {
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
    */
   @java.lang.Override
-  public java.util.List
-      getNfsExportOptionsList() {
+  public java.util.List getNfsExportOptionsList() {
     return nfsExportOptions_;
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -461,13 +409,11 @@ public long getCapacityGb() {
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getNfsExportOptionsOrBuilderList() {
     return nfsExportOptions_;
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -480,8 +426,6 @@ public int getNfsExportOptionsCount() {
     return nfsExportOptions_.size();
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -494,8 +438,6 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(i
     return nfsExportOptions_.get(index);
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -512,55 +454,38 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExport
   public static final int STATE_FIELD_NUMBER = 6;
   private int state_;
   /**
-   *
-   *
    * 
    * Output only. The share state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.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 share state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.Share.State getState() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.Share.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Share.State result = - com.google.cloud.filestore.v1beta1.Share.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Share.State result = com.google.cloud.filestore.v1beta1.Share.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Share.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the share was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -568,15 +493,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the share was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -584,14 +505,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the share was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -599,23 +517,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } 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.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Share_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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_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_; } @@ -624,30 +543,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * 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(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -655,12 +572,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -668,16 +584,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; } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -685,11 +601,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(); } @@ -697,7 +614,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -709,7 +625,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -731,8 +648,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(7, getCreateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); getUnknownFields().writeTo(output); } @@ -752,26 +673,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (capacityGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, capacityGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, capacityGb_); } for (int i = 0; i < nfsExportOptions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, nfsExportOptions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, nfsExportOptions_.get(i)); } if (state_ != com.google.cloud.filestore.v1beta1.Share.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); - } - 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, getCreateTime()); + } + 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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -781,24 +706,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.Share)) { return super.equals(obj); } com.google.cloud.filestore.v1beta1.Share other = (com.google.cloud.filestore.v1beta1.Share) obj; - if (!getName().equals(other.getName())) return false; - if (!getMountName().equals(other.getMountName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getCapacityGb() != other.getCapacityGb()) return false; - if (!getNfsExportOptionsList().equals(other.getNfsExportOptionsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getMountName() + .equals(other.getMountName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (getCapacityGb() + != other.getCapacityGb()) return false; + if (!getNfsExportOptionsList() + .equals(other.getNfsExportOptionsList())) return false; if (state_ != other.state_) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -817,7 +749,8 @@ public int hashCode() { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCapacityGb()); if (getNfsExportOptionsCount() > 0) { hash = (37 * hash) + NFS_EXPORT_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getNfsExportOptionsList().hashCode(); @@ -837,156 +770,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1beta1.Share parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1beta1.Share parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Share parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Share parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Share parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Share parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Share parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Share parseFrom(java.io.InputStream input) 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.filestore.v1beta1.Share parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.Share parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.Share parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Share parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.Share parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Share parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.Share prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Filestore share.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Share} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.Share) com.google.cloud.filestore.v1beta1.ShareOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Share_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_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.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Share.class, - com.google.cloud.filestore.v1beta1.Share.Builder.class); + com.google.cloud.filestore.v1beta1.Share.class, com.google.cloud.filestore.v1beta1.Share.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.Share.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1018,9 +947,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Share_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_descriptor; } @java.lang.Override @@ -1039,8 +968,7 @@ public com.google.cloud.filestore.v1beta1.Share build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.Share buildPartial() { - com.google.cloud.filestore.v1beta1.Share result = - new com.google.cloud.filestore.v1beta1.Share(this); + com.google.cloud.filestore.v1beta1.Share result = new com.google.cloud.filestore.v1beta1.Share(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.mountName_ = mountName_; @@ -1071,39 +999,38 @@ public com.google.cloud.filestore.v1beta1.Share 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.filestore.v1beta1.Share) { - return mergeFrom((com.google.cloud.filestore.v1beta1.Share) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.Share)other); } else { super.mergeFrom(other); return this; @@ -1145,10 +1072,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Share other) { nfsExportOptionsBuilder_ = null; nfsExportOptions_ = other.nfsExportOptions_; bitField0_ = (bitField0_ & ~0x00000001); - nfsExportOptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNfsExportOptionsFieldBuilder() - : null; + nfsExportOptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNfsExportOptionsFieldBuilder() : null; } else { nfsExportOptionsBuilder_.addAllMessages(other.nfsExportOptions_); } @@ -1160,7 +1086,8 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Share other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1187,74 +1114,65 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - mountName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: - { - capacityGb_ = input.readInt64(); - - break; - } // case 32 - case 42: - { - com.google.cloud.filestore.v1beta1.NfsExportOptions m = - input.readMessage( - com.google.cloud.filestore.v1beta1.NfsExportOptions.parser(), - extensionRegistry); - if (nfsExportOptionsBuilder_ == null) { - ensureNfsExportOptionsIsMutable(); - nfsExportOptions_.add(m); - } else { - nfsExportOptionsBuilder_.addMessage(m); - } - break; - } // case 42 - case 48: - { - state_ = input.readEnum(); - - break; - } // case 48 - case 58: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + mountName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + capacityGb_ = input.readInt64(); + + break; + } // case 32 + case 42: { + com.google.cloud.filestore.v1beta1.NfsExportOptions m = + input.readMessage( + com.google.cloud.filestore.v1beta1.NfsExportOptions.parser(), + extensionRegistry); + if (nfsExportOptionsBuilder_ == null) { + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.add(m); + } else { + nfsExportOptionsBuilder_.addMessage(m); + } + break; + } // case 42 + case 48: { + state_ = input.readEnum(); + + break; + } // case 48 + case 58: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1264,26 +1182,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the share, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1292,22 +1207,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the share, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1315,64 +1229,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the share, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the share, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
      * 
* * 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 resource name of the share, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + 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; @@ -1380,21 +1287,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object mountName_ = ""; /** - * - * *
      * The mount name of the share. Must be 63 characters or less and consist of
      * uppercase or lowercase letters, numbers, and underscores.
      * 
* * string mount_name = 2; - * * @return The mountName. */ public java.lang.String getMountName() { java.lang.Object ref = mountName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountName_ = s; return s; @@ -1403,22 +1308,21 @@ public java.lang.String getMountName() { } } /** - * - * *
      * The mount name of the share. Must be 63 characters or less and consist of
      * uppercase or lowercase letters, numbers, and underscores.
      * 
* * string mount_name = 2; - * * @return The bytes for mountName. */ - public com.google.protobuf.ByteString getMountNameBytes() { + public com.google.protobuf.ByteString + getMountNameBytes() { java.lang.Object ref = mountName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountName_ = b; return b; } else { @@ -1426,64 +1330,57 @@ public com.google.protobuf.ByteString getMountNameBytes() { } } /** - * - * *
      * The mount name of the share. Must be 63 characters or less and consist of
      * uppercase or lowercase letters, numbers, and underscores.
      * 
* * string mount_name = 2; - * * @param value The mountName to set. * @return This builder for chaining. */ - public Builder setMountName(java.lang.String value) { + public Builder setMountName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mountName_ = value; onChanged(); return this; } /** - * - * *
      * The mount name of the share. Must be 63 characters or less and consist of
      * uppercase or lowercase letters, numbers, and underscores.
      * 
* * string mount_name = 2; - * * @return This builder for chaining. */ public Builder clearMountName() { - + mountName_ = getDefaultInstance().getMountName(); onChanged(); return this; } /** - * - * *
      * The mount name of the share. Must be 63 characters or less and consist of
      * uppercase or lowercase letters, numbers, and underscores.
      * 
* * string mount_name = 2; - * * @param value The bytes for mountName to set. * @return This builder for chaining. */ - public Builder setMountNameBytes(com.google.protobuf.ByteString value) { + public Builder setMountNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mountName_ = value; onChanged(); return this; @@ -1491,21 +1388,19 @@ public Builder setMountNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * A description of the share with 2048 characters or less. Requests with
      * longer descriptions will be rejected.
      * 
* * string description = 3; - * * @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; @@ -1514,22 +1409,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A description of the share with 2048 characters or less. Requests with
      * longer descriptions will be rejected.
      * 
* * string description = 3; - * * @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 { @@ -1537,80 +1431,70 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A description of the share with 2048 characters or less. Requests with
      * longer descriptions will be rejected.
      * 
* * string description = 3; - * * @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; } /** - * - * *
      * A description of the share with 2048 characters or less. Requests with
      * longer descriptions will be rejected.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * A description of the share with 2048 characters or less. Requests with
      * longer descriptions will be rejected.
      * 
* * string description = 3; - * * @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 long capacityGb_; + private long capacityGb_ ; /** - * - * *
      * File share capacity in gigabytes (GB). Filestore defines 1 GB as
      * 1024^3 bytes. Must be greater than 0.
      * 
* * int64 capacity_gb = 4; - * * @return The capacityGb. */ @java.lang.Override @@ -1618,74 +1502,58 @@ public long getCapacityGb() { return capacityGb_; } /** - * - * *
      * File share capacity in gigabytes (GB). Filestore defines 1 GB as
      * 1024^3 bytes. Must be greater than 0.
      * 
* * int64 capacity_gb = 4; - * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** - * - * *
      * File share capacity in gigabytes (GB). Filestore defines 1 GB as
      * 1024^3 bytes. Must be greater than 0.
      * 
* * int64 capacity_gb = 4; - * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } private java.util.List nfsExportOptions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNfsExportOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nfsExportOptions_ = - new java.util.ArrayList( - nfsExportOptions_); + nfsExportOptions_ = new java.util.ArrayList(nfsExportOptions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, - com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, - com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> - nfsExportOptionsBuilder_; + com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> nfsExportOptionsBuilder_; /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ - public java.util.List - getNfsExportOptionsList() { + public java.util.List getNfsExportOptionsList() { if (nfsExportOptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(nfsExportOptions_); } else { @@ -1693,15 +1561,12 @@ private void ensureNfsExportOptionsIsMutable() { } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ public int getNfsExportOptionsCount() { if (nfsExportOptionsBuilder_ == null) { @@ -1711,15 +1576,12 @@ public int getNfsExportOptionsCount() { } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(int index) { if (nfsExportOptionsBuilder_ == null) { @@ -1729,15 +1591,12 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(i } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ public Builder setNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions value) { @@ -1754,15 +1613,12 @@ public Builder setNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ public Builder setNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1776,15 +1632,12 @@ public Builder setNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ public Builder addNfsExportOptions(com.google.cloud.filestore.v1beta1.NfsExportOptions value) { if (nfsExportOptionsBuilder_ == null) { @@ -1800,15 +1653,12 @@ public Builder addNfsExportOptions(com.google.cloud.filestore.v1beta1.NfsExportO return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ public Builder addNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions value) { @@ -1825,15 +1675,12 @@ public Builder addNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ public Builder addNfsExportOptions( com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1847,15 +1694,12 @@ public Builder addNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ public Builder addNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1869,21 +1713,19 @@ public Builder addNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ public Builder addAllNfsExportOptions( java.lang.Iterable values) { if (nfsExportOptionsBuilder_ == null) { ensureNfsExportOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsExportOptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nfsExportOptions_); onChanged(); } else { nfsExportOptionsBuilder_.addAllMessages(values); @@ -1891,15 +1733,12 @@ public Builder addAllNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ public Builder clearNfsExportOptions() { if (nfsExportOptionsBuilder_ == null) { @@ -1912,15 +1751,12 @@ public Builder clearNfsExportOptions() { return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ public Builder removeNfsExportOptions(int index) { if (nfsExportOptionsBuilder_ == null) { @@ -1933,52 +1769,42 @@ public Builder removeNfsExportOptions(int index) { return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder getNfsExportOptionsBuilder( int index) { return getNfsExportOptionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ - public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder - getNfsExportOptionsOrBuilder(int index) { + public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder( + int index) { if (nfsExportOptionsBuilder_ == null) { - return nfsExportOptions_.get(index); - } else { + return nfsExportOptions_.get(index); } else { return nfsExportOptionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ - public java.util.List - getNfsExportOptionsOrBuilderList() { + public java.util.List + getNfsExportOptionsOrBuilderList() { if (nfsExportOptionsBuilder_ != null) { return nfsExportOptionsBuilder_.getMessageOrBuilderList(); } else { @@ -1986,65 +1812,48 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder getNfsExportO } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ - public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder - addNfsExportOptionsBuilder() { - return getNfsExportOptionsFieldBuilder() - .addBuilder(com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); + public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportOptionsBuilder() { + return getNfsExportOptionsFieldBuilder().addBuilder( + com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportOptionsBuilder( int index) { - return getNfsExportOptionsFieldBuilder() - .addBuilder( - index, com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); + return getNfsExportOptionsFieldBuilder().addBuilder( + index, com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; */ - public java.util.List - getNfsExportOptionsBuilderList() { + public java.util.List + getNfsExportOptionsBuilderList() { return getNfsExportOptionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, - com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, - com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> + com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> getNfsExportOptionsFieldBuilder() { if (nfsExportOptionsBuilder_ == null) { - nfsExportOptionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, - com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, - com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder>( + nfsExportOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder>( nfsExportOptions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2056,73 +1865,51 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportO private int state_ = 0; /** - * - * *
      * Output only. The share state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.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 share state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.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 share state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Share.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Share.State result = - com.google.cloud.filestore.v1beta1.Share.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Share.State result = com.google.cloud.filestore.v1beta1.Share.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Share.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The share state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2130,26 +1917,21 @@ public Builder setState(com.google.cloud.filestore.v1beta1.Share.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The share state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2157,58 +1939,39 @@ public Builder clearState() { 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 when the share was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the share was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the share was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2224,17 +1987,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the share was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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(); @@ -2245,21 +2005,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the share was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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; } @@ -2271,15 +2027,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the share was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2293,84 +2045,69 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the share was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the share was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the share was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - private 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(); @@ -2382,30 +2119,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * 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(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2413,12 +2148,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2426,17 +2160,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; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2444,11 +2177,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(); } @@ -2456,66 +2190,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * 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(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * 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; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * 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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2525,12 +2262,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.Share) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.Share) private static final com.google.cloud.filestore.v1beta1.Share DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.Share(); } @@ -2539,27 +2276,27 @@ public static com.google.cloud.filestore.v1beta1.Share getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Share parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Share parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2574,4 +2311,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.Share getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java similarity index 74% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java index e13cade88f90..86c3e91b5eac 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java @@ -1,126 +1,90 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ShareOrBuilder - extends +public interface ShareOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.Share) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the share, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the share, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The mount name of the share. Must be 63 characters or less and consist of
    * uppercase or lowercase letters, numbers, and underscores.
    * 
* * string mount_name = 2; - * * @return The mountName. */ java.lang.String getMountName(); /** - * - * *
    * The mount name of the share. Must be 63 characters or less and consist of
    * uppercase or lowercase letters, numbers, and underscores.
    * 
* * string mount_name = 2; - * * @return The bytes for mountName. */ - com.google.protobuf.ByteString getMountNameBytes(); + com.google.protobuf.ByteString + getMountNameBytes(); /** - * - * *
    * A description of the share with 2048 characters or less. Requests with
    * longer descriptions will be rejected.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A description of the share with 2048 characters or less. Requests with
    * longer descriptions will be rejected.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * File share capacity in gigabytes (GB). Filestore defines 1 GB as
    * 1024^3 bytes. Must be greater than 0.
    * 
* * int64 capacity_gb = 4; - * * @return The capacityGb. */ long getCapacityGb(); /** - * - * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -128,10 +92,9 @@ public interface ShareOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
    */
-  java.util.List getNfsExportOptionsList();
+  java.util.List 
+      getNfsExportOptionsList();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -141,8 +104,6 @@ public interface ShareOrBuilder
    */
   com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(int index);
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -152,8 +113,6 @@ public interface ShareOrBuilder
    */
   int getNfsExportOptionsCount();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -161,11 +120,9 @@ public interface ShareOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
    */
-  java.util.List
+  java.util.List 
       getNfsExportOptionsOrBuilderList();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -177,75 +134,52 @@ com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExportOptions
       int index);
 
   /**
-   *
-   *
    * 
    * Output only. The share state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The share state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.filestore.v1beta1.Share.State getState(); /** - * - * *
    * Output only. The time when the share was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the share was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the share was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -254,31 +188,30 @@ com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExportOptions */ int getLabelsCount(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * 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(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 8; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -287,18 +220,18 @@ com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExportOptions */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 8; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java similarity index 65% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java index d98e59966851..72494c37924a 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * A Filestore snapshot.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Snapshot} */ -public final class Snapshot extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Snapshot extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.Snapshot) SnapshotOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Snapshot.newBuilder() to construct. private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Snapshot() { name_ = ""; description_ = ""; @@ -45,54 +27,51 @@ private Snapshot() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Snapshot(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_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 5: 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.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Snapshot.class, - com.google.cloud.filestore.v1beta1.Snapshot.Builder.class); + com.google.cloud.filestore.v1beta1.Snapshot.class, com.google.cloud.filestore.v1beta1.Snapshot.Builder.class); } /** - * - * *
    * The snapshot state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Snapshot.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State not set.
      * 
@@ -101,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Snapshot is being created.
      * 
@@ -111,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * Snapshot is available for use.
      * 
@@ -121,8 +96,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(3), /** - * - * *
      * Snapshot is being deleted.
      * 
@@ -134,8 +107,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * State not set.
      * 
@@ -144,8 +115,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Snapshot is being created.
      * 
@@ -154,8 +123,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * Snapshot is available for use.
      * 
@@ -164,8 +131,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 3; /** - * - * *
      * Snapshot is being deleted.
      * 
@@ -174,6 +139,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -198,51 +164,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 3: - return READY; - case 4: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 3: return READY; + case 4: 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.filestore.v1beta1.Snapshot.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; @@ -262,15 +227,12 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -279,30 +241,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 resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -313,15 +275,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * A description of the snapshot with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -330,30 +289,30 @@ 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; } } /** - * - * *
    * A description of the snapshot with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @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 { @@ -364,55 +323,38 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
    * Output only. The snapshot state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.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 snapshot state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.Snapshot.State getState() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.Snapshot.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Snapshot.State result = - com.google.cloud.filestore.v1beta1.Snapshot.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Snapshot.State result = com.google.cloud.filestore.v1beta1.Snapshot.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Snapshot.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -420,15 +362,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -436,14 +374,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -451,23 +386,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Snapshot_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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_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_; } @@ -476,30 +412,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ + @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(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -507,12 +441,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -520,16 +453,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @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; } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -537,11 +470,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 5; */ @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(); } @@ -551,14 +485,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int FILESYSTEM_USED_BYTES_FIELD_NUMBER = 12; private long filesystemUsedBytes_; /** - * - * *
    * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
    * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The filesystemUsedBytes. */ @java.lang.Override @@ -567,7 +498,6 @@ public long getFilesystemUsedBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -579,7 +509,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -592,8 +523,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(4, getCreateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); if (filesystemUsedBytes_ != 0L) { output.writeInt64(12, filesystemUsedBytes_); } @@ -613,23 +548,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1beta1.Snapshot.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - 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(5, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); + } + 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(5, labels__); } if (filesystemUsedBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, filesystemUsedBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(12, filesystemUsedBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -639,23 +577,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.filestore.v1beta1.Snapshot)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.Snapshot other = - (com.google.cloud.filestore.v1beta1.Snapshot) obj; + com.google.cloud.filestore.v1beta1.Snapshot other = (com.google.cloud.filestore.v1beta1.Snapshot) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (state_ != other.state_) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (getFilesystemUsedBytes() != other.getFilesystemUsedBytes()) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (getFilesystemUsedBytes() + != other.getFilesystemUsedBytes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -682,162 +624,159 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + FILESYSTEM_USED_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFilesystemUsedBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFilesystemUsedBytes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom(java.io.InputStream input) 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.filestore.v1beta1.Snapshot parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.Snapshot parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.Snapshot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.Snapshot parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.Snapshot prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Filestore snapshot.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Snapshot} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.Snapshot) com.google.cloud.filestore.v1beta1.SnapshotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: 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 5: 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.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Snapshot.class, - com.google.cloud.filestore.v1beta1.Snapshot.Builder.class); + com.google.cloud.filestore.v1beta1.Snapshot.class, com.google.cloud.filestore.v1beta1.Snapshot.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.Snapshot.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -860,9 +799,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; } @java.lang.Override @@ -881,8 +820,7 @@ public com.google.cloud.filestore.v1beta1.Snapshot build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.Snapshot buildPartial() { - com.google.cloud.filestore.v1beta1.Snapshot result = - new com.google.cloud.filestore.v1beta1.Snapshot(this); + com.google.cloud.filestore.v1beta1.Snapshot result = new com.google.cloud.filestore.v1beta1.Snapshot(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -903,39 +841,38 @@ public com.google.cloud.filestore.v1beta1.Snapshot 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.filestore.v1beta1.Snapshot) { - return mergeFrom((com.google.cloud.filestore.v1beta1.Snapshot) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.Snapshot)other); } else { super.mergeFrom(other); return this; @@ -958,7 +895,8 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Snapshot other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.getFilesystemUsedBytes() != 0L) { setFilesystemUsedBytes(other.getFilesystemUsedBytes()); } @@ -988,54 +926,47 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - state_ = input.readEnum(); - - break; - } // case 24 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 42 - case 96: - { - filesystemUsedBytes_ = input.readInt64(); - - break; - } // case 96 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + state_ = input.readEnum(); + + break; + } // case 24 + case 34: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 42 + case 96: { + filesystemUsedBytes_ = input.readInt64(); + + break; + } // case 96 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1045,26 +976,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1073,22 +1001,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1096,64 +1023,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * 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 resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + 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; @@ -1161,21 +1081,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @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; @@ -1184,22 +1102,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @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 { @@ -1207,64 +1124,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @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; } /** - * - * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @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; @@ -1272,75 +1182,51 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The snapshot state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.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 snapshot state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.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 snapshot state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Snapshot.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Snapshot.State result = - com.google.cloud.filestore.v1beta1.Snapshot.State.valueOf(state_); - return result == null - ? com.google.cloud.filestore.v1beta1.Snapshot.State.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.Snapshot.State result = com.google.cloud.filestore.v1beta1.Snapshot.State.valueOf(state_); + return result == null ? com.google.cloud.filestore.v1beta1.Snapshot.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The snapshot state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -1348,26 +1234,21 @@ public Builder setState(com.google.cloud.filestore.v1beta1.Snapshot.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The snapshot state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1375,58 +1256,39 @@ public Builder clearState() { 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 when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1442,17 +1304,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1463,21 +1322,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1489,15 +1344,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1511,84 +1362,69 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - 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(); @@ -1600,30 +1436,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ + @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(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1631,12 +1465,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1644,17 +1477,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @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; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1662,11 +1494,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5; */ @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(); } @@ -1674,74 +1507,74 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - 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(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - 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; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - 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 long filesystemUsedBytes_; + private long filesystemUsedBytes_ ; /** - * - * *
      * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
      * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The filesystemUsedBytes. */ @java.lang.Override @@ -1749,43 +1582,37 @@ public long getFilesystemUsedBytes() { return filesystemUsedBytes_; } /** - * - * *
      * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
      * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The filesystemUsedBytes to set. * @return This builder for chaining. */ public Builder setFilesystemUsedBytes(long value) { - + filesystemUsedBytes_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
      * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearFilesystemUsedBytes() { - + filesystemUsedBytes_ = 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); } @@ -1795,12 +1622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.Snapshot) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.Snapshot) private static final com.google.cloud.filestore.v1beta1.Snapshot DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.Snapshot(); } @@ -1809,27 +1636,27 @@ public static com.google.cloud.filestore.v1beta1.Snapshot getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Snapshot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Snapshot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1844,4 +1671,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.Snapshot getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java similarity index 68% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java index f2176d6460f5..78e1e0397201 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java @@ -1,152 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface SnapshotOrBuilder - extends +public interface SnapshotOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.Snapshot) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A description of the snapshot with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A description of the snapshot with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The snapshot state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The snapshot state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.filestore.v1beta1.Snapshot.State getState(); /** - * - * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -155,31 +106,30 @@ public interface SnapshotOrBuilder */ int getLabelsCount(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - 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(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -188,30 +138,27 @@ public interface SnapshotOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
    * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The filesystemUsedBytes. */ long getFilesystemUsedBytes(); diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java similarity index 65% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java index 2a86c38d221a..9378610c9c25 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java @@ -1,83 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * UpdateBackupRequest updates description and/or labels for a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, - com.google.cloud.filestore.v1beta1.UpdateBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, com.google.cloud.filestore.v1beta1.UpdateBackupRequest.Builder.class); } public static final int BACKUP_FIELD_NUMBER = 1; private com.google.cloud.filestore.v1beta1.Backup backup_; /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ @java.lang.Override @@ -85,34 +62,23 @@ public boolean hasBackup() { return backup_ != null; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup getBackup() { - return backup_ == null - ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { @@ -122,16 +88,12 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -139,16 +101,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -156,15 +114,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -172,7 +127,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,7 +138,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -201,10 +156,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,21 +171,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.filestore.v1beta1.UpdateBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.UpdateBackupRequest other = - (com.google.cloud.filestore.v1beta1.UpdateBackupRequest) obj; + com.google.cloud.filestore.v1beta1.UpdateBackupRequest other = (com.google.cloud.filestore.v1beta1.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -255,136 +213,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.UpdateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.UpdateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.UpdateBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.UpdateBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.UpdateBackupRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.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; } /** - * - * *
    * UpdateBackupRequest updates description and/or labels for a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.UpdateBackupRequest) com.google.cloud.filestore.v1beta1.UpdateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, - com.google.cloud.filestore.v1beta1.UpdateBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, com.google.cloud.filestore.v1beta1.UpdateBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.UpdateBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -404,9 +355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; } @java.lang.Override @@ -425,8 +376,7 @@ public com.google.cloud.filestore.v1beta1.UpdateBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.UpdateBackupRequest buildPartial() { - com.google.cloud.filestore.v1beta1.UpdateBackupRequest result = - new com.google.cloud.filestore.v1beta1.UpdateBackupRequest(this); + com.google.cloud.filestore.v1beta1.UpdateBackupRequest result = new com.google.cloud.filestore.v1beta1.UpdateBackupRequest(this); if (backupBuilder_ == null) { result.backup_ = backup_; } else { @@ -445,39 +395,38 @@ public com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.UpdateBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -485,8 +434,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.UpdateBackupRequest other) { - if (other == com.google.cloud.filestore.v1beta1.UpdateBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.UpdateBackupRequest.getDefaultInstance()) return this; if (other.hasBackup()) { mergeBackup(other.getBackup()); } @@ -519,25 +467,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBackupFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,58 +499,39 @@ public Builder mergeFrom( private com.google.cloud.filestore.v1beta1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, - com.google.cloud.filestore.v1beta1.Backup.Builder, - com.google.cloud.filestore.v1beta1.BackupOrBuilder> - backupBuilder_; + com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> backupBuilder_; /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.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 [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ public com.google.cloud.filestore.v1beta1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null - ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; } else { return backupBuilder_.getMessage(); } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup value) { if (backupBuilder_ == null) { @@ -617,17 +547,14 @@ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) { + public Builder setBackup( + com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -638,23 +565,17 @@ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup.Builder build return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBackup(com.google.cloud.filestore.v1beta1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.filestore.v1beta1.Backup.newBuilder(backup_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1beta1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); } else { backup_ = value; } @@ -666,15 +587,11 @@ public Builder mergeBackup(com.google.cloud.filestore.v1beta1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBackup() { if (backupBuilder_ == null) { @@ -688,64 +605,48 @@ public Builder clearBackup() { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null - ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? + com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, - com.google.cloud.filestore.v1beta1.Backup.Builder, - com.google.cloud.filestore.v1beta1.BackupOrBuilder> + com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, - com.google.cloud.filestore.v1beta1.Backup.Builder, - com.google.cloud.filestore.v1beta1.BackupOrBuilder>( - getBackup(), getParentForChildren(), isClean()); + backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder>( + getBackup(), + getParentForChildren(), + isClean()); backup_ = null; } return backupBuilder_; @@ -753,58 +654,42 @@ public com.google.cloud.filestore.v1beta1.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_; /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -820,17 +705,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -841,21 +724,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ 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; } @@ -867,15 +747,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -889,71 +766,58 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -963,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.UpdateBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.UpdateBackupRequest) private static final com.google.cloud.filestore.v1beta1.UpdateBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.UpdateBackupRequest(); } @@ -977,27 +841,27 @@ public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest getDefaultI 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1012,4 +876,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.UpdateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java similarity index 58% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java index dd5cc07160c0..e08fe71d8455 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java @@ -1,107 +1,66 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface UpdateBackupRequestOrBuilder - extends +public interface UpdateBackupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.UpdateBackupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ boolean hasBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ com.google.cloud.filestore.v1beta1.Backup getBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java similarity index 67% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java index a0246d44b722..ac8bce9e9a4f 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java @@ -1,75 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * UpdateInstanceRequest updates the settings of an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateInstanceRequest() {} + private UpdateInstanceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -79,9 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -89,8 +67,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -100,9 +76,7 @@ public boolean hasUpdateMask() {
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -110,8 +84,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -121,8 +93,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -132,16 +103,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int INSTANCE_FIELD_NUMBER = 2; private com.google.cloud.filestore.v1beta1.Instance instance_; /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ @java.lang.Override @@ -149,34 +115,23 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance getInstance() { - return instance_ == null - ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { @@ -184,7 +139,6 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,7 +150,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -213,10 +168,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -226,21 +183,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest other = - (com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest other = (com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -267,136 +225,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( - java.nio.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.filestore.v1beta1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.UpdateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.UpdateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * UpdateInstanceRequest updates the settings of an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.UpdateInstanceRequest) com.google.cloud.filestore.v1beta1.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +367,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -437,8 +388,7 @@ public com.google.cloud.filestore.v1beta1.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.UpdateInstanceRequest buildPartial() { - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest result = - new com.google.cloud.filestore.v1beta1.UpdateInstanceRequest(this); + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest result = new com.google.cloud.filestore.v1beta1.UpdateInstanceRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -457,39 +407,38 @@ public com.google.cloud.filestore.v1beta1.UpdateInstanceRequest 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.filestore.v1beta1.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -497,8 +446,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.UpdateInstanceRequest other) { - if (other == com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -531,25 +479,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 10 - case 18: - { - input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,13 +511,8 @@ public Builder mergeFrom( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -578,17 +522,13 @@ public Builder mergeFrom(
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -598,23 +538,17 @@ public boolean hasUpdateMask() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -624,8 +558,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -641,8 +574,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -652,10 +583,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -666,8 +597,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -677,14 +606,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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; } @@ -696,8 +624,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -707,8 +633,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -722,8 +647,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -733,17 +656,14 @@ public Builder clearUpdateMask() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -753,21 +673,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -777,21 +693,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -799,58 +711,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.filestore.v1beta1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, - com.google.cloud.filestore.v1beta1.Instance.Builder, - com.google.cloud.filestore.v1beta1.InstanceOrBuilder> - instanceBuilder_; + com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> instanceBuilder_; /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ public com.google.cloud.filestore.v1beta1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance(com.google.cloud.filestore.v1beta1.Instance value) { if (instanceBuilder_ == null) { @@ -866,15 +759,11 @@ public Builder setInstance(com.google.cloud.filestore.v1beta1.Instance value) { return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance( com.google.cloud.filestore.v1beta1.Instance.Builder builderForValue) { @@ -888,23 +777,17 @@ public Builder setInstance( return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstance(com.google.cloud.filestore.v1beta1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.filestore.v1beta1.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1beta1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -916,15 +799,11 @@ public Builder mergeInstance(com.google.cloud.filestore.v1beta1.Instance value) return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -938,71 +817,55 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, - com.google.cloud.filestore.v1beta1.Instance.Builder, - com.google.cloud.filestore.v1beta1.InstanceOrBuilder> + com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, - com.google.cloud.filestore.v1beta1.Instance.Builder, - com.google.cloud.filestore.v1beta1.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); instance_ = null; } return instanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1012,12 +875,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.UpdateInstanceRequest) private static final com.google.cloud.filestore.v1beta1.UpdateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.UpdateInstanceRequest(); } @@ -1026,27 +889,27 @@ public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1061,4 +924,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java similarity index 62% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java index ab4b44b8e29c..64763ee21151 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface UpdateInstanceRequestOrBuilder - extends +public interface UpdateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -35,15 +17,11 @@ public interface UpdateInstanceRequestOrBuilder
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -53,15 +31,11 @@ public interface UpdateInstanceRequestOrBuilder
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -71,49 +45,34 @@ public interface UpdateInstanceRequestOrBuilder
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ com.google.cloud.filestore.v1beta1.Instance getInstance(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java similarity index 67% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java index 3eb418eeaf3a..59294230de77 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java @@ -1,84 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * UpdateShareRequest updates the settings of a share.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateShareRequest} */ -public final class UpdateShareRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateShareRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.UpdateShareRequest) UpdateShareRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateShareRequest.newBuilder() to construct. private UpdateShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateShareRequest() {} + private UpdateShareRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, - com.google.cloud.filestore.v1beta1.UpdateShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, com.google.cloud.filestore.v1beta1.UpdateShareRequest.Builder.class); } public static final int SHARE_FIELD_NUMBER = 1; private com.google.cloud.filestore.v1beta1.Share share_; /** - * - * *
    * Required. A share resource.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the share field is set. */ @java.lang.Override @@ -86,17 +63,12 @@ public boolean hasShare() { return share_ != null; } /** - * - * *
    * Required. A share resource.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The share. */ @java.lang.Override @@ -104,16 +76,12 @@ public com.google.cloud.filestore.v1beta1.Share getShare() { return share_ == null ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; } /** - * - * *
    * Required. A share resource.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { @@ -123,8 +91,6 @@ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in this
    * field.
@@ -135,9 +101,7 @@ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() {
    * * "nfs_export_options"
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -145,8 +109,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in this
    * field.
@@ -157,9 +119,7 @@ public boolean hasUpdateMask() {
    * * "nfs_export_options"
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -167,8 +127,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in this
    * field.
@@ -179,8 +137,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * * "nfs_export_options"
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -188,7 +145,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +156,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (share_ != null) { output.writeMessage(1, getShare()); } @@ -217,10 +174,12 @@ public int getSerializedSize() { size = 0; if (share_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getShare()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getShare()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,21 +189,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.filestore.v1beta1.UpdateShareRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.UpdateShareRequest other = - (com.google.cloud.filestore.v1beta1.UpdateShareRequest) obj; + com.google.cloud.filestore.v1beta1.UpdateShareRequest other = (com.google.cloud.filestore.v1beta1.UpdateShareRequest) obj; if (hasShare() != other.hasShare()) return false; if (hasShare()) { - if (!getShare().equals(other.getShare())) return false; + if (!getShare() + .equals(other.getShare())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -271,136 +231,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( - java.nio.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.filestore.v1beta1.UpdateShareRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.UpdateShareRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.UpdateShareRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.UpdateShareRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * UpdateShareRequest updates the settings of a share.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateShareRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.UpdateShareRequest) com.google.cloud.filestore.v1beta1.UpdateShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, - com.google.cloud.filestore.v1beta1.UpdateShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, com.google.cloud.filestore.v1beta1.UpdateShareRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.UpdateShareRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; } @java.lang.Override @@ -441,8 +394,7 @@ public com.google.cloud.filestore.v1beta1.UpdateShareRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.UpdateShareRequest buildPartial() { - com.google.cloud.filestore.v1beta1.UpdateShareRequest result = - new com.google.cloud.filestore.v1beta1.UpdateShareRequest(this); + com.google.cloud.filestore.v1beta1.UpdateShareRequest result = new com.google.cloud.filestore.v1beta1.UpdateShareRequest(this); if (shareBuilder_ == null) { result.share_ = share_; } else { @@ -461,39 +413,38 @@ public com.google.cloud.filestore.v1beta1.UpdateShareRequest 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.filestore.v1beta1.UpdateShareRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateShareRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateShareRequest)other); } else { super.mergeFrom(other); return this; @@ -501,8 +452,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.UpdateShareRequest other) { - if (other == com.google.cloud.filestore.v1beta1.UpdateShareRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.UpdateShareRequest.getDefaultInstance()) return this; if (other.hasShare()) { mergeShare(other.getShare()); } @@ -535,25 +485,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getShareFieldBuilder().getBuilder(), extensionRegistry); + case 10: { + input.readMessage( + getShareFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -566,61 +517,42 @@ public Builder mergeFrom( private com.google.cloud.filestore.v1beta1.Share share_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, - com.google.cloud.filestore.v1beta1.Share.Builder, - com.google.cloud.filestore.v1beta1.ShareOrBuilder> - shareBuilder_; + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> shareBuilder_; /** - * - * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the share field is set. */ public boolean hasShare() { return shareBuilder_ != null || share_ != null; } /** - * - * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The share. */ public com.google.cloud.filestore.v1beta1.Share getShare() { if (shareBuilder_ == null) { - return share_ == null - ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() - : share_; + return share_ == null ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; } else { return shareBuilder_.getMessage(); } } /** - * - * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setShare(com.google.cloud.filestore.v1beta1.Share value) { if (shareBuilder_ == null) { @@ -636,18 +568,15 @@ public Builder setShare(com.google.cloud.filestore.v1beta1.Share value) { return this; } /** - * - * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setShare(com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { + public Builder setShare( + com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { if (shareBuilder_ == null) { share_ = builderForValue.build(); onChanged(); @@ -658,24 +587,18 @@ public Builder setShare(com.google.cloud.filestore.v1beta1.Share.Builder builder return this; } /** - * - * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeShare(com.google.cloud.filestore.v1beta1.Share value) { if (shareBuilder_ == null) { if (share_ != null) { share_ = - com.google.cloud.filestore.v1beta1.Share.newBuilder(share_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1beta1.Share.newBuilder(share_).mergeFrom(value).buildPartial(); } else { share_ = value; } @@ -687,16 +610,12 @@ public Builder mergeShare(com.google.cloud.filestore.v1beta1.Share value) { return this; } /** - * - * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearShare() { if (shareBuilder_ == null) { @@ -710,67 +629,51 @@ public Builder clearShare() { return this; } /** - * - * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.Share.Builder getShareBuilder() { - + onChanged(); return getShareFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { if (shareBuilder_ != null) { return shareBuilder_.getMessageOrBuilder(); } else { - return share_ == null - ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() - : share_; + return share_ == null ? + com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; } } /** - * - * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, - com.google.cloud.filestore.v1beta1.Share.Builder, - com.google.cloud.filestore.v1beta1.ShareOrBuilder> + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> getShareFieldBuilder() { if (shareBuilder_ == null) { - shareBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, - com.google.cloud.filestore.v1beta1.Share.Builder, - com.google.cloud.filestore.v1beta1.ShareOrBuilder>( - getShare(), getParentForChildren(), isClean()); + shareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder>( + getShare(), + getParentForChildren(), + isClean()); share_ = null; } return shareBuilder_; @@ -778,13 +681,8 @@ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -795,17 +693,13 @@ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -816,23 +710,17 @@ public boolean hasUpdateMask() {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -843,8 +731,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -860,8 +747,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -872,10 +757,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -886,8 +771,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -898,14 +781,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ 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; } @@ -917,8 +799,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -929,8 +809,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -944,8 +823,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -956,17 +833,14 @@ public Builder clearUpdateMask() {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -977,21 +851,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -1002,28 +872,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1033,12 +899,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.UpdateShareRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.UpdateShareRequest) private static final com.google.cloud.filestore.v1beta1.UpdateShareRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.UpdateShareRequest(); } @@ -1047,27 +913,27 @@ public static com.google.cloud.filestore.v1beta1.UpdateShareRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateShareRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1082,4 +948,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.UpdateShareRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java similarity index 64% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java index 3f6d94b25bf1..bd3761e15bc2 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface UpdateShareRequestOrBuilder - extends +public interface UpdateShareRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.UpdateShareRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A share resource.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the share field is set. */ boolean hasShare(); /** - * - * *
    * Required. A share resource.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The share. */ com.google.cloud.filestore.v1beta1.Share getShare(); /** - * - * *
    * Required. A share resource.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder(); /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in this
    * field.
@@ -80,15 +48,11 @@ public interface UpdateShareRequestOrBuilder
    * * "nfs_export_options"
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in this
    * field.
@@ -99,15 +63,11 @@ public interface UpdateShareRequestOrBuilder
    * * "nfs_export_options"
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update. At least one path must be supplied in this
    * field.
@@ -118,8 +78,7 @@ public interface UpdateShareRequestOrBuilder
    * * "nfs_export_options"
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java similarity index 65% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java index 9b431bc6598e..fee35b60fc13 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java @@ -1,83 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * UpdateSnapshotRequest updates description and/or labels for a snapshot.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateSnapshotRequest} */ -public final class UpdateSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) UpdateSnapshotRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSnapshotRequest.newBuilder() to construct. private UpdateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateSnapshotRequest() {} + private UpdateSnapshotRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSnapshotRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -85,16 +63,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -102,15 +76,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -120,16 +91,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SNAPSHOT_FIELD_NUMBER = 2; private com.google.cloud.filestore.v1beta1.Snapshot snapshot_; /** - * - * *
    * Required. A snapshot resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the snapshot field is set. */ @java.lang.Override @@ -137,34 +103,23 @@ public boolean hasSnapshot() { return snapshot_ != null; } /** - * - * *
    * Required. A snapshot resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The snapshot. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot() { - return snapshot_ == null - ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() - : snapshot_; + return snapshot_ == null ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; } /** - * - * *
    * Required. A snapshot resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder() { @@ -172,7 +127,6 @@ public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,7 +138,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -201,10 +156,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (snapshot_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSnapshot()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSnapshot()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,21 +171,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.filestore.v1beta1.UpdateSnapshotRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest other = - (com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest) obj; + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest other = (com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasSnapshot() != other.hasSnapshot()) return false; if (hasSnapshot()) { - if (!getSnapshot().equals(other.getSnapshot())) return false; + if (!getSnapshot() + .equals(other.getSnapshot())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -255,136 +213,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( - java.nio.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.filestore.v1beta1.UpdateSnapshotRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.UpdateSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * UpdateSnapshotRequest updates description and/or labels for a snapshot.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateSnapshotRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) com.google.cloud.filestore.v1beta1.UpdateSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -404,9 +355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; } @java.lang.Override @@ -425,8 +376,7 @@ public com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest buildPartial() { - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest result = - new com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest(this); + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest result = new com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -445,39 +395,38 @@ public com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest 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.filestore.v1beta1.UpdateSnapshotRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest)other); } else { super.mergeFrom(other); return this; @@ -485,8 +434,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest other) { - if (other == com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -519,25 +467,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getSnapshotFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getSnapshotFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,58 +499,42 @@ public Builder mergeFrom( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -617,17 +550,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -638,21 +569,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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; } @@ -664,15 +592,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -686,64 +611,51 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -751,58 +663,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.filestore.v1beta1.Snapshot snapshot_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, - com.google.cloud.filestore.v1beta1.Snapshot.Builder, - com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> - snapshotBuilder_; + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> snapshotBuilder_; /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { return snapshotBuilder_ != null || snapshot_ != null; } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The snapshot. */ public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot() { if (snapshotBuilder_ == null) { - return snapshot_ == null - ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() - : snapshot_; + return snapshot_ == null ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; } else { return snapshotBuilder_.getMessage(); } } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { if (snapshotBuilder_ == null) { @@ -818,15 +711,11 @@ public Builder setSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { return this; } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSnapshot( com.google.cloud.filestore.v1beta1.Snapshot.Builder builderForValue) { @@ -840,23 +729,17 @@ public Builder setSnapshot( return this; } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { if (snapshotBuilder_ == null) { if (snapshot_ != null) { snapshot_ = - com.google.cloud.filestore.v1beta1.Snapshot.newBuilder(snapshot_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1beta1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); } else { snapshot_ = value; } @@ -868,15 +751,11 @@ public Builder mergeSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) return this; } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSnapshot() { if (snapshotBuilder_ == null) { @@ -890,71 +769,55 @@ public Builder clearSnapshot() { return this; } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.Snapshot.Builder getSnapshotBuilder() { - + onChanged(); return getSnapshotFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder() { if (snapshotBuilder_ != null) { return snapshotBuilder_.getMessageOrBuilder(); } else { - return snapshot_ == null - ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() - : snapshot_; + return snapshot_ == null ? + com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; } } /** - * - * *
      * Required. A snapshot resource
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, - com.google.cloud.filestore.v1beta1.Snapshot.Builder, - com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> getSnapshotFieldBuilder() { if (snapshotBuilder_ == null) { - snapshotBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, - com.google.cloud.filestore.v1beta1.Snapshot.Builder, - com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( - getSnapshot(), getParentForChildren(), isClean()); + snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( + getSnapshot(), + getParentForChildren(), + isClean()); snapshot_ = null; } return snapshotBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -964,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) private static final com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest(); } @@ -978,27 +841,27 @@ public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1013,4 +876,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java similarity index 56% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java index 3c8b06a5052d..c6cc75a0f414 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java @@ -1,107 +1,66 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface UpdateSnapshotRequestOrBuilder - extends +public interface UpdateSnapshotRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. A snapshot resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the snapshot field is set. */ boolean hasSnapshot(); /** - * - * *
    * Required. A snapshot resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The snapshot. */ com.google.cloud.filestore.v1beta1.Snapshot getSnapshot(); /** - * - * *
    * Required. A snapshot resource
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShare.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShare.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShare.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShareLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShareLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShareLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShareLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShare.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShare.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShare.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareInstancenameShareString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareInstancenameShareString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareInstancenameShareString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareInstancenameShareString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareStringShareString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareStringShareString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareStringShareString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareStringShareString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshot.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshot.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshot.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshotLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshotLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshotLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshotLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshot.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshot.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshot.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotInstancenameSnapshotString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotInstancenameSnapshotString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotInstancenameSnapshotString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotInstancenameSnapshotString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotStringSnapshotString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotStringSnapshotString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotStringSnapshotString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotStringSnapshotString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShare.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShare.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShare.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShareLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShareLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShareLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShareLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShare.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShare.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShare.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareSharename.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareSharename.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareSharename.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareSharename.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshot.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshot.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshot.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshotLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshotLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshotLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshotLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshot.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshot.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshot.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotSnapshotname.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotSnapshotname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotSnapshotname.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotSnapshotname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/AsyncGetBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/AsyncGetBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/AsyncGetBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/AsyncGetBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/AsyncGetInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/AsyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/AsyncGetInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/AsyncGetInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/AsyncGetShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/AsyncGetShare.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/AsyncGetShare.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/AsyncGetShare.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShare.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShare.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShare.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareSharename.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareSharename.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareSharename.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareSharename.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/AsyncGetSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/AsyncGetSnapshot.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/AsyncGetSnapshot.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/AsyncGetSnapshot.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshot.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshot.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshot.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotSnapshotname.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotSnapshotname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotSnapshotname.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotSnapshotname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackups.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackups.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackups.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackups.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackups.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackups.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackups.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackups.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstances.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstances.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstances.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstances.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstances.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstances.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstances.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstances.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListShares.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListShares.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListShares.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListShares.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListSharesPaged.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListSharesPaged.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListSharesPaged.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListSharesPaged.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListShares.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListShares.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListShares.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListShares.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesInstancename.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesInstancename.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesInstancename.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesInstancename.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshots.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshots.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshots.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshots.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshotsPaged.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshotsPaged.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshotsPaged.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshotsPaged.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshots.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshots.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshots.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshots.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsInstancename.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsInstancename.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsInstancename.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsInstancename.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShare.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShare.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShare.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShareLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShareLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShareLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShareLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShare.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShare.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShare.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShareShareFieldmask.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShareShareFieldmask.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShareShareFieldmask.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShareShareFieldmask.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshot.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshot.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshot.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshotLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshotLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshotLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshotLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshot.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshot.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshot.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshotSnapshotFieldmask.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshotSnapshotFieldmask.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshotSnapshotFieldmask.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshotSnapshotFieldmask.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java From b5d3ba984efd78028af68dcbee47dbea81187843 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sun, 20 Nov 2022 08:52:32 +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 --- .../v1/CloudFilestoreManagerClient.java | 0 .../v1/CloudFilestoreManagerSettings.java | 1 - .../cloud/filestore/v1/gapic_metadata.json | 0 .../cloud/filestore/v1/package-info.java | 0 .../v1/stub/CloudFilestoreManagerStub.java | 0 .../CloudFilestoreManagerStubSettings.java | 0 ...cCloudFilestoreManagerCallableFactory.java | 0 .../stub/GrpcCloudFilestoreManagerStub.java | 1 - ...nCloudFilestoreManagerCallableFactory.java | 0 .../HttpJsonCloudFilestoreManagerStub.java | 1 - .../v1beta1/CloudFilestoreManagerClient.java | 0 .../CloudFilestoreManagerSettings.java | 1 - .../filestore/v1beta1/gapic_metadata.json | 0 .../cloud/filestore/v1beta1/package-info.java | 0 .../stub/CloudFilestoreManagerStub.java | 0 .../CloudFilestoreManagerStubSettings.java | 0 ...cCloudFilestoreManagerCallableFactory.java | 0 .../stub/GrpcCloudFilestoreManagerStub.java | 1 - ...nCloudFilestoreManagerCallableFactory.java | 0 .../HttpJsonCloudFilestoreManagerStub.java | 1 - ...oudFilestoreManagerClientHttpJsonTest.java | 0 .../v1/CloudFilestoreManagerClientTest.java | 0 .../v1/MockCloudFilestoreManager.java | 0 .../v1/MockCloudFilestoreManagerImpl.java | 0 ...oudFilestoreManagerClientHttpJsonTest.java | 0 .../CloudFilestoreManagerClientTest.java | 0 .../v1beta1/MockCloudFilestoreManager.java | 0 .../MockCloudFilestoreManagerImpl.java | 0 .../v1/CloudFilestoreManagerGrpc.java | 1602 +++++++++ .../v1beta1/CloudFilestoreManagerGrpc.java | 2912 +++++++++++++++++ .../cloud/common/OperationMetadata.java | 838 +++-- .../common/OperationMetadataOrBuilder.java | 91 +- .../common/OperationMetadataOuterClass.java | 88 + .../com/google/cloud/filestore/v1/Backup.java | 1444 ++++---- .../google/cloud/filestore/v1/BackupName.java | 0 .../cloud/filestore/v1/BackupOrBuilder.java | 159 +- .../v1/CloudFilestoreServiceProto.java | 515 +++ .../filestore/v1/CreateBackupRequest.java | 549 ++-- .../v1/CreateBackupRequestOrBuilder.java | 61 +- .../filestore/v1/CreateInstanceRequest.java | 565 ++-- .../v1/CreateInstanceRequestOrBuilder.java | 64 +- .../filestore/v1/DeleteBackupRequest.java | 355 +- .../v1/DeleteBackupRequestOrBuilder.java | 56 + .../filestore/v1/DeleteInstanceRequest.java | 355 +- .../v1/DeleteInstanceRequestOrBuilder.java | 56 + .../cloud/filestore/v1/FileShareConfig.java | 624 ++-- .../v1/FileShareConfigOrBuilder.java | 60 +- .../cloud/filestore/v1/GetBackupRequest.java | 348 +- .../v1/GetBackupRequestOrBuilder.java | 56 + .../filestore/v1/GetInstanceRequest.java | 355 +- .../v1/GetInstanceRequestOrBuilder.java | 56 + .../google/cloud/filestore/v1/Instance.java | 1703 ++++++---- .../cloud/filestore/v1/InstanceName.java | 0 .../cloud/filestore/v1/InstanceOrBuilder.java | 178 +- .../filestore/v1/ListBackupsRequest.java | 619 ++-- .../v1/ListBackupsRequestOrBuilder.java | 65 +- .../filestore/v1/ListBackupsResponse.java | 588 ++-- .../v1/ListBackupsResponseOrBuilder.java | 64 +- .../filestore/v1/ListInstancesRequest.java | 619 ++-- .../v1/ListInstancesRequestOrBuilder.java | 65 +- .../filestore/v1/ListInstancesResponse.java | 589 ++-- .../v1/ListInstancesResponseOrBuilder.java | 63 +- .../cloud/filestore/v1/LocationName.java | 0 .../cloud/filestore/v1/NetworkConfig.java | 695 ++-- .../filestore/v1/NetworkConfigOrBuilder.java | 72 +- .../cloud/filestore/v1/NfsExportOptions.java | 696 ++-- .../v1/NfsExportOptionsOrBuilder.java | 54 +- .../filestore/v1/RestoreInstanceRequest.java | 563 ++-- .../v1/RestoreInstanceRequestOrBuilder.java | 56 +- .../filestore/v1/UpdateBackupRequest.java | 491 +-- .../v1/UpdateBackupRequestOrBuilder.java | 52 +- .../filestore/v1/UpdateInstanceRequest.java | 419 ++- .../v1/UpdateInstanceRequestOrBuilder.java | 34 +- .../v1/cloud_filestore_service.proto | 0 .../cloud/common/OperationMetadata.java | 838 +++-- .../common/OperationMetadataOrBuilder.java | 91 +- .../common/OperationMetadataOuterClass.java | 88 + .../cloud/filestore/v1beta1/Backup.java | 1534 +++++---- .../cloud/filestore/v1beta1/BackupName.java | 0 .../filestore/v1beta1/BackupOrBuilder.java | 168 +- .../v1beta1/CloudFilestoreServiceProto.java | 888 +++++ .../v1beta1/CreateBackupRequest.java | 568 ++-- .../v1beta1/CreateBackupRequestOrBuilder.java | 64 +- .../v1beta1/CreateInstanceRequest.java | 565 ++-- .../CreateInstanceRequestOrBuilder.java | 64 +- .../filestore/v1beta1/CreateShareRequest.java | 564 ++-- .../v1beta1/CreateShareRequestOrBuilder.java | 64 +- .../v1beta1/CreateSnapshotRequest.java | 565 ++-- .../CreateSnapshotRequestOrBuilder.java | 64 +- .../v1beta1/DeleteBackupRequest.java | 358 +- .../v1beta1/DeleteBackupRequestOrBuilder.java | 56 + .../v1beta1/DeleteInstanceRequest.java | 396 ++- .../DeleteInstanceRequestOrBuilder.java | 38 +- .../filestore/v1beta1/DeleteShareRequest.java | 358 +- .../v1beta1/DeleteShareRequestOrBuilder.java | 56 + .../v1beta1/DeleteSnapshotRequest.java | 358 +- .../DeleteSnapshotRequestOrBuilder.java | 56 + .../filestore/v1beta1/FileShareConfig.java | 697 ++-- .../v1beta1/FileShareConfigOrBuilder.java | 57 +- .../filestore/v1beta1/GetBackupRequest.java | 355 +- .../v1beta1/GetBackupRequestOrBuilder.java | 56 + .../filestore/v1beta1/GetInstanceRequest.java | 358 +- .../v1beta1/GetInstanceRequestOrBuilder.java | 56 + .../filestore/v1beta1/GetShareRequest.java | 355 +- .../v1beta1/GetShareRequestOrBuilder.java | 56 + .../filestore/v1beta1/GetSnapshotRequest.java | 358 +- .../v1beta1/GetSnapshotRequestOrBuilder.java | 56 + .../cloud/filestore/v1beta1/Instance.java | 2283 ++++++++----- .../cloud/filestore/v1beta1/InstanceName.java | 0 .../filestore/v1beta1/InstanceOrBuilder.java | 243 +- .../filestore/v1beta1/ListBackupsRequest.java | 622 ++-- .../v1beta1/ListBackupsRequestOrBuilder.java | 65 +- .../v1beta1/ListBackupsResponse.java | 592 ++-- .../v1beta1/ListBackupsResponseOrBuilder.java | 63 +- .../v1beta1/ListInstancesRequest.java | 622 ++-- .../ListInstancesRequestOrBuilder.java | 65 +- .../v1beta1/ListInstancesResponse.java | 592 ++-- .../ListInstancesResponseOrBuilder.java | 63 +- .../filestore/v1beta1/ListSharesRequest.java | 619 ++-- .../v1beta1/ListSharesRequestOrBuilder.java | 65 +- .../filestore/v1beta1/ListSharesResponse.java | 591 ++-- .../v1beta1/ListSharesResponseOrBuilder.java | 63 +- .../v1beta1/ListSnapshotsRequest.java | 622 ++-- .../ListSnapshotsRequestOrBuilder.java | 65 +- .../v1beta1/ListSnapshotsResponse.java | 486 +-- .../ListSnapshotsResponseOrBuilder.java | 45 +- .../cloud/filestore/v1beta1/LocationName.java | 0 .../filestore/v1beta1/NetworkConfig.java | 847 +++-- .../v1beta1/NetworkConfigOrBuilder.java | 78 +- .../filestore/v1beta1/NfsExportOptions.java | 717 ++-- .../v1beta1/NfsExportOptionsOrBuilder.java | 54 +- .../v1beta1/RestoreInstanceRequest.java | 665 ++-- .../RestoreInstanceRequestOrBuilder.java | 68 +- .../v1beta1/RevertInstanceRequest.java | 437 +-- .../RevertInstanceRequestOrBuilder.java | 44 +- .../google/cloud/filestore/v1beta1/Share.java | 1259 ++++--- .../cloud/filestore/v1beta1/ShareName.java | 0 .../filestore/v1beta1/ShareOrBuilder.java | 125 +- .../cloud/filestore/v1beta1/Snapshot.java | 983 +++--- .../cloud/filestore/v1beta1/SnapshotName.java | 0 .../filestore/v1beta1/SnapshotOrBuilder.java | 101 +- .../v1beta1/UpdateBackupRequest.java | 510 +-- .../v1beta1/UpdateBackupRequestOrBuilder.java | 55 +- .../v1beta1/UpdateInstanceRequest.java | 503 +-- .../UpdateInstanceRequestOrBuilder.java | 55 +- .../filestore/v1beta1/UpdateShareRequest.java | 502 +-- .../v1beta1/UpdateShareRequestOrBuilder.java | 55 +- .../v1beta1/UpdateSnapshotRequest.java | 507 +-- .../UpdateSnapshotRequestOrBuilder.java | 55 +- .../v1beta1/cloud_filestore_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbackup/AsyncCreateBackup.java | 0 .../createbackup/AsyncCreateBackupLRO.java | 0 .../createbackup/SyncCreateBackup.java | 0 ...cCreateBackupLocationnameBackupString.java | 0 .../SyncCreateBackupStringBackupString.java | 0 .../createinstance/AsyncCreateInstance.java | 0 .../AsyncCreateInstanceLRO.java | 0 .../createinstance/SyncCreateInstance.java | 0 ...ateInstanceLocationnameInstanceString.java | 0 ...yncCreateInstanceStringInstanceString.java | 0 .../deletebackup/AsyncDeleteBackup.java | 0 .../deletebackup/AsyncDeleteBackupLRO.java | 0 .../deletebackup/SyncDeleteBackup.java | 0 .../SyncDeleteBackupBackupname.java | 0 .../deletebackup/SyncDeleteBackupString.java | 0 .../deleteinstance/AsyncDeleteInstance.java | 0 .../AsyncDeleteInstanceLRO.java | 0 .../deleteinstance/SyncDeleteInstance.java | 0 .../SyncDeleteInstanceInstancename.java | 0 .../SyncDeleteInstanceString.java | 0 .../getbackup/AsyncGetBackup.java | 0 .../getbackup/SyncGetBackup.java | 0 .../getbackup/SyncGetBackupBackupname.java | 0 .../getbackup/SyncGetBackupString.java | 0 .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../listbackups/AsyncListBackups.java | 0 .../listbackups/AsyncListBackupsPaged.java | 0 .../listbackups/SyncListBackups.java | 0 .../SyncListBackupsLocationname.java | 0 .../listbackups/SyncListBackupsString.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../restoreinstance/AsyncRestoreInstance.java | 0 .../AsyncRestoreInstanceLRO.java | 0 .../restoreinstance/SyncRestoreInstance.java | 0 .../updatebackup/AsyncUpdateBackup.java | 0 .../updatebackup/AsyncUpdateBackupLRO.java | 0 .../updatebackup/SyncUpdateBackup.java | 0 .../SyncUpdateBackupBackupFieldmask.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceInstanceFieldmask.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbackup/AsyncCreateBackup.java | 0 .../createbackup/AsyncCreateBackupLRO.java | 0 .../createbackup/SyncCreateBackup.java | 0 ...cCreateBackupLocationnameBackupString.java | 0 .../SyncCreateBackupStringBackupString.java | 0 .../createinstance/AsyncCreateInstance.java | 0 .../AsyncCreateInstanceLRO.java | 0 .../createinstance/SyncCreateInstance.java | 0 ...ateInstanceLocationnameInstanceString.java | 0 ...yncCreateInstanceStringInstanceString.java | 0 .../createshare/AsyncCreateShare.java | 0 .../createshare/AsyncCreateShareLRO.java | 0 .../createshare/SyncCreateShare.java | 0 ...yncCreateShareInstancenameShareString.java | 0 .../SyncCreateShareStringShareString.java | 0 .../createsnapshot/AsyncCreateSnapshot.java | 0 .../AsyncCreateSnapshotLRO.java | 0 .../createsnapshot/SyncCreateSnapshot.java | 0 ...ateSnapshotInstancenameSnapshotString.java | 0 ...yncCreateSnapshotStringSnapshotString.java | 0 .../deletebackup/AsyncDeleteBackup.java | 0 .../deletebackup/AsyncDeleteBackupLRO.java | 0 .../deletebackup/SyncDeleteBackup.java | 0 .../SyncDeleteBackupBackupname.java | 0 .../deletebackup/SyncDeleteBackupString.java | 0 .../deleteinstance/AsyncDeleteInstance.java | 0 .../AsyncDeleteInstanceLRO.java | 0 .../deleteinstance/SyncDeleteInstance.java | 0 .../SyncDeleteInstanceInstancename.java | 0 .../SyncDeleteInstanceString.java | 0 .../deleteshare/AsyncDeleteShare.java | 0 .../deleteshare/AsyncDeleteShareLRO.java | 0 .../deleteshare/SyncDeleteShare.java | 0 .../deleteshare/SyncDeleteShareSharename.java | 0 .../deleteshare/SyncDeleteShareString.java | 0 .../deletesnapshot/AsyncDeleteSnapshot.java | 0 .../AsyncDeleteSnapshotLRO.java | 0 .../deletesnapshot/SyncDeleteSnapshot.java | 0 .../SyncDeleteSnapshotSnapshotname.java | 0 .../SyncDeleteSnapshotString.java | 0 .../getbackup/AsyncGetBackup.java | 0 .../getbackup/SyncGetBackup.java | 0 .../getbackup/SyncGetBackupBackupname.java | 0 .../getbackup/SyncGetBackupString.java | 0 .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../getshare/AsyncGetShare.java | 0 .../getshare/SyncGetShare.java | 0 .../getshare/SyncGetShareSharename.java | 0 .../getshare/SyncGetShareString.java | 0 .../getsnapshot/AsyncGetSnapshot.java | 0 .../getsnapshot/SyncGetSnapshot.java | 0 .../SyncGetSnapshotSnapshotname.java | 0 .../getsnapshot/SyncGetSnapshotString.java | 0 .../listbackups/AsyncListBackups.java | 0 .../listbackups/AsyncListBackupsPaged.java | 0 .../listbackups/SyncListBackups.java | 0 .../SyncListBackupsLocationname.java | 0 .../listbackups/SyncListBackupsString.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../listshares/AsyncListShares.java | 0 .../listshares/AsyncListSharesPaged.java | 0 .../listshares/SyncListShares.java | 0 .../SyncListSharesInstancename.java | 0 .../listshares/SyncListSharesString.java | 0 .../listsnapshots/AsyncListSnapshots.java | 0 .../AsyncListSnapshotsPaged.java | 0 .../listsnapshots/SyncListSnapshots.java | 0 .../SyncListSnapshotsInstancename.java | 0 .../SyncListSnapshotsString.java | 0 .../restoreinstance/AsyncRestoreInstance.java | 0 .../AsyncRestoreInstanceLRO.java | 0 .../restoreinstance/SyncRestoreInstance.java | 0 .../revertinstance/AsyncRevertInstance.java | 0 .../AsyncRevertInstanceLRO.java | 0 .../revertinstance/SyncRevertInstance.java | 0 .../updatebackup/AsyncUpdateBackup.java | 0 .../updatebackup/AsyncUpdateBackupLRO.java | 0 .../updatebackup/SyncUpdateBackup.java | 0 .../SyncUpdateBackupBackupFieldmask.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceInstanceFieldmask.java | 0 .../updateshare/AsyncUpdateShare.java | 0 .../updateshare/AsyncUpdateShareLRO.java | 0 .../updateshare/SyncUpdateShare.java | 0 .../SyncUpdateShareShareFieldmask.java | 0 .../updatesnapshot/AsyncUpdateSnapshot.java | 0 .../AsyncUpdateSnapshotLRO.java | 0 .../updatesnapshot/SyncUpdateSnapshot.java | 0 .../SyncUpdateSnapshotSnapshotFieldmask.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../v1/CloudFilestoreManagerGrpc.java | 1270 ------- .../common/OperationMetadataOuterClass.java | 67 - .../v1/CloudFilestoreServiceProto.java | 460 --- .../v1/DeleteBackupRequestOrBuilder.java | 31 - .../v1/DeleteInstanceRequestOrBuilder.java | 31 - .../v1/GetBackupRequestOrBuilder.java | 31 - .../v1/GetInstanceRequestOrBuilder.java | 31 - .../v1beta1/CloudFilestoreManagerGrpc.java | 2235 ------------- .../common/OperationMetadataOuterClass.java | 67 - .../v1beta1/CloudFilestoreServiceProto.java | 801 ----- .../v1beta1/DeleteBackupRequestOrBuilder.java | 31 - .../v1beta1/DeleteShareRequestOrBuilder.java | 31 - .../DeleteSnapshotRequestOrBuilder.java | 31 - .../v1beta1/GetBackupRequestOrBuilder.java | 31 - .../v1beta1/GetInstanceRequestOrBuilder.java | 31 - .../v1beta1/GetShareRequestOrBuilder.java | 31 - .../v1beta1/GetSnapshotRequestOrBuilder.java | 31 - 324 files changed, 30262 insertions(+), 19470 deletions(-) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java (99%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerCallableFactory.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java (99%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java (99%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java (99%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerCallableFactory.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java (99%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java (99%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManager.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManager.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java (100%) create mode 100644 java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java create mode 100644 java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java (71%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java (74%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java (67%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java (71%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java (69%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java (67%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java (65%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java (57%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java (63%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java (63%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java (75%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java (78%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java (64%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java (63%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java (71%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java (75%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java (70%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java (66%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java (77%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java (80%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java (70%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java (66%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java (77%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java (80%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java (77%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java (83%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java (76%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java (84%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java (69%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java (66%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java (67%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java (64%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java (71%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java (75%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java (71%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java (74%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java (67%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java (71%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java (66%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java (60%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java (66%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java (61%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java (65%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java (58%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java (66%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java (58%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java (64%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java (66%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java (50%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java (64%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java (64%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java (73%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java (80%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java (64%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java (64%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java (64%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java (64%) create mode 100644 java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java (72%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java (75%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java (70%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java (66%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java (77%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java (80%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java (70%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java (66%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java (77%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java (80%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java (69%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java (63%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java (73%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java (73%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java (69%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java (63%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java (73%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java (69%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java (78%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java (87%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java (75%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java (84%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java (71%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java (72%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java (68%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java (60%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java (69%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java (74%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java (65%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java (68%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java (65%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java (58%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java (67%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java (62%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java (67%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java (64%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java (65%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java (56%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackup.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstance.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/AsyncGetBackup.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackup.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupString.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/AsyncGetInstance.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackups.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackups.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsString.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstances.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstances.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesString.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/java-filestore/v1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackup.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstance.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShare.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShareLRO.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShare.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareInstancenameShareString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareStringShareString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshot.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshotLRO.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshot.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotInstancenameSnapshotString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotStringSnapshotString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShare.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShareLRO.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShare.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareSharename.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshot.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshotLRO.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshot.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotSnapshotname.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/AsyncGetBackup.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackup.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/AsyncGetInstance.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/AsyncGetShare.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShare.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareSharename.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/AsyncGetSnapshot.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshot.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotSnapshotname.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackups.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackups.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstances.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstances.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListShares.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListSharesPaged.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListShares.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesInstancename.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshots.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshotsPaged.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshots.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsInstancename.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsString.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShare.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShareLRO.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShare.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShareShareFieldmask.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshot.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshotLRO.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshot.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshotSnapshotFieldmask.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/java-filestore/v1beta1 => java-filestore}/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java (100%) delete mode 100644 owl-bot-staging/java-filestore/v1/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java delete mode 100644 owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java delete mode 100644 owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java delete mode 100644 owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-filestore/v1beta1/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java delete mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java delete mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java delete mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java diff --git a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java diff --git a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java similarity index 99% rename from owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java index 359f2d88baef..467082ec489c 100644 --- a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java @@ -30,7 +30,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.common.OperationMetadata; diff --git a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java diff --git a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java diff --git a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java diff --git a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerCallableFactory.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerCallableFactory.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerCallableFactory.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerCallableFactory.java diff --git a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java similarity index 99% rename from owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java index 8883443cffbb..9b40d2cb2c20 100644 --- a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java @@ -49,7 +49,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/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java diff --git a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java similarity index 99% rename from owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java index c937c1f32ca2..268519024da1 100644 --- a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java @@ -31,7 +31,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/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java diff --git a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java similarity index 99% rename from owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java index bec926e42493..6fb19ae23df9 100644 --- a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java @@ -32,7 +32,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.common.OperationMetadata; diff --git a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java diff --git a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java diff --git a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java diff --git a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerCallableFactory.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerCallableFactory.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerCallableFactory.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerCallableFactory.java diff --git a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java similarity index 99% rename from owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java index 216ddc132403..d67d152aa3a9 100644 --- a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java @@ -67,7 +67,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/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java diff --git a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java similarity index 99% rename from owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java rename to java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java index f9a12c38a887..4243c6d5ee51 100644 --- a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java @@ -33,7 +33,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/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java rename to java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java diff --git a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java rename to java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java diff --git a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManager.java b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManager.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManager.java rename to java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManager.java diff --git a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java rename to java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java diff --git a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java rename to java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java diff --git a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java rename to java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java diff --git a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManager.java b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManager.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManager.java rename to java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManager.java diff --git a/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java rename to java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java diff --git a/java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java b/java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java new file mode 100644 index 000000000000..f9a23b1235b1 --- /dev/null +++ b/java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java @@ -0,0 +1,1602 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.filestore.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Configures and manages Cloud Filestore resources.
+ * Cloud Filestore Manager v1.
+ * The `file.googleapis.com` service implements the Cloud Filestore API and
+ * defines the following resource model for managing instances:
+ * * The service works with a collection of cloud projects, named: `/projects/*`
+ * * Each project has a collection of available locations, named: `/locations/*`
+ * * Each location has a collection of instances and backups, named:
+ * `/instances/*` and `/backups/*` respectively.
+ * * As such, Cloud Filestore instances are resources of the form:
+ *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
+ *   and backups are resources of the form:
+ *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
+ * Note that location_id must be a GCP `zone` for instances and but to a GCP
+ * `region` for backups; for example:
+ * * `projects/12345/locations/us-central1-c/instances/my-filestore`
+ * * `projects/12345/locations/us-central1/backups/my-backup`
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/filestore/v1/cloud_filestore_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CloudFilestoreManagerGrpc { + + private CloudFilestoreManagerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.filestore.v1.CloudFilestoreManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.ListInstancesRequest, + com.google.cloud.filestore.v1.ListInstancesResponse> + getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.filestore.v1.ListInstancesRequest.class, + responseType = com.google.cloud.filestore.v1.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.ListInstancesRequest, + com.google.cloud.filestore.v1.ListInstancesResponse> + getListInstancesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.ListInstancesRequest, + com.google.cloud.filestore.v1.ListInstancesResponse> + getListInstancesMethod; + if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { + CloudFilestoreManagerGrpc.getListInstancesMethod = + getListInstancesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.ListInstancesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.ListInstancesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.GetInstanceRequest, com.google.cloud.filestore.v1.Instance> + getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.filestore.v1.GetInstanceRequest.class, + responseType = com.google.cloud.filestore.v1.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.GetInstanceRequest, com.google.cloud.filestore.v1.Instance> + getGetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.GetInstanceRequest, + com.google.cloud.filestore.v1.Instance> + getGetInstanceMethod; + if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getGetInstanceMethod = + getGetInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.GetInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.Instance.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.CreateInstanceRequest, com.google.longrunning.Operation> + getCreateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInstance", + requestType = com.google.cloud.filestore.v1.CreateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.CreateInstanceRequest, com.google.longrunning.Operation> + getCreateInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.CreateInstanceRequest, com.google.longrunning.Operation> + getCreateInstanceMethod; + if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getCreateInstanceMethod = + getCreateInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.CreateInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("CreateInstance")) + .build(); + } + } + } + return getCreateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.UpdateInstanceRequest, com.google.longrunning.Operation> + getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.filestore.v1.UpdateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.UpdateInstanceRequest, com.google.longrunning.Operation> + getUpdateInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.UpdateInstanceRequest, com.google.longrunning.Operation> + getUpdateInstanceMethod; + if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getUpdateInstanceMethod = + getUpdateInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.UpdateInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.RestoreInstanceRequest, com.google.longrunning.Operation> + getRestoreInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreInstance", + requestType = com.google.cloud.filestore.v1.RestoreInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.RestoreInstanceRequest, com.google.longrunning.Operation> + getRestoreInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.RestoreInstanceRequest, com.google.longrunning.Operation> + getRestoreInstanceMethod; + if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) + == null) { + CloudFilestoreManagerGrpc.getRestoreInstanceMethod = + getRestoreInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.RestoreInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("RestoreInstance")) + .build(); + } + } + } + return getRestoreInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.DeleteInstanceRequest, com.google.longrunning.Operation> + getDeleteInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", + requestType = com.google.cloud.filestore.v1.DeleteInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.DeleteInstanceRequest, com.google.longrunning.Operation> + getDeleteInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.DeleteInstanceRequest, com.google.longrunning.Operation> + getDeleteInstanceMethod; + if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getDeleteInstanceMethod = + getDeleteInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.DeleteInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("DeleteInstance")) + .build(); + } + } + } + return getDeleteInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.ListBackupsRequest, + com.google.cloud.filestore.v1.ListBackupsResponse> + getListBackupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackups", + requestType = com.google.cloud.filestore.v1.ListBackupsRequest.class, + responseType = com.google.cloud.filestore.v1.ListBackupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.ListBackupsRequest, + com.google.cloud.filestore.v1.ListBackupsResponse> + getListBackupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.ListBackupsRequest, + com.google.cloud.filestore.v1.ListBackupsResponse> + getListBackupsMethod; + if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1.ListBackupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.ListBackupsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("ListBackups")) + .build(); + } + } + } + return getListBackupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.GetBackupRequest, com.google.cloud.filestore.v1.Backup> + getGetBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackup", + requestType = com.google.cloud.filestore.v1.GetBackupRequest.class, + responseType = com.google.cloud.filestore.v1.Backup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.GetBackupRequest, com.google.cloud.filestore.v1.Backup> + getGetBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.GetBackupRequest, com.google.cloud.filestore.v1.Backup> + getGetBackupMethod; + if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1.GetBackupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.Backup.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("GetBackup")) + .build(); + } + } + } + return getGetBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.CreateBackupRequest, com.google.longrunning.Operation> + getCreateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBackup", + requestType = com.google.cloud.filestore.v1.CreateBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.CreateBackupRequest, com.google.longrunning.Operation> + getCreateBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.CreateBackupRequest, com.google.longrunning.Operation> + getCreateBackupMethod; + if ((getCreateBackupMethod = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getCreateBackupMethod = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1.CreateBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("CreateBackup")) + .build(); + } + } + } + return getCreateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", + requestType = com.google.cloud.filestore.v1.DeleteBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod; + if ((getDeleteBackupMethod = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getDeleteBackupMethod = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1.DeleteBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("DeleteBackup")) + .build(); + } + } + } + return getDeleteBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.UpdateBackupRequest, com.google.longrunning.Operation> + getUpdateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", + requestType = com.google.cloud.filestore.v1.UpdateBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.UpdateBackupRequest, com.google.longrunning.Operation> + getUpdateBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.UpdateBackupRequest, com.google.longrunning.Operation> + getUpdateBackupMethod; + if ((getUpdateBackupMethod = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getUpdateBackupMethod = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1.UpdateBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("UpdateBackup")) + .build(); + } + } + } + return getUpdateBackupMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CloudFilestoreManagerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFilestoreManagerStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerStub(channel, callOptions); + } + }; + return CloudFilestoreManagerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CloudFilestoreManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFilestoreManagerBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerBlockingStub(channel, callOptions); + } + }; + return CloudFilestoreManagerBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CloudFilestoreManagerFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFilestoreManagerFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerFutureStub(channel, callOptions); + } + }; + return CloudFilestoreManagerFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Configures and manages Cloud Filestore resources.
+   * Cloud Filestore Manager v1.
+   * The `file.googleapis.com` service implements the Cloud Filestore API and
+   * defines the following resource model for managing instances:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Cloud Filestore instances are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
+   *   and backups are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id must be a GCP `zone` for instances and but to a GCP
+   * `region` for backups; for example:
+   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
+   * * `projects/12345/locations/us-central1/backups/my-backup`
+   * 
+ */ + public abstract static class CloudFilestoreManagerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public void listInstances( + com.google.cloud.filestore.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInstancesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public void getInstance( + com.google.cloud.filestore.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public void createInstance( + com.google.cloud.filestore.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public void updateInstance( + com.google.cloud.filestore.v1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public void restoreInstance( + com.google.cloud.filestore.v1.RestoreInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an instance.
+     * 
+ */ + public void deleteInstance( + com.google.cloud.filestore.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public void listBackups( + com.google.cloud.filestore.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBackupsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public void getBackup( + com.google.cloud.filestore.v1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a backup.
+     * 
+ */ + public void createBackup( + com.google.cloud.filestore.v1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a backup.
+     * 
+ */ + public void deleteBackup( + com.google.cloud.filestore.v1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public void updateBackup( + com.google.cloud.filestore.v1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBackupMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.ListInstancesRequest, + com.google.cloud.filestore.v1.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.GetInstanceRequest, + com.google.cloud.filestore.v1.Instance>(this, METHODID_GET_INSTANCE))) + .addMethod( + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.CreateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.UpdateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getRestoreInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.RestoreInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_RESTORE_INSTANCE))) + .addMethod( + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.DeleteInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) + .addMethod( + getListBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.ListBackupsRequest, + com.google.cloud.filestore.v1.ListBackupsResponse>( + this, METHODID_LIST_BACKUPS))) + .addMethod( + getGetBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.GetBackupRequest, + com.google.cloud.filestore.v1.Backup>(this, METHODID_GET_BACKUP))) + .addMethod( + getCreateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.CreateBackupRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_BACKUP))) + .addMethod( + getDeleteBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.DeleteBackupRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_BACKUP))) + .addMethod( + getUpdateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.UpdateBackupRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_BACKUP))) + .build(); + } + } + + /** + * + * + *
+   * Configures and manages Cloud Filestore resources.
+   * Cloud Filestore Manager v1.
+   * The `file.googleapis.com` service implements the Cloud Filestore API and
+   * defines the following resource model for managing instances:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Cloud Filestore instances are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
+   *   and backups are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id must be a GCP `zone` for instances and but to a GCP
+   * `region` for backups; for example:
+   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
+   * * `projects/12345/locations/us-central1/backups/my-backup`
+   * 
+ */ + public static final class CloudFilestoreManagerStub + extends io.grpc.stub.AbstractAsyncStub { + private CloudFilestoreManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudFilestoreManagerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public void listInstances( + com.google.cloud.filestore.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public void getInstance( + com.google.cloud.filestore.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public void createInstance( + com.google.cloud.filestore.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public void updateInstance( + com.google.cloud.filestore.v1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public void restoreInstance( + com.google.cloud.filestore.v1.RestoreInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an instance.
+     * 
+ */ + public void deleteInstance( + com.google.cloud.filestore.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public void listBackups( + com.google.cloud.filestore.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public void getBackup( + com.google.cloud.filestore.v1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a backup.
+     * 
+ */ + public void createBackup( + com.google.cloud.filestore.v1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a backup.
+     * 
+ */ + public void deleteBackup( + com.google.cloud.filestore.v1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public void updateBackup( + com.google.cloud.filestore.v1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Configures and manages Cloud Filestore resources.
+   * Cloud Filestore Manager v1.
+   * The `file.googleapis.com` service implements the Cloud Filestore API and
+   * defines the following resource model for managing instances:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Cloud Filestore instances are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
+   *   and backups are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id must be a GCP `zone` for instances and but to a GCP
+   * `region` for backups; for example:
+   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
+   * * `projects/12345/locations/us-central1/backups/my-backup`
+   * 
+ */ + public static final class CloudFilestoreManagerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CloudFilestoreManagerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudFilestoreManagerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public com.google.cloud.filestore.v1.ListInstancesResponse listInstances( + com.google.cloud.filestore.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public com.google.cloud.filestore.v1.Instance getInstance( + com.google.cloud.filestore.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public com.google.longrunning.Operation createInstance( + com.google.cloud.filestore.v1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance( + com.google.cloud.filestore.v1.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public com.google.longrunning.Operation restoreInstance( + com.google.cloud.filestore.v1.RestoreInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an instance.
+     * 
+ */ + public com.google.longrunning.Operation deleteInstance( + com.google.cloud.filestore.v1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public com.google.cloud.filestore.v1.ListBackupsResponse listBackups( + com.google.cloud.filestore.v1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public com.google.cloud.filestore.v1.Backup getBackup( + com.google.cloud.filestore.v1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a backup.
+     * 
+ */ + public com.google.longrunning.Operation createBackup( + com.google.cloud.filestore.v1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a backup.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackup( + com.google.cloud.filestore.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public com.google.longrunning.Operation updateBackup( + com.google.cloud.filestore.v1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBackupMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Configures and manages Cloud Filestore resources.
+   * Cloud Filestore Manager v1.
+   * The `file.googleapis.com` service implements the Cloud Filestore API and
+   * defines the following resource model for managing instances:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Cloud Filestore instances are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
+   *   and backups are resources of the form:
+   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id must be a GCP `zone` for instances and but to a GCP
+   * `region` for backups; for example:
+   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
+   * * `projects/12345/locations/us-central1/backups/my-backup`
+   * 
+ */ + public static final class CloudFilestoreManagerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CloudFilestoreManagerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudFilestoreManagerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.filestore.v1.ListInstancesResponse> + listInstances(com.google.cloud.filestore.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.filestore.v1.Instance> + getInstance(com.google.cloud.filestore.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createInstance(com.google.cloud.filestore.v1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateInstance(com.google.cloud.filestore.v1.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + restoreInstance(com.google.cloud.filestore.v1.RestoreInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteInstance(com.google.cloud.filestore.v1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.filestore.v1.ListBackupsResponse> + listBackups(com.google.cloud.filestore.v1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getBackup(com.google.cloud.filestore.v1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createBackup(com.google.cloud.filestore.v1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteBackup(com.google.cloud.filestore.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateBackup(com.google.cloud.filestore.v1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_CREATE_INSTANCE = 2; + private static final int METHODID_UPDATE_INSTANCE = 3; + private static final int METHODID_RESTORE_INSTANCE = 4; + private static final int METHODID_DELETE_INSTANCE = 5; + private static final int METHODID_LIST_BACKUPS = 6; + private static final int METHODID_GET_BACKUP = 7; + private static final int METHODID_CREATE_BACKUP = 8; + private static final int METHODID_DELETE_BACKUP = 9; + private static final int METHODID_UPDATE_BACKUP = 10; + + 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 CloudFilestoreManagerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CloudFilestoreManagerImplBase 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_LIST_INSTANCES: + serviceImpl.listInstances( + (com.google.cloud.filestore.v1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance( + (com.google.cloud.filestore.v1.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_INSTANCE: + serviceImpl.createInstance( + (com.google.cloud.filestore.v1.CreateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance( + (com.google.cloud.filestore.v1.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESTORE_INSTANCE: + serviceImpl.restoreInstance( + (com.google.cloud.filestore.v1.RestoreInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INSTANCE: + serviceImpl.deleteInstance( + (com.google.cloud.filestore.v1.DeleteInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BACKUPS: + serviceImpl.listBackups( + (com.google.cloud.filestore.v1.ListBackupsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_BACKUP: + serviceImpl.getBackup( + (com.google.cloud.filestore.v1.GetBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_BACKUP: + serviceImpl.createBackup( + (com.google.cloud.filestore.v1.CreateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BACKUP: + serviceImpl.deleteBackup( + (com.google.cloud.filestore.v1.DeleteBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BACKUP: + serviceImpl.updateBackup( + (com.google.cloud.filestore.v1.UpdateBackupRequest) 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 CloudFilestoreManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CloudFilestoreManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CloudFilestoreManager"); + } + } + + private static final class CloudFilestoreManagerFileDescriptorSupplier + extends CloudFilestoreManagerBaseDescriptorSupplier { + CloudFilestoreManagerFileDescriptorSupplier() {} + } + + private static final class CloudFilestoreManagerMethodDescriptorSupplier + extends CloudFilestoreManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CloudFilestoreManagerMethodDescriptorSupplier(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 (CloudFilestoreManagerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudFilestoreManagerFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getRestoreInstanceMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getListBackupsMethod()) + .addMethod(getGetBackupMethod()) + .addMethod(getCreateBackupMethod()) + .addMethod(getDeleteBackupMethod()) + .addMethod(getUpdateBackupMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java b/java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java new file mode 100644 index 000000000000..45f7ce382d65 --- /dev/null +++ b/java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java @@ -0,0 +1,2912 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.filestore.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Configures and manages Filestore resources.
+ * Filestore Manager v1beta1.
+ * The `file.googleapis.com` service implements the Filestore API and
+ * defines the following model for managing resources:
+ * * The service works with a collection of cloud projects, named: `/projects/*`
+ * * Each project has a collection of available locations, named: `/locations/*`
+ * * Each location has a collection of instances and backups, named:
+ * `/instances/*` and `/backups/*` respectively.
+ * * As such, Filestore instances are resources of the form:
+ *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+ *   backups are resources of the form:
+ *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+ * Note that location_id can represent a GCP `zone` or `region` depending on the
+ * resource.
+ * for example:
+ * A zonal Filestore instance:
+ * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+ * A regional Filestore instance:
+ * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CloudFilestoreManagerGrpc { + + private CloudFilestoreManagerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.filestore.v1beta1.CloudFilestoreManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.ListInstancesRequest, + com.google.cloud.filestore.v1beta1.ListInstancesResponse> + getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, + responseType = com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.ListInstancesRequest, + com.google.cloud.filestore.v1beta1.ListInstancesResponse> + getListInstancesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.ListInstancesRequest, + com.google.cloud.filestore.v1beta1.ListInstancesResponse> + getListInstancesMethod; + if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { + CloudFilestoreManagerGrpc.getListInstancesMethod = + getListInstancesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListInstancesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListInstancesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.GetInstanceRequest, + com.google.cloud.filestore.v1beta1.Instance> + getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, + responseType = com.google.cloud.filestore.v1beta1.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.GetInstanceRequest, + com.google.cloud.filestore.v1beta1.Instance> + getGetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.GetInstanceRequest, + com.google.cloud.filestore.v1beta1.Instance> + getGetInstanceMethod; + if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getGetInstanceMethod = + getGetInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.GetInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.CreateInstanceRequest, + com.google.longrunning.Operation> + getCreateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInstance", + requestType = com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.CreateInstanceRequest, + com.google.longrunning.Operation> + getCreateInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.CreateInstanceRequest, + com.google.longrunning.Operation> + getCreateInstanceMethod; + if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getCreateInstanceMethod = + getCreateInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.CreateInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("CreateInstance")) + .build(); + } + } + } + return getCreateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest, + com.google.longrunning.Operation> + getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest, + com.google.longrunning.Operation> + getUpdateInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest, + com.google.longrunning.Operation> + getUpdateInstanceMethod; + if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getUpdateInstanceMethod = + getUpdateInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest, + com.google.longrunning.Operation> + getRestoreInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreInstance", + requestType = com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest, + com.google.longrunning.Operation> + getRestoreInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest, + com.google.longrunning.Operation> + getRestoreInstanceMethod; + if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) + == null) { + CloudFilestoreManagerGrpc.getRestoreInstanceMethod = + getRestoreInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("RestoreInstance")) + .build(); + } + } + } + return getRestoreInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.RevertInstanceRequest, + com.google.longrunning.Operation> + getRevertInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RevertInstance", + requestType = com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.RevertInstanceRequest, + com.google.longrunning.Operation> + getRevertInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.RevertInstanceRequest, + com.google.longrunning.Operation> + getRevertInstanceMethod; + if ((getRevertInstanceMethod = CloudFilestoreManagerGrpc.getRevertInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getRevertInstanceMethod = CloudFilestoreManagerGrpc.getRevertInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getRevertInstanceMethod = + getRevertInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevertInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.RevertInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("RevertInstance")) + .build(); + } + } + } + return getRevertInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest, + com.google.longrunning.Operation> + getDeleteInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", + requestType = com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest, + com.google.longrunning.Operation> + getDeleteInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest, + com.google.longrunning.Operation> + getDeleteInstanceMethod; + if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getDeleteInstanceMethod = + getDeleteInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("DeleteInstance")) + .build(); + } + } + } + return getDeleteInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest, + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse> + getListSnapshotsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSnapshots", + requestType = com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, + responseType = com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest, + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse> + getListSnapshotsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest, + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse> + getListSnapshotsMethod; + if ((getListSnapshotsMethod = CloudFilestoreManagerGrpc.getListSnapshotsMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getListSnapshotsMethod = CloudFilestoreManagerGrpc.getListSnapshotsMethod) == null) { + CloudFilestoreManagerGrpc.getListSnapshotsMethod = + getListSnapshotsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSnapshots")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("ListSnapshots")) + .build(); + } + } + } + return getListSnapshotsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.GetSnapshotRequest, + com.google.cloud.filestore.v1beta1.Snapshot> + getGetSnapshotMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSnapshot", + requestType = com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, + responseType = com.google.cloud.filestore.v1beta1.Snapshot.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.GetSnapshotRequest, + com.google.cloud.filestore.v1beta1.Snapshot> + getGetSnapshotMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.GetSnapshotRequest, + com.google.cloud.filestore.v1beta1.Snapshot> + getGetSnapshotMethod; + if ((getGetSnapshotMethod = CloudFilestoreManagerGrpc.getGetSnapshotMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getGetSnapshotMethod = CloudFilestoreManagerGrpc.getGetSnapshotMethod) == null) { + CloudFilestoreManagerGrpc.getGetSnapshotMethod = + getGetSnapshotMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSnapshot")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.GetSnapshotRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("GetSnapshot")) + .build(); + } + } + } + return getGetSnapshotMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest, + com.google.longrunning.Operation> + getCreateSnapshotMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSnapshot", + requestType = com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest, + com.google.longrunning.Operation> + getCreateSnapshotMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest, + com.google.longrunning.Operation> + getCreateSnapshotMethod; + if ((getCreateSnapshotMethod = CloudFilestoreManagerGrpc.getCreateSnapshotMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getCreateSnapshotMethod = CloudFilestoreManagerGrpc.getCreateSnapshotMethod) == null) { + CloudFilestoreManagerGrpc.getCreateSnapshotMethod = + getCreateSnapshotMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSnapshot")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("CreateSnapshot")) + .build(); + } + } + } + return getCreateSnapshotMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest, + com.google.longrunning.Operation> + getDeleteSnapshotMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSnapshot", + requestType = com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest, + com.google.longrunning.Operation> + getDeleteSnapshotMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest, + com.google.longrunning.Operation> + getDeleteSnapshotMethod; + if ((getDeleteSnapshotMethod = CloudFilestoreManagerGrpc.getDeleteSnapshotMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getDeleteSnapshotMethod = CloudFilestoreManagerGrpc.getDeleteSnapshotMethod) == null) { + CloudFilestoreManagerGrpc.getDeleteSnapshotMethod = + getDeleteSnapshotMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSnapshot")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("DeleteSnapshot")) + .build(); + } + } + } + return getDeleteSnapshotMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest, + com.google.longrunning.Operation> + getUpdateSnapshotMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSnapshot", + requestType = com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest, + com.google.longrunning.Operation> + getUpdateSnapshotMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest, + com.google.longrunning.Operation> + getUpdateSnapshotMethod; + if ((getUpdateSnapshotMethod = CloudFilestoreManagerGrpc.getUpdateSnapshotMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getUpdateSnapshotMethod = CloudFilestoreManagerGrpc.getUpdateSnapshotMethod) == null) { + CloudFilestoreManagerGrpc.getUpdateSnapshotMethod = + getUpdateSnapshotMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSnapshot")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("UpdateSnapshot")) + .build(); + } + } + } + return getUpdateSnapshotMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.ListBackupsRequest, + com.google.cloud.filestore.v1beta1.ListBackupsResponse> + getListBackupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackups", + requestType = com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, + responseType = com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.ListBackupsRequest, + com.google.cloud.filestore.v1beta1.ListBackupsResponse> + getListBackupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.ListBackupsRequest, + com.google.cloud.filestore.v1beta1.ListBackupsResponse> + getListBackupsMethod; + if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1beta1.ListBackupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListBackupsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("ListBackups")) + .build(); + } + } + } + return getListBackupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.GetBackupRequest, + com.google.cloud.filestore.v1beta1.Backup> + getGetBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackup", + requestType = com.google.cloud.filestore.v1beta1.GetBackupRequest.class, + responseType = com.google.cloud.filestore.v1beta1.Backup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.GetBackupRequest, + com.google.cloud.filestore.v1beta1.Backup> + getGetBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.GetBackupRequest, + com.google.cloud.filestore.v1beta1.Backup> + getGetBackupMethod; + if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1beta1.GetBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("GetBackup")) + .build(); + } + } + } + return getGetBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.CreateBackupRequest, com.google.longrunning.Operation> + getCreateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBackup", + requestType = com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.CreateBackupRequest, com.google.longrunning.Operation> + getCreateBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.CreateBackupRequest, + com.google.longrunning.Operation> + getCreateBackupMethod; + if ((getCreateBackupMethod = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getCreateBackupMethod = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1beta1.CreateBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("CreateBackup")) + .build(); + } + } + } + return getCreateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", + requestType = com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.DeleteBackupRequest, + com.google.longrunning.Operation> + getDeleteBackupMethod; + if ((getDeleteBackupMethod = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getDeleteBackupMethod = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1beta1.DeleteBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("DeleteBackup")) + .build(); + } + } + } + return getDeleteBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.UpdateBackupRequest, com.google.longrunning.Operation> + getUpdateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", + requestType = com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.UpdateBackupRequest, com.google.longrunning.Operation> + getUpdateBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.UpdateBackupRequest, + com.google.longrunning.Operation> + getUpdateBackupMethod; + if ((getUpdateBackupMethod = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getUpdateBackupMethod = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { + CloudFilestoreManagerGrpc.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.filestore.v1beta1.UpdateBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("UpdateBackup")) + .build(); + } + } + } + return getUpdateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.ListSharesRequest, + com.google.cloud.filestore.v1beta1.ListSharesResponse> + getListSharesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListShares", + requestType = com.google.cloud.filestore.v1beta1.ListSharesRequest.class, + responseType = com.google.cloud.filestore.v1beta1.ListSharesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.ListSharesRequest, + com.google.cloud.filestore.v1beta1.ListSharesResponse> + getListSharesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.ListSharesRequest, + com.google.cloud.filestore.v1beta1.ListSharesResponse> + getListSharesMethod; + if ((getListSharesMethod = CloudFilestoreManagerGrpc.getListSharesMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getListSharesMethod = CloudFilestoreManagerGrpc.getListSharesMethod) == null) { + CloudFilestoreManagerGrpc.getListSharesMethod = + getListSharesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListShares")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListSharesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListSharesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("ListShares")) + .build(); + } + } + } + return getListSharesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.GetShareRequest, + com.google.cloud.filestore.v1beta1.Share> + getGetShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetShare", + requestType = com.google.cloud.filestore.v1beta1.GetShareRequest.class, + responseType = com.google.cloud.filestore.v1beta1.Share.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.GetShareRequest, + com.google.cloud.filestore.v1beta1.Share> + getGetShareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.GetShareRequest, + com.google.cloud.filestore.v1beta1.Share> + getGetShareMethod; + if ((getGetShareMethod = CloudFilestoreManagerGrpc.getGetShareMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getGetShareMethod = CloudFilestoreManagerGrpc.getGetShareMethod) == null) { + CloudFilestoreManagerGrpc.getGetShareMethod = + getGetShareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.GetShareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.Share.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("GetShare")) + .build(); + } + } + } + return getGetShareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.CreateShareRequest, com.google.longrunning.Operation> + getCreateShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateShare", + requestType = com.google.cloud.filestore.v1beta1.CreateShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.CreateShareRequest, com.google.longrunning.Operation> + getCreateShareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.CreateShareRequest, com.google.longrunning.Operation> + getCreateShareMethod; + if ((getCreateShareMethod = CloudFilestoreManagerGrpc.getCreateShareMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getCreateShareMethod = CloudFilestoreManagerGrpc.getCreateShareMethod) == null) { + CloudFilestoreManagerGrpc.getCreateShareMethod = + getCreateShareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.CreateShareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("CreateShare")) + .build(); + } + } + } + return getCreateShareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.DeleteShareRequest, com.google.longrunning.Operation> + getDeleteShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteShare", + requestType = com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.DeleteShareRequest, com.google.longrunning.Operation> + getDeleteShareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.DeleteShareRequest, com.google.longrunning.Operation> + getDeleteShareMethod; + if ((getDeleteShareMethod = CloudFilestoreManagerGrpc.getDeleteShareMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getDeleteShareMethod = CloudFilestoreManagerGrpc.getDeleteShareMethod) == null) { + CloudFilestoreManagerGrpc.getDeleteShareMethod = + getDeleteShareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.DeleteShareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("DeleteShare")) + .build(); + } + } + } + return getDeleteShareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.UpdateShareRequest, com.google.longrunning.Operation> + getUpdateShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateShare", + requestType = com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.UpdateShareRequest, com.google.longrunning.Operation> + getUpdateShareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1beta1.UpdateShareRequest, com.google.longrunning.Operation> + getUpdateShareMethod; + if ((getUpdateShareMethod = CloudFilestoreManagerGrpc.getUpdateShareMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getUpdateShareMethod = CloudFilestoreManagerGrpc.getUpdateShareMethod) == null) { + CloudFilestoreManagerGrpc.getUpdateShareMethod = + getUpdateShareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.UpdateShareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("UpdateShare")) + .build(); + } + } + } + return getUpdateShareMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CloudFilestoreManagerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFilestoreManagerStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerStub(channel, callOptions); + } + }; + return CloudFilestoreManagerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CloudFilestoreManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFilestoreManagerBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerBlockingStub(channel, callOptions); + } + }; + return CloudFilestoreManagerBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CloudFilestoreManagerFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFilestoreManagerFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerFutureStub(channel, callOptions); + } + }; + return CloudFilestoreManagerFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Configures and manages Filestore resources.
+   * Filestore Manager v1beta1.
+   * The `file.googleapis.com` service implements the Filestore API and
+   * defines the following model for managing resources:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Filestore instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   *   backups are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id can represent a GCP `zone` or `region` depending on the
+   * resource.
+   * for example:
+   * A zonal Filestore instance:
+   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+   * A regional Filestore instance:
+   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+   * 
+ */ + public abstract static class CloudFilestoreManagerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public void listInstances( + com.google.cloud.filestore.v1beta1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInstancesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public void getInstance( + com.google.cloud.filestore.v1beta1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public void createInstance( + com.google.cloud.filestore.v1beta1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public void updateInstance( + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public void restoreInstance( + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Revert an existing instance's file system to a specified snapshot.
+     * 
+ */ + public void revertInstance( + com.google.cloud.filestore.v1beta1.RevertInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRevertInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an instance.
+     * 
+ */ + public void deleteInstance( + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all snapshots in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public void listSnapshots( + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSnapshotsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a specific snapshot.
+     * 
+ */ + public void getSnapshot( + com.google.cloud.filestore.v1beta1.GetSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSnapshotMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a snapshot.
+     * 
+ */ + public void createSnapshot( + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSnapshotMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a snapshot.
+     * 
+ */ + public void deleteSnapshot( + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSnapshotMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the settings of a specific snapshot.
+     * 
+ */ + public void updateSnapshot( + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSnapshotMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public void listBackups( + com.google.cloud.filestore.v1beta1.ListBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBackupsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public void getBackup( + com.google.cloud.filestore.v1beta1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a backup.
+     * 
+ */ + public void createBackup( + com.google.cloud.filestore.v1beta1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a backup.
+     * 
+ */ + public void deleteBackup( + com.google.cloud.filestore.v1beta1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public void updateBackup( + com.google.cloud.filestore.v1beta1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all shares for a specified instance.
+     * 
+ */ + public void listShares( + com.google.cloud.filestore.v1beta1.ListSharesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSharesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a specific share.
+     * 
+ */ + public void getShare( + com.google.cloud.filestore.v1beta1.GetShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetShareMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a share.
+     * 
+ */ + public void createShare( + com.google.cloud.filestore.v1beta1.CreateShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateShareMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a share.
+     * 
+ */ + public void deleteShare( + com.google.cloud.filestore.v1beta1.DeleteShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteShareMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the settings of a specific share.
+     * 
+ */ + public void updateShare( + com.google.cloud.filestore.v1beta1.UpdateShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateShareMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.ListInstancesRequest, + com.google.cloud.filestore.v1beta1.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.GetInstanceRequest, + com.google.cloud.filestore.v1beta1.Instance>(this, METHODID_GET_INSTANCE))) + .addMethod( + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.CreateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getRestoreInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_RESTORE_INSTANCE))) + .addMethod( + getRevertInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.RevertInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_REVERT_INSTANCE))) + .addMethod( + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) + .addMethod( + getListSnapshotsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest, + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse>( + this, METHODID_LIST_SNAPSHOTS))) + .addMethod( + getGetSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.GetSnapshotRequest, + com.google.cloud.filestore.v1beta1.Snapshot>(this, METHODID_GET_SNAPSHOT))) + .addMethod( + getCreateSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_SNAPSHOT))) + .addMethod( + getDeleteSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_SNAPSHOT))) + .addMethod( + getUpdateSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_SNAPSHOT))) + .addMethod( + getListBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.ListBackupsRequest, + com.google.cloud.filestore.v1beta1.ListBackupsResponse>( + this, METHODID_LIST_BACKUPS))) + .addMethod( + getGetBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.GetBackupRequest, + com.google.cloud.filestore.v1beta1.Backup>(this, METHODID_GET_BACKUP))) + .addMethod( + getCreateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.CreateBackupRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_BACKUP))) + .addMethod( + getDeleteBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.DeleteBackupRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_BACKUP))) + .addMethod( + getUpdateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.UpdateBackupRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_BACKUP))) + .addMethod( + getListSharesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.ListSharesRequest, + com.google.cloud.filestore.v1beta1.ListSharesResponse>( + this, METHODID_LIST_SHARES))) + .addMethod( + getGetShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.GetShareRequest, + com.google.cloud.filestore.v1beta1.Share>(this, METHODID_GET_SHARE))) + .addMethod( + getCreateShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.CreateShareRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_SHARE))) + .addMethod( + getDeleteShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.DeleteShareRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_SHARE))) + .addMethod( + getUpdateShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.UpdateShareRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_SHARE))) + .build(); + } + } + + /** + * + * + *
+   * Configures and manages Filestore resources.
+   * Filestore Manager v1beta1.
+   * The `file.googleapis.com` service implements the Filestore API and
+   * defines the following model for managing resources:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Filestore instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   *   backups are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id can represent a GCP `zone` or `region` depending on the
+   * resource.
+   * for example:
+   * A zonal Filestore instance:
+   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+   * A regional Filestore instance:
+   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+   * 
+ */ + public static final class CloudFilestoreManagerStub + extends io.grpc.stub.AbstractAsyncStub { + private CloudFilestoreManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudFilestoreManagerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public void listInstances( + com.google.cloud.filestore.v1beta1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public void getInstance( + com.google.cloud.filestore.v1beta1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public void createInstance( + com.google.cloud.filestore.v1beta1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public void updateInstance( + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public void restoreInstance( + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Revert an existing instance's file system to a specified snapshot.
+     * 
+ */ + public void revertInstance( + com.google.cloud.filestore.v1beta1.RevertInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRevertInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an instance.
+     * 
+ */ + public void deleteInstance( + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all snapshots in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public void listSnapshots( + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the details of a specific snapshot.
+     * 
+ */ + public void getSnapshot( + com.google.cloud.filestore.v1beta1.GetSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a snapshot.
+     * 
+ */ + public void createSnapshot( + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a snapshot.
+     * 
+ */ + public void deleteSnapshot( + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the settings of a specific snapshot.
+     * 
+ */ + public void updateSnapshot( + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public void listBackups( + com.google.cloud.filestore.v1beta1.ListBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public void getBackup( + com.google.cloud.filestore.v1beta1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a backup.
+     * 
+ */ + public void createBackup( + com.google.cloud.filestore.v1beta1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a backup.
+     * 
+ */ + public void deleteBackup( + com.google.cloud.filestore.v1beta1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public void updateBackup( + com.google.cloud.filestore.v1beta1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all shares for a specified instance.
+     * 
+ */ + public void listShares( + com.google.cloud.filestore.v1beta1.ListSharesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSharesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets the details of a specific share.
+     * 
+ */ + public void getShare( + com.google.cloud.filestore.v1beta1.GetShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetShareMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a share.
+     * 
+ */ + public void createShare( + com.google.cloud.filestore.v1beta1.CreateShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateShareMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a share.
+     * 
+ */ + public void deleteShare( + com.google.cloud.filestore.v1beta1.DeleteShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteShareMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the settings of a specific share.
+     * 
+ */ + public void updateShare( + com.google.cloud.filestore.v1beta1.UpdateShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateShareMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Configures and manages Filestore resources.
+   * Filestore Manager v1beta1.
+   * The `file.googleapis.com` service implements the Filestore API and
+   * defines the following model for managing resources:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Filestore instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   *   backups are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id can represent a GCP `zone` or `region` depending on the
+   * resource.
+   * for example:
+   * A zonal Filestore instance:
+   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+   * A regional Filestore instance:
+   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+   * 
+ */ + public static final class CloudFilestoreManagerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CloudFilestoreManagerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudFilestoreManagerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.ListInstancesResponse listInstances( + com.google.cloud.filestore.v1beta1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.Instance getInstance( + com.google.cloud.filestore.v1beta1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public com.google.longrunning.Operation createInstance( + com.google.cloud.filestore.v1beta1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance( + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public com.google.longrunning.Operation restoreInstance( + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Revert an existing instance's file system to a specified snapshot.
+     * 
+ */ + public com.google.longrunning.Operation revertInstance( + com.google.cloud.filestore.v1beta1.RevertInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRevertInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an instance.
+     * 
+ */ + public com.google.longrunning.Operation deleteInstance( + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all snapshots in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse listSnapshots( + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSnapshotsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a specific snapshot.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot( + com.google.cloud.filestore.v1beta1.GetSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSnapshotMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a snapshot.
+     * 
+ */ + public com.google.longrunning.Operation createSnapshot( + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a snapshot.
+     * 
+ */ + public com.google.longrunning.Operation deleteSnapshot( + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the settings of a specific snapshot.
+     * 
+ */ + public com.google.longrunning.Operation updateSnapshot( + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.ListBackupsResponse listBackups( + com.google.cloud.filestore.v1beta1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.Backup getBackup( + com.google.cloud.filestore.v1beta1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a backup.
+     * 
+ */ + public com.google.longrunning.Operation createBackup( + com.google.cloud.filestore.v1beta1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a backup.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackup( + com.google.cloud.filestore.v1beta1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public com.google.longrunning.Operation updateBackup( + com.google.cloud.filestore.v1beta1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all shares for a specified instance.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.ListSharesResponse listShares( + com.google.cloud.filestore.v1beta1.ListSharesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSharesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a specific share.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.Share getShare( + com.google.cloud.filestore.v1beta1.GetShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetShareMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a share.
+     * 
+ */ + public com.google.longrunning.Operation createShare( + com.google.cloud.filestore.v1beta1.CreateShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateShareMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a share.
+     * 
+ */ + public com.google.longrunning.Operation deleteShare( + com.google.cloud.filestore.v1beta1.DeleteShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteShareMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the settings of a specific share.
+     * 
+ */ + public com.google.longrunning.Operation updateShare( + com.google.cloud.filestore.v1beta1.UpdateShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateShareMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Configures and manages Filestore resources.
+   * Filestore Manager v1beta1.
+   * The `file.googleapis.com` service implements the Filestore API and
+   * defines the following model for managing resources:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of instances and backups, named:
+   * `/instances/*` and `/backups/*` respectively.
+   * * As such, Filestore instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   *   backups are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id can represent a GCP `zone` or `region` depending on the
+   * resource.
+   * for example:
+   * A zonal Filestore instance:
+   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+   * A regional Filestore instance:
+   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+   * 
+ */ + public static final class CloudFilestoreManagerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CloudFilestoreManagerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudFilestoreManagerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFilestoreManagerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.filestore.v1beta1.ListInstancesResponse> + listInstances(com.google.cloud.filestore.v1beta1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.filestore.v1beta1.Instance> + getInstance(com.google.cloud.filestore.v1beta1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an instance.
+     * When creating from a backup, the capacity of the new instance needs to be
+     * equal to or larger than the capacity of the backup (and also equal to or
+     * larger than the minimum capacity of the tier).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createInstance(com.google.cloud.filestore.v1beta1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateInstance(com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Restores an existing instance's file share from a backup.
+     * The capacity of the instance needs to be equal to or larger than the
+     * capacity of the backup (and also equal to or larger than the minimum
+     * capacity of the tier).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + restoreInstance(com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Revert an existing instance's file system to a specified snapshot.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + revertInstance(com.google.cloud.filestore.v1beta1.RevertInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRevertInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteInstance(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all snapshots in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse> + listSnapshots(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a specific snapshot.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.filestore.v1beta1.Snapshot> + getSnapshot(com.google.cloud.filestore.v1beta1.GetSnapshotRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a snapshot.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createSnapshot(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a snapshot.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSnapshot(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the settings of a specific snapshot.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateSnapshot(com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.filestore.v1beta1.ListBackupsResponse> + listBackups(com.google.cloud.filestore.v1beta1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.filestore.v1beta1.Backup> + getBackup(com.google.cloud.filestore.v1beta1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createBackup(com.google.cloud.filestore.v1beta1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteBackup(com.google.cloud.filestore.v1beta1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateBackup(com.google.cloud.filestore.v1beta1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all shares for a specified instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.filestore.v1beta1.ListSharesResponse> + listShares(com.google.cloud.filestore.v1beta1.ListSharesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSharesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a specific share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.filestore.v1beta1.Share> + getShare(com.google.cloud.filestore.v1beta1.GetShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetShareMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createShare(com.google.cloud.filestore.v1beta1.CreateShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateShareMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteShare(com.google.cloud.filestore.v1beta1.DeleteShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteShareMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the settings of a specific share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateShare(com.google.cloud.filestore.v1beta1.UpdateShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateShareMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_CREATE_INSTANCE = 2; + private static final int METHODID_UPDATE_INSTANCE = 3; + private static final int METHODID_RESTORE_INSTANCE = 4; + private static final int METHODID_REVERT_INSTANCE = 5; + private static final int METHODID_DELETE_INSTANCE = 6; + private static final int METHODID_LIST_SNAPSHOTS = 7; + private static final int METHODID_GET_SNAPSHOT = 8; + private static final int METHODID_CREATE_SNAPSHOT = 9; + private static final int METHODID_DELETE_SNAPSHOT = 10; + private static final int METHODID_UPDATE_SNAPSHOT = 11; + private static final int METHODID_LIST_BACKUPS = 12; + private static final int METHODID_GET_BACKUP = 13; + private static final int METHODID_CREATE_BACKUP = 14; + private static final int METHODID_DELETE_BACKUP = 15; + private static final int METHODID_UPDATE_BACKUP = 16; + private static final int METHODID_LIST_SHARES = 17; + private static final int METHODID_GET_SHARE = 18; + private static final int METHODID_CREATE_SHARE = 19; + private static final int METHODID_DELETE_SHARE = 20; + private static final int METHODID_UPDATE_SHARE = 21; + + 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 CloudFilestoreManagerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CloudFilestoreManagerImplBase 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_LIST_INSTANCES: + serviceImpl.listInstances( + (com.google.cloud.filestore.v1beta1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.filestore.v1beta1.ListInstancesResponse>) + responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance( + (com.google.cloud.filestore.v1beta1.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_INSTANCE: + serviceImpl.createInstance( + (com.google.cloud.filestore.v1beta1.CreateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance( + (com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESTORE_INSTANCE: + serviceImpl.restoreInstance( + (com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REVERT_INSTANCE: + serviceImpl.revertInstance( + (com.google.cloud.filestore.v1beta1.RevertInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INSTANCE: + serviceImpl.deleteInstance( + (com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SNAPSHOTS: + serviceImpl.listSnapshots( + (com.google.cloud.filestore.v1beta1.ListSnapshotsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse>) + responseObserver); + break; + case METHODID_GET_SNAPSHOT: + serviceImpl.getSnapshot( + (com.google.cloud.filestore.v1beta1.GetSnapshotRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SNAPSHOT: + serviceImpl.createSnapshot( + (com.google.cloud.filestore.v1beta1.CreateSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SNAPSHOT: + serviceImpl.deleteSnapshot( + (com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SNAPSHOT: + serviceImpl.updateSnapshot( + (com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BACKUPS: + serviceImpl.listBackups( + (com.google.cloud.filestore.v1beta1.ListBackupsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_BACKUP: + serviceImpl.getBackup( + (com.google.cloud.filestore.v1beta1.GetBackupRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_BACKUP: + serviceImpl.createBackup( + (com.google.cloud.filestore.v1beta1.CreateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BACKUP: + serviceImpl.deleteBackup( + (com.google.cloud.filestore.v1beta1.DeleteBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BACKUP: + serviceImpl.updateBackup( + (com.google.cloud.filestore.v1beta1.UpdateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SHARES: + serviceImpl.listShares( + (com.google.cloud.filestore.v1beta1.ListSharesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SHARE: + serviceImpl.getShare( + (com.google.cloud.filestore.v1beta1.GetShareRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SHARE: + serviceImpl.createShare( + (com.google.cloud.filestore.v1beta1.CreateShareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SHARE: + serviceImpl.deleteShare( + (com.google.cloud.filestore.v1beta1.DeleteShareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SHARE: + serviceImpl.updateShare( + (com.google.cloud.filestore.v1beta1.UpdateShareRequest) 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 CloudFilestoreManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CloudFilestoreManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CloudFilestoreManager"); + } + } + + private static final class CloudFilestoreManagerFileDescriptorSupplier + extends CloudFilestoreManagerBaseDescriptorSupplier { + CloudFilestoreManagerFileDescriptorSupplier() {} + } + + private static final class CloudFilestoreManagerMethodDescriptorSupplier + extends CloudFilestoreManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CloudFilestoreManagerMethodDescriptorSupplier(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 (CloudFilestoreManagerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudFilestoreManagerFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getRestoreInstanceMethod()) + .addMethod(getRevertInstanceMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getListSnapshotsMethod()) + .addMethod(getGetSnapshotMethod()) + .addMethod(getCreateSnapshotMethod()) + .addMethod(getDeleteSnapshotMethod()) + .addMethod(getUpdateSnapshotMethod()) + .addMethod(getListBackupsMethod()) + .addMethod(getGetBackupMethod()) + .addMethod(getCreateBackupMethod()) + .addMethod(getDeleteBackupMethod()) + .addMethod(getUpdateBackupMethod()) + .addMethod(getListSharesMethod()) + .addMethod(getGetShareMethod()) + .addMethod(getCreateShareMethod()) + .addMethod(getDeleteShareMethod()) + .addMethod(getUpdateShareMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java similarity index 71% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java index 07036dbcf704..cd3f8c6dcec5 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/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/common/operation_metadata.proto package com.google.cloud.common; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.common.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.common.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,37 +46,42 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.common.OperationMetadataOuterClass + .internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable + return com.google.cloud.common.OperationMetadataOuterClass + .internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.common.OperationMetadata.class, com.google.cloud.common.OperationMetadata.Builder.class); + com.google.cloud.common.OperationMetadata.class, + com.google.cloud.common.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 @@ -66,11 +89,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 @@ -78,11 +105,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() { @@ -92,11 +122,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 @@ -104,11 +138,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 @@ -116,11 +154,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() { @@ -130,11 +171,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 @@ -143,29 +187,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 { @@ -176,11 +220,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 @@ -189,29 +236,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 { @@ -222,11 +269,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ @java.lang.Override @@ -235,29 +285,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -268,6 +318,8 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -276,6 +328,7 @@ public java.lang.String getStatusDetail() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -286,11 +339,14 @@ public boolean getCancelRequested() { 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 @@ -299,29 +355,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 { @@ -330,6 +386,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +398,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -374,12 +430,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_); @@ -391,8 +445,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -405,33 +458,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.common.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.common.OperationMetadata other = (com.google.cloud.common.OperationMetadata) obj; + com.google.cloud.common.OperationMetadata other = + (com.google.cloud.common.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 (!getStatusDetail() - .equals(other.getStatusDetail())) return false; - if (getCancelRequested() - != other.getCancelRequested()) 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 (!getStatusDetail().equals(other.getStatusDetail())) return false; + if (getCancelRequested() != other.getCancelRequested()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -458,8 +505,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -467,130 +513,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.common.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.common.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.common.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.common.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.common.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.common.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.common.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.common.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.common.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.common.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.common.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.common.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.common.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.common.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.common.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.common.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.common.OperationMetadata) com.google.cloud.common.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.common.OperationMetadataOuterClass + .internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable + return com.google.cloud.common.OperationMetadataOuterClass + .internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.common.OperationMetadata.class, com.google.cloud.common.OperationMetadata.Builder.class); + com.google.cloud.common.OperationMetadata.class, + com.google.cloud.common.OperationMetadata.Builder.class); } // Construct using com.google.cloud.common.OperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -620,9 +672,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.common.OperationMetadataOuterClass + .internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override @@ -641,7 +693,8 @@ public com.google.cloud.common.OperationMetadata build() { @java.lang.Override public com.google.cloud.common.OperationMetadata buildPartial() { - com.google.cloud.common.OperationMetadata result = new com.google.cloud.common.OperationMetadata(this); + com.google.cloud.common.OperationMetadata result = + new com.google.cloud.common.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -665,38 +718,39 @@ public com.google.cloud.common.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.common.OperationMetadata) { - return mergeFrom((com.google.cloud.common.OperationMetadata)other); + return mergeFrom((com.google.cloud.common.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -756,51 +810,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - statusDetail_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: { - cancelRequested_ = input.readBool(); - - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + statusDetail_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: + { + cancelRequested_ = input.readBool(); + + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -813,39 +871,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) { @@ -861,14 +938,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(); @@ -879,17 +959,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; } @@ -901,11 +985,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) { @@ -919,48 +1007,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_; @@ -968,24 +1072,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() { @@ -996,11 +1111,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) { @@ -1016,14 +1134,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(); @@ -1034,17 +1154,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; } @@ -1056,11 +1179,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) { @@ -1074,48 +1200,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_; @@ -1123,18 +1260,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; @@ -1143,20 +1282,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 { @@ -1164,54 +1304,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; @@ -1219,18 +1366,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; @@ -1239,20 +1388,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 { @@ -1260,54 +1410,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; @@ -1315,18 +1472,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1335,20 +1494,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1356,61 +1516,70 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail( - java.lang.String value) { + public Builder setStatusDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_ ; + private boolean cancelRequested_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1419,6 +1588,7 @@ public Builder setStatusDetailBytes(
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -1426,6 +1596,8 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1434,16 +1606,19 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1452,10 +1627,11 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1463,18 +1639,20 @@ public Builder clearCancelRequested() { 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; @@ -1483,20 +1661,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 { @@ -1504,61 +1683,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); } @@ -1568,12 +1754,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.common.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.common.OperationMetadata) private static final com.google.cloud.common.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.common.OperationMetadata(); } @@ -1582,27 +1768,27 @@ public static com.google.cloud.common.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1617,6 +1803,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.common.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java index 03b8d68c0be5..9d77fb3b23d3 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/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/common/operation_metadata.proto package com.google.cloud.common; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.common.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_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
    * 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 cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
    * 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/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java new file mode 100644 index 000000000000..7ed9837c9bbd --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java @@ -0,0 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/common/operation_metadata.proto + +package com.google.cloud.common; + +public final class OperationMetadataOuterClass { + private OperationMetadataOuterClass() {} + + 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_common_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_common_OperationMetadata_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/common/operation_metadata" + + ".proto\022\023google.cloud.common\032\037google/api/" + + "field_behavior.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\371\001\n\021OperationMetadata\0224\n\013c" + + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pro" + + "tobuf.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\032\n\rstatus_detail\030\005 " + + "\001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022" + + "\030\n\013api_version\030\007 \001(\tB\003\340A\003BV\n\027com.google." + + "cloud.commonP\001Z9google.golang.org/genpro" + + "to/googleapis/cloud/common;commonb\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_common_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_common_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusDetail", + "CancelRequested", + "ApiVersion", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java similarity index 67% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java index 205aea38ffee..9995923d37c8 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * A Cloud Filestore backup.
  * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.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_ = ""; description_ = ""; @@ -30,51 +48,54 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_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 5: 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.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.Backup.class, com.google.cloud.filestore.v1.Backup.Builder.class); + com.google.cloud.filestore.v1.Backup.class, + com.google.cloud.filestore.v1.Backup.Builder.class); } /** + * + * *
    * The backup state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.Backup.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State not set.
      * 
@@ -83,6 +104,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Backup is being created.
      * 
@@ -91,6 +114,8 @@ public enum State */ CREATING(1), /** + * + * *
      * Backup has been taken and the operation is being finalized. At this
      * point, changes to the file share will not be reflected in the backup.
@@ -100,6 +125,8 @@ public enum State
      */
     FINALIZING(2),
     /**
+     *
+     *
      * 
      * Backup is available for use.
      * 
@@ -108,6 +135,8 @@ public enum State */ READY(3), /** + * + * *
      * Backup is being deleted.
      * 
@@ -119,6 +148,8 @@ public enum State ; /** + * + * *
      * State not set.
      * 
@@ -127,6 +158,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Backup is being created.
      * 
@@ -135,6 +168,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * Backup has been taken and the operation is being finalized. At this
      * point, changes to the file share will not be reflected in the backup.
@@ -144,6 +179,8 @@ public enum State
      */
     public static final int FINALIZING_VALUE = 2;
     /**
+     *
+     *
      * 
      * Backup is available for use.
      * 
@@ -152,6 +189,8 @@ public enum State */ public static final int READY_VALUE = 3; /** + * + * *
      * Backup is being deleted.
      * 
@@ -160,7 +199,6 @@ public enum State */ public static final int DELETING_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -185,51 +223,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 FINALIZING; - case 3: return READY; - case 4: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return FINALIZING; + case 3: + return READY; + case 4: + 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.filestore.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; @@ -249,12 +289,15 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -263,30 +306,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 resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -297,12 +340,15 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -311,30 +357,30 @@ 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; } } /** + * + * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; + * * @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 { @@ -345,38 +391,55 @@ public java.lang.String getDescription() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
    * Output only. The backup state.
    * 
* - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.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 backup state.
    * 
* - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.filestore.v1.Backup.State getState() { + @java.lang.Override + public com.google.cloud.filestore.v1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Backup.State result = com.google.cloud.filestore.v1.Backup.State.valueOf(state_); + com.google.cloud.filestore.v1.Backup.State result = + com.google.cloud.filestore.v1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1.Backup.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -384,11 +447,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -396,11 +463,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -408,24 +478,23 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; + 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.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_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() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_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() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -434,28 +503,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - @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(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -463,11 +534,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -475,16 +547,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @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; } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -492,12 +564,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5; */ @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(); } @@ -507,11 +578,14 @@ public java.lang.String getLabelsOrThrow( public static final int CAPACITY_GB_FIELD_NUMBER = 6; private long capacityGb_; /** + * + * *
    * Output only. Capacity of the source file share when the backup was created.
    * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The capacityGb. */ @java.lang.Override @@ -522,12 +596,15 @@ public long getCapacityGb() { public static final int STORAGE_BYTES_FIELD_NUMBER = 7; private long storageBytes_; /** + * + * *
    * Output only. The size of the storage used by the backup. As backups share
    * storage, this number is expected to change with backup creation/deletion.
    * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The storageBytes. */ @java.lang.Override @@ -538,6 +615,8 @@ public long getStorageBytes() { public static final int SOURCE_INSTANCE_FIELD_NUMBER = 8; private volatile java.lang.Object sourceInstance_; /** + * + * *
    * The resource name of the source Cloud Filestore instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -545,6 +624,7 @@ public long getStorageBytes() {
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @return The sourceInstance. */ @java.lang.Override @@ -553,14 +633,15 @@ public java.lang.String getSourceInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceInstance_ = s; return s; } } /** + * + * *
    * The resource name of the source Cloud Filestore instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -568,16 +649,15 @@ public java.lang.String getSourceInstance() {
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceInstance. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceInstanceBytes() { + public com.google.protobuf.ByteString getSourceInstanceBytes() { java.lang.Object ref = sourceInstance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceInstance_ = b; return b; } else { @@ -588,12 +668,15 @@ public java.lang.String getSourceInstance() { public static final int SOURCE_FILE_SHARE_FIELD_NUMBER = 9; private volatile java.lang.Object sourceFileShare_; /** + * + * *
    * Name of the file share in the source Cloud Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; + * * @return The sourceFileShare. */ @java.lang.Override @@ -602,30 +685,30 @@ public java.lang.String getSourceFileShare() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFileShare_ = s; return s; } } /** + * + * *
    * Name of the file share in the source Cloud Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; + * * @return The bytes for sourceFileShare. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceFileShareBytes() { + public com.google.protobuf.ByteString getSourceFileShareBytes() { java.lang.Object ref = sourceFileShare_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceFileShare_ = b; return b; } else { @@ -636,35 +719,50 @@ public java.lang.String getSourceFileShare() { public static final int SOURCE_INSTANCE_TIER_FIELD_NUMBER = 10; private int sourceInstanceTier_; /** + * + * *
    * Output only. The service tier of the source Cloud Filestore instance that
    * this backup is created from.
    * 
* - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for sourceInstanceTier. */ - @java.lang.Override public int getSourceInstanceTierValue() { + @java.lang.Override + public int getSourceInstanceTierValue() { return sourceInstanceTier_; } /** + * + * *
    * Output only. The service tier of the source Cloud Filestore instance that
    * this backup is created from.
    * 
* - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceInstanceTier. */ - @java.lang.Override public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() { + @java.lang.Override + public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.Tier result = com.google.cloud.filestore.v1.Instance.Tier.valueOf(sourceInstanceTier_); + com.google.cloud.filestore.v1.Instance.Tier result = + com.google.cloud.filestore.v1.Instance.Tier.valueOf(sourceInstanceTier_); return result == null ? com.google.cloud.filestore.v1.Instance.Tier.UNRECOGNIZED : result; } public static final int DOWNLOAD_BYTES_FIELD_NUMBER = 11; private long downloadBytes_; /** + * + * *
    * Output only. Amount of bytes that will be downloaded if the backup is
    * restored. This may be different than storage bytes, since sequential
@@ -672,6 +770,7 @@ public java.lang.String getSourceFileShare() {
    * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The downloadBytes. */ @java.lang.Override @@ -682,11 +781,16 @@ public long getDownloadBytes() { public static final int SATISFIES_PZS_FIELD_NUMBER = 12; private com.google.protobuf.BoolValue satisfiesPzs_; /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the satisfiesPzs field is set. */ @java.lang.Override @@ -694,23 +798,34 @@ public boolean hasSatisfiesPzs() { return satisfiesPzs_ != null; } /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The satisfiesPzs. */ @java.lang.Override public com.google.protobuf.BoolValue getSatisfiesPzs() { - return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; } /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { @@ -718,6 +833,7 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -729,8 +845,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -743,12 +858,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (createTime_ != null) { output.writeMessage(4, getCreateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); if (capacityGb_ != 0L) { output.writeInt64(6, capacityGb_); } @@ -761,7 +872,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sourceFileShare_); } - if (sourceInstanceTier_ != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { + if (sourceInstanceTier_ + != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(10, sourceInstanceTier_); } if (downloadBytes_ != 0L) { @@ -786,30 +898,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); - } - 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(5, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + 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(5, labels__); } if (capacityGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, capacityGb_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, capacityGb_); } if (storageBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, storageBytes_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, storageBytes_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceInstance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceInstance_); @@ -817,17 +925,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sourceFileShare_); } - if (sourceInstanceTier_ != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, sourceInstanceTier_); + if (sourceInstanceTier_ + != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sourceInstanceTier_); } if (downloadBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, downloadBytes_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, downloadBytes_); } if (satisfiesPzs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getSatisfiesPzs()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSatisfiesPzs()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -837,40 +943,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.filestore.v1.Backup)) { return super.equals(obj); } com.google.cloud.filestore.v1.Backup other = (com.google.cloud.filestore.v1.Backup) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (getCapacityGb() - != other.getCapacityGb()) return false; - if (getStorageBytes() - != other.getStorageBytes()) return false; - if (!getSourceInstance() - .equals(other.getSourceInstance())) return false; - if (!getSourceFileShare() - .equals(other.getSourceFileShare())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getCapacityGb() != other.getCapacityGb()) return false; + if (getStorageBytes() != other.getStorageBytes()) return false; + if (!getSourceInstance().equals(other.getSourceInstance())) return false; + if (!getSourceFileShare().equals(other.getSourceFileShare())) return false; if (sourceInstanceTier_ != other.sourceInstanceTier_) return false; - if (getDownloadBytes() - != other.getDownloadBytes()) return false; + if (getDownloadBytes() != other.getDownloadBytes()) return false; if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { - if (!getSatisfiesPzs() - .equals(other.getSatisfiesPzs())) return false; + if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -898,11 +994,9 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCapacityGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb()); 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) + SOURCE_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getSourceInstance().hashCode(); hash = (37 * hash) + SOURCE_FILE_SHARE_FIELD_NUMBER; @@ -910,8 +1004,7 @@ public int hashCode() { hash = (37 * hash) + SOURCE_INSTANCE_TIER_FIELD_NUMBER; hash = (53 * hash) + sourceInstanceTier_; hash = (37 * hash) + DOWNLOAD_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDownloadBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDownloadBytes()); if (hasSatisfiesPzs()) { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + getSatisfiesPzs().hashCode(); @@ -921,152 +1014,155 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.Backup parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.Backup parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.Backup parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.filestore.v1.Backup parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.Backup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.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.filestore.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.filestore.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.filestore.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.filestore.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; } /** + * + * *
    * A Cloud Filestore backup.
    * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.v1.Backup) com.google.cloud.filestore.v1.BackupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_Backup_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: 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 5: 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.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.Backup.class, com.google.cloud.filestore.v1.Backup.Builder.class); + com.google.cloud.filestore.v1.Backup.class, + com.google.cloud.filestore.v1.Backup.Builder.class); } // Construct using com.google.cloud.filestore.v1.Backup.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1105,9 +1201,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_Backup_descriptor; } @java.lang.Override @@ -1157,38 +1253,39 @@ public com.google.cloud.filestore.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.filestore.v1.Backup) { - return mergeFrom((com.google.cloud.filestore.v1.Backup)other); + return mergeFrom((com.google.cloud.filestore.v1.Backup) other); } else { super.mergeFrom(other); return this; @@ -1211,8 +1308,7 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.Backup other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.getCapacityGb() != 0L) { setCapacityGb(other.getCapacityGb()); } @@ -1262,79 +1358,90 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - state_ = input.readEnum(); - - break; - } // case 24 - case 34: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 42 - case 48: { - capacityGb_ = input.readInt64(); - - break; - } // case 48 - case 56: { - storageBytes_ = input.readInt64(); - - break; - } // case 56 - case 66: { - sourceInstance_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - sourceFileShare_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 80: { - sourceInstanceTier_ = input.readEnum(); - - break; - } // case 80 - case 88: { - downloadBytes_ = input.readInt64(); - - break; - } // case 88 - case 98: { - input.readMessage( - getSatisfiesPzsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 98 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + + break; + } // case 24 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 42 + case 48: + { + capacityGb_ = input.readInt64(); + + break; + } // case 48 + case 56: + { + storageBytes_ = input.readInt64(); + + break; + } // case 56 + case 66: + { + sourceInstance_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + sourceFileShare_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 80: + { + sourceInstanceTier_ = input.readEnum(); + + break; + } // case 80 + case 88: + { + downloadBytes_ = input.readInt64(); + + break; + } // case 88 + case 98: + { + input.readMessage(getSatisfiesPzsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1344,23 +1451,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1369,21 +1479,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1391,57 +1502,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * 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 resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + 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; @@ -1449,19 +1567,21 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @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; @@ -1470,21 +1590,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @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 { @@ -1492,57 +1613,64 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @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; } /** + * + * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @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; @@ -1550,51 +1678,73 @@ public Builder setDescriptionBytes( private int state_ = 0; /** + * + * *
      * Output only. The backup state.
      * 
* - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.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 backup state.
      * 
* - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.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 backup state.
      * 
* - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Backup.State result = com.google.cloud.filestore.v1.Backup.State.valueOf(state_); + com.google.cloud.filestore.v1.Backup.State result = + com.google.cloud.filestore.v1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1.Backup.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The backup state.
      * 
* - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1602,21 +1752,26 @@ public Builder setState(com.google.cloud.filestore.v1.Backup.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The backup state.
      * 
* - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1624,39 +1779,58 @@ public Builder clearState() { 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 when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1672,14 +1846,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1690,17 +1867,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1712,11 +1893,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1730,69 +1915,84 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } - 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(); @@ -1804,28 +2004,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - @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(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1833,11 +2035,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1845,16 +2048,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @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; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1862,12 +2066,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5; */ @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(); } @@ -1875,74 +2078,74 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - - 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(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - 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; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - - 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 long capacityGb_ ; + private long capacityGb_; /** + * + * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The capacityGb. */ @java.lang.Override @@ -1950,43 +2153,52 @@ public long getCapacityGb() { return capacityGb_; } /** + * + * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } - private long storageBytes_ ; + private long storageBytes_; /** + * + * *
      * Output only. The size of the storage used by the backup. As backups share
      * storage, this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The storageBytes. */ @java.lang.Override @@ -1994,32 +2206,38 @@ public long getStorageBytes() { return storageBytes_; } /** + * + * *
      * Output only. The size of the storage used by the backup. As backups share
      * storage, this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.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 size of the storage used by the backup. As backups share
      * storage, this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStorageBytes() { - + storageBytes_ = 0L; onChanged(); return this; @@ -2027,6 +2245,8 @@ public Builder clearStorageBytes() { private java.lang.Object sourceInstance_ = ""; /** + * + * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2034,13 +2254,13 @@ public Builder clearStorageBytes() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @return The sourceInstance. */ public java.lang.String getSourceInstance() { java.lang.Object ref = sourceInstance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceInstance_ = s; return s; @@ -2049,6 +2269,8 @@ public java.lang.String getSourceInstance() { } } /** + * + * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2056,15 +2278,14 @@ public java.lang.String getSourceInstance() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceInstance. */ - public com.google.protobuf.ByteString - getSourceInstanceBytes() { + public com.google.protobuf.ByteString getSourceInstanceBytes() { java.lang.Object ref = sourceInstance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceInstance_ = b; return b; } else { @@ -2072,6 +2293,8 @@ public java.lang.String getSourceInstance() { } } /** + * + * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2079,20 +2302,22 @@ public java.lang.String getSourceInstance() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @param value The sourceInstance to set. * @return This builder for chaining. */ - public Builder setSourceInstance( - java.lang.String value) { + public Builder setSourceInstance(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceInstance_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2100,15 +2325,18 @@ public Builder setSourceInstance(
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearSourceInstance() { - + sourceInstance_ = getDefaultInstance().getSourceInstance(); onChanged(); return this; } /** + * + * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2116,16 +2344,16 @@ public Builder clearSourceInstance() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for sourceInstance to set. * @return This builder for chaining. */ - public Builder setSourceInstanceBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceInstanceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceInstance_ = value; onChanged(); return this; @@ -2133,19 +2361,21 @@ public Builder setSourceInstanceBytes( private java.lang.Object sourceFileShare_ = ""; /** + * + * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; + * * @return The sourceFileShare. */ public java.lang.String getSourceFileShare() { java.lang.Object ref = sourceFileShare_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFileShare_ = s; return s; @@ -2154,21 +2384,22 @@ public java.lang.String getSourceFileShare() { } } /** + * + * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; + * * @return The bytes for sourceFileShare. */ - public com.google.protobuf.ByteString - getSourceFileShareBytes() { + public com.google.protobuf.ByteString getSourceFileShareBytes() { java.lang.Object ref = sourceFileShare_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceFileShare_ = b; return b; } else { @@ -2176,57 +2407,64 @@ public java.lang.String getSourceFileShare() { } } /** + * + * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; + * * @param value The sourceFileShare to set. * @return This builder for chaining. */ - public Builder setSourceFileShare( - java.lang.String value) { + public Builder setSourceFileShare(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceFileShare_ = value; onChanged(); return this; } /** + * + * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; + * * @return This builder for chaining. */ public Builder clearSourceFileShare() { - + sourceFileShare_ = getDefaultInstance().getSourceFileShare(); onChanged(); return this; } /** + * + * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; + * * @param value The bytes for sourceFileShare to set. * @return This builder for chaining. */ - public Builder setSourceFileShareBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceFileShareBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceFileShare_ = value; onChanged(); return this; @@ -2234,55 +2472,77 @@ public Builder setSourceFileShareBytes( private int sourceInstanceTier_ = 0; /** + * + * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for sourceInstanceTier. */ - @java.lang.Override public int getSourceInstanceTierValue() { + @java.lang.Override + public int getSourceInstanceTierValue() { return sourceInstanceTier_; } /** + * + * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for sourceInstanceTier to set. * @return This builder for chaining. */ public Builder setSourceInstanceTierValue(int value) { - + sourceInstanceTier_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceInstanceTier. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.Tier result = com.google.cloud.filestore.v1.Instance.Tier.valueOf(sourceInstanceTier_); + com.google.cloud.filestore.v1.Instance.Tier result = + com.google.cloud.filestore.v1.Instance.Tier.valueOf(sourceInstanceTier_); return result == null ? com.google.cloud.filestore.v1.Instance.Tier.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The sourceInstanceTier to set. * @return This builder for chaining. */ @@ -2290,29 +2550,36 @@ public Builder setSourceInstanceTier(com.google.cloud.filestore.v1.Instance.Tier if (value == null) { throw new NullPointerException(); } - + sourceInstanceTier_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearSourceInstanceTier() { - + sourceInstanceTier_ = 0; onChanged(); return this; } - private long downloadBytes_ ; + private long downloadBytes_; /** + * + * *
      * Output only. Amount of bytes that will be downloaded if the backup is
      * restored. This may be different than storage bytes, since sequential
@@ -2320,6 +2587,7 @@ public Builder clearSourceInstanceTier() {
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The downloadBytes. */ @java.lang.Override @@ -2327,6 +2595,8 @@ public long getDownloadBytes() { return downloadBytes_; } /** + * + * *
      * Output only. Amount of bytes that will be downloaded if the backup is
      * restored. This may be different than storage bytes, since sequential
@@ -2334,16 +2604,19 @@ public long getDownloadBytes() {
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The downloadBytes to set. * @return This builder for chaining. */ public Builder setDownloadBytes(long value) { - + downloadBytes_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Amount of bytes that will be downloaded if the backup is
      * restored. This may be different than storage bytes, since sequential
@@ -2351,10 +2624,11 @@ public Builder setDownloadBytes(long value) {
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDownloadBytes() { - + downloadBytes_ = 0L; onChanged(); return this; @@ -2362,39 +2636,58 @@ public Builder clearDownloadBytes() { private com.google.protobuf.BoolValue satisfiesPzs_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> satisfiesPzsBuilder_; + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + satisfiesPzsBuilder_; /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the satisfiesPzs field is set. */ public boolean hasSatisfiesPzs() { return satisfiesPzsBuilder_ != null || satisfiesPzs_ != null; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The satisfiesPzs. */ public com.google.protobuf.BoolValue getSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { - return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; } else { return satisfiesPzsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { @@ -2410,14 +2703,17 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSatisfiesPzs( - com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue) { if (satisfiesPzsBuilder_ == null) { satisfiesPzs_ = builderForValue.build(); onChanged(); @@ -2428,17 +2724,23 @@ public Builder setSatisfiesPzs( return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { if (satisfiesPzs_ != null) { satisfiesPzs_ = - com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_).mergeFrom(value).buildPartial(); + com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_) + .mergeFrom(value) + .buildPartial(); } else { satisfiesPzs_ = value; } @@ -2450,11 +2752,15 @@ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { @@ -2468,55 +2774,71 @@ public Builder clearSatisfiesPzs() { return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder() { - + onChanged(); return getSatisfiesPzsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { if (satisfiesPzsBuilder_ != null) { return satisfiesPzsBuilder_.getMessageOrBuilder(); } else { - return satisfiesPzs_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; } } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> getSatisfiesPzsFieldBuilder() { if (satisfiesPzsBuilder_ == null) { - satisfiesPzsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getSatisfiesPzs(), - getParentForChildren(), - isClean()); + satisfiesPzsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getSatisfiesPzs(), getParentForChildren(), isClean()); satisfiesPzs_ = null; } return satisfiesPzsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2526,12 +2848,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.Backup) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.Backup) private static final com.google.cloud.filestore.v1.Backup DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.Backup(); } @@ -2540,27 +2862,27 @@ public static com.google.cloud.filestore.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2575,6 +2897,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.Backup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java similarity index 71% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java index 32cee1f9ac05..83d8c00f0352 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java @@ -1,103 +1,152 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface BackupOrBuilder extends +public interface BackupOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.Backup) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The backup state.
    * 
* - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The backup state.
    * 
* - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.filestore.v1.Backup.State getState(); /** + * + * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -106,30 +155,31 @@ public interface BackupOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - 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(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -138,43 +188,51 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Output only. Capacity of the source file share when the backup was created.
    * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The capacityGb. */ long getCapacityGb(); /** + * + * *
    * Output only. The size of the storage used by the backup. As backups share
    * storage, this number is expected to change with backup creation/deletion.
    * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The storageBytes. */ long getStorageBytes(); /** + * + * *
    * The resource name of the source Cloud Filestore instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -182,10 +240,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @return The sourceInstance. */ java.lang.String getSourceInstance(); /** + * + * *
    * The resource name of the source Cloud Filestore instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -193,55 +254,72 @@ java.lang.String getLabelsOrThrow(
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceInstance. */ - com.google.protobuf.ByteString - getSourceInstanceBytes(); + com.google.protobuf.ByteString getSourceInstanceBytes(); /** + * + * *
    * Name of the file share in the source Cloud Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; + * * @return The sourceFileShare. */ java.lang.String getSourceFileShare(); /** + * + * *
    * Name of the file share in the source Cloud Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; + * * @return The bytes for sourceFileShare. */ - com.google.protobuf.ByteString - getSourceFileShareBytes(); + com.google.protobuf.ByteString getSourceFileShareBytes(); /** + * + * *
    * Output only. The service tier of the source Cloud Filestore instance that
    * this backup is created from.
    * 
* - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for sourceInstanceTier. */ int getSourceInstanceTierValue(); /** + * + * *
    * Output only. The service tier of the source Cloud Filestore instance that
    * this backup is created from.
    * 
* - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceInstanceTier. */ com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier(); /** + * + * *
    * Output only. Amount of bytes that will be downloaded if the backup is
    * restored. This may be different than storage bytes, since sequential
@@ -249,34 +327,49 @@ java.lang.String getLabelsOrThrow(
    * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The downloadBytes. */ long getDownloadBytes(); /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the satisfiesPzs field is set. */ boolean hasSatisfiesPzs(); /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The satisfiesPzs. */ com.google.protobuf.BoolValue getSatisfiesPzs(); /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java new file mode 100644 index 000000000000..108e446f3604 --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java @@ -0,0 +1,515 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public final class CloudFilestoreServiceProto { + private CloudFilestoreServiceProto() {} + + 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_filestore_v1_NetworkConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_Instance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_Backup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/filestore/v1/cloud_filest" + + "ore_service.proto\022\031google.cloud.filestor" + + "e.v1\032\034google/api/annotations.proto\032\027goog" + + "le/api/client.proto\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + ",google/cloud/common/operation_metadata." + + "proto\032#google/longrunning/operations.pro" + + "to\032 google/protobuf/field_mask.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\036google/pr" + + "otobuf/wrappers.proto\"\327\001\n\rNetworkConfig\022" + + "\017\n\007network\030\001 \001(\t\022C\n\005modes\030\003 \003(\01624.google" + + ".cloud.filestore.v1.NetworkConfig.Addres" + + "sMode\022\031\n\021reserved_ip_range\030\004 \001(\t\022\031\n\014ip_a" + + "ddresses\030\005 \003(\tB\003\340A\003\":\n\013AddressMode\022\034\n\030AD" + + "DRESS_MODE_UNSPECIFIED\020\000\022\r\n\tMODE_IPV4\020\001\"" + + "\301\001\n\017FileShareConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013cap" + + "acity_gb\030\002 \001(\003\0228\n\rsource_backup\030\010 \001(\tB\037\372" + + "A\034\n\032file.googleapis.com/BackupH\000\022G\n\022nfs_" + + "export_options\030\007 \003(\0132+.google.cloud.file" + + "store.v1.NfsExportOptionsB\010\n\006source\"\375\002\n\020" + + "NfsExportOptions\022\021\n\tip_ranges\030\001 \003(\t\022K\n\013a" + + "ccess_mode\030\002 \001(\01626.google.cloud.filestor" + + "e.v1.NfsExportOptions.AccessMode\022K\n\013squa" + + "sh_mode\030\003 \001(\01626.google.cloud.filestore.v" + + "1.NfsExportOptions.SquashMode\022\020\n\010anon_ui" + + "d\030\004 \001(\003\022\020\n\010anon_gid\030\005 \001(\003\"H\n\nAccessMode\022" + + "\033\n\027ACCESS_MODE_UNSPECIFIED\020\000\022\r\n\tREAD_ONL" + + "Y\020\001\022\016\n\nREAD_WRITE\020\002\"N\n\nSquashMode\022\033\n\027SQU" + + "ASH_MODE_UNSPECIFIED\020\000\022\022\n\016NO_ROOT_SQUASH" + + "\020\001\022\017\n\013ROOT_SQUASH\020\002\"\353\006\n\010Instance\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\023\n\013description\030\002 \001(\t\022=\n\005stat" + + "e\030\005 \001(\0162).google.cloud.filestore.v1.Inst" + + "ance.StateB\003\340A\003\022\033\n\016status_message\030\006 \001(\tB" + + "\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0226\n\004tier\030\010 \001(\0162(.googl" + + "e.cloud.filestore.v1.Instance.Tier\022?\n\006la" + + "bels\030\t \003(\0132/.google.cloud.filestore.v1.I" + + "nstance.LabelsEntry\022?\n\013file_shares\030\n \003(\013" + + "2*.google.cloud.filestore.v1.FileShareCo" + + "nfig\022:\n\010networks\030\013 \003(\0132(.google.cloud.fi" + + "lestore.v1.NetworkConfig\022\014\n\004etag\030\014 \001(\t\0226" + + "\n\rsatisfies_pzs\030\r \001(\0132\032.google.protobuf." + + "BoolValueB\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\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\r" + + "\n\tREPAIRING\020\003\022\014\n\010DELETING\020\004\022\t\n\005ERROR\020\006\022\r" + + "\n\tRESTORING\020\007\"i\n\004Tier\022\024\n\020TIER_UNSPECIFIE" + + "D\020\000\022\014\n\010STANDARD\020\001\022\013\n\007PREMIUM\020\002\022\r\n\tBASIC_" + + "HDD\020\003\022\r\n\tBASIC_SSD\020\004\022\022\n\016HIGH_SCALE_SSD\020\005" + + ":_\352A\\\n\034file.googleapis.com/Instance\022\202\323\344\223\002/\022-/v1/{paren" + + "t=projects/*/locations/*}/instances\332A\006pa" + + "rent\022\237\001\n\013GetInstance\022-.google.cloud.file" + + "store.v1.GetInstanceRequest\032#.google.clo" + + "ud.filestore.v1.Instance\"<\202\323\344\223\002/\022-/v1/{n" + + "ame=projects/*/locations/*/instances/*}\332" + + "A\004name\022\365\001\n\016CreateInstance\0220.google.cloud" + + ".filestore.v1.CreateInstanceRequest\032\035.go" + + "ogle.longrunning.Operation\"\221\001\202\323\344\223\0029\"-/v1" + + "/{parent=projects/*/locations/*}/instanc" + + "es:\010instance\332A\033parent,instance,instance_" + + "id\312A1\n\010Instance\022%google.cloud.common.Ope" + + "rationMetadata\022\367\001\n\016UpdateInstance\0220.goog" + + "le.cloud.filestore.v1.UpdateInstanceRequ" + + "est\032\035.google.longrunning.Operation\"\223\001\202\323\344" + + "\223\002B26/v1/{instance.name=projects/*/locat" + + "ions/*/instances/*}:\010instance\332A\024instance" + + ",update_mask\312A1\n\010Instance\022%google.cloud." + + "common.OperationMetadata\022\331\001\n\017RestoreInst" + + "ance\0221.google.cloud.filestore.v1.Restore" + + "InstanceRequest\032\035.google.longrunning.Ope" + + "ration\"t\202\323\344\223\002:\"5/v1/{name=projects/*/loc" + + "ations/*/instances/*}:restore:\001*\312A1\n\010Ins" + + "tance\022%google.cloud.common.OperationMeta" + + "data\022\340\001\n\016DeleteInstance\0220.google.cloud.f" + + "ilestore.v1.DeleteInstanceRequest\032\035.goog" + + "le.longrunning.Operation\"}\202\323\344\223\002/*-/v1/{n" + + "ame=projects/*/locations/*/instances/*}\332" + + "A\004name\312A>\n\025google.protobuf.Empty\022%google" + + ".cloud.common.OperationMetadata\022\252\001\n\013List" + + "Backups\022-.google.cloud.filestore.v1.List" + + "BackupsRequest\032..google.cloud.filestore." + + "v1.ListBackupsResponse\"<\202\323\344\223\002-\022+/v1/{par" + + "ent=projects/*/locations/*}/backups\332A\006pa" + + "rent\022\227\001\n\tGetBackup\022+.google.cloud.filest" + + "ore.v1.GetBackupRequest\032!.google.cloud.f" + + "ilestore.v1.Backup\":\202\323\344\223\002-\022+/v1/{name=pr" + + "ojects/*/locations/*/backups/*}\332A\004name\022\347" + + "\001\n\014CreateBackup\022..google.cloud.filestore" + + ".v1.CreateBackupRequest\032\035.google.longrun" + + "ning.Operation\"\207\001\202\323\344\223\0025\"+/v1/{parent=pro" + + "jects/*/locations/*}/backups:\006backup\332A\027p" + + "arent,backup,backup_id\312A/\n\006Backup\022%googl" + + "e.cloud.common.OperationMetadata\022\332\001\n\014Del" + + "eteBackup\022..google.cloud.filestore.v1.De" + + "leteBackupRequest\032\035.google.longrunning.O" + + "peration\"{\202\323\344\223\002-*+/v1/{name=projects/*/l" + + "ocations/*/backups/*}\332A\004name\312A>\n\025google." + + "protobuf.Empty\022%google.cloud.common.Oper" + + "ationMetadata\022\351\001\n\014UpdateBackup\022..google." + + "cloud.filestore.v1.UpdateBackupRequest\032\035" + + ".google.longrunning.Operation\"\211\001\202\323\344\223\002<22" + + "/v1/{backup.name=projects/*/locations/*/" + + "backups/*}:\006backup\332A\022backup,update_mask\312" + + "A/\n\006Backup\022%google.cloud.common.Operatio" + + "nMetadata\032G\312A\023file.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\271\001\n\035com.google.cloud.filestore.v1B\032Cl" + + "oudFilestoreServiceProtoP\001ZBgoogle.golan" + + "g.org/genproto/googleapis/cloud/filestor" + + "e/v1;filestore\252\002\031Google.Cloud.Filestore." + + "V1\312\002\031Google\\Cloud\\Filestore\\V1b\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.common.OperationMetadataOuterClass.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor, + new java.lang.String[] { + "Network", "Modes", "ReservedIpRange", "IpAddresses", + }); + internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor, + new java.lang.String[] { + "Name", "CapacityGb", "SourceBackup", "NfsExportOptions", "Source", + }); + internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor, + new java.lang.String[] { + "IpRanges", "AccessMode", "SquashMode", "AnonUid", "AnonGid", + }); + internal_static_google_cloud_filestore_v1_Instance_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_Instance_descriptor, + new java.lang.String[] { + "Name", + "Description", + "State", + "StatusMessage", + "CreateTime", + "Tier", + "Labels", + "FileShares", + "Networks", + "Etag", + "SatisfiesPzs", + }); + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor, + new java.lang.String[] { + "Parent", "InstanceId", "Instance", + }); + internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Instance", + }); + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor, + new java.lang.String[] { + "Name", "FileShare", "SourceBackup", "Source", + }); + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "OrderBy", "Filter", + }); + internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor, + new java.lang.String[] { + "Instances", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_filestore_v1_Backup_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_Backup_descriptor, + new java.lang.String[] { + "Name", + "Description", + "State", + "CreateTime", + "Labels", + "CapacityGb", + "StorageBytes", + "SourceInstance", + "SourceFileShare", + "SourceInstanceTier", + "DownloadBytes", + "SatisfiesPzs", + }); + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1_Backup_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor, + new java.lang.String[] { + "Parent", "Backup", "BackupId", + }); + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor, + new java.lang.String[] { + "Backup", "UpdateMask", + }); + internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "OrderBy", "Filter", + }); + internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor, + new java.lang.String[] { + "Backups", "NextPageToken", "Unreachable", + }); + 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.resource); + 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.common.OperationMetadataOuterClass.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java similarity index 69% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java index f1976fcafc11..fee9a917c654 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * CreateBackupRequest creates a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.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,39 +44,45 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.CreateBackupRequest.class, com.google.cloud.filestore.v1.CreateBackupRequest.Builder.class); + com.google.cloud.filestore.v1.CreateBackupRequest.class, + com.google.cloud.filestore.v1.CreateBackupRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The backup's project and location, in the format
    * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,31 +91,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The backup's project and location, in the format
    * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * string parent = 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 { @@ -102,11 +128,15 @@ public java.lang.String getParent() { public static final int BACKUP_FIELD_NUMBER = 2; private com.google.cloud.filestore.v1.Backup backup_; /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backup field is set. */ @java.lang.Override @@ -114,11 +144,15 @@ public boolean hasBackup() { return backup_ != null; } /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ @java.lang.Override @@ -126,11 +160,14 @@ public com.google.cloud.filestore.v1.Backup getBackup() { return backup_ == null ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; } /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { @@ -140,6 +177,8 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { public static final int BACKUP_ID_FIELD_NUMBER = 3; private volatile java.lang.Object backupId_; /** + * + * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -150,6 +189,7 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() {
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The backupId. */ @java.lang.Override @@ -158,14 +198,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; } } /** + * + * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -176,16 +217,15 @@ public java.lang.String getBackupId() {
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -194,6 +234,7 @@ public java.lang.String getBackupId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +246,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -229,8 +269,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_); @@ -243,22 +282,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.filestore.v1.CreateBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.CreateBackupRequest other = (com.google.cloud.filestore.v1.CreateBackupRequest) obj; + com.google.cloud.filestore.v1.CreateBackupRequest other = + (com.google.cloud.filestore.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -284,129 +321,135 @@ public int hashCode() { } public static com.google.cloud.filestore.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.filestore.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.filestore.v1.CreateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.CreateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.CreateBackupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.CreateBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.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.filestore.v1.CreateBackupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.CreateBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.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; } /** + * + * *
    * CreateBackupRequest creates a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.v1.CreateBackupRequest) com.google.cloud.filestore.v1.CreateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.CreateBackupRequest.class, com.google.cloud.filestore.v1.CreateBackupRequest.Builder.class); + com.google.cloud.filestore.v1.CreateBackupRequest.class, + com.google.cloud.filestore.v1.CreateBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.CreateBackupRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -424,9 +467,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; } @java.lang.Override @@ -445,7 +488,8 @@ public com.google.cloud.filestore.v1.CreateBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.CreateBackupRequest buildPartial() { - com.google.cloud.filestore.v1.CreateBackupRequest result = new com.google.cloud.filestore.v1.CreateBackupRequest(this); + com.google.cloud.filestore.v1.CreateBackupRequest result = + new com.google.cloud.filestore.v1.CreateBackupRequest(this); result.parent_ = parent_; if (backupBuilder_ == null) { result.backup_ = backup_; @@ -461,38 +505,39 @@ public com.google.cloud.filestore.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.filestore.v1.CreateBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1.CreateBackupRequest)other); + return mergeFrom((com.google.cloud.filestore.v1.CreateBackupRequest) other); } else { super.mergeFrom(other); return this; @@ -500,7 +545,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.CreateBackupRequest other) { - if (other == com.google.cloud.filestore.v1.CreateBackupRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1.CreateBackupRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -538,29 +584,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getBackupFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - backupId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + backupId_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -573,20 +621,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The backup's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * string parent = 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; @@ -595,22 +647,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The backup's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * string parent = 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 { @@ -618,60 +673,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The backup's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * 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's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * string 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's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * 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; @@ -679,39 +747,55 @@ public Builder setParentBytes( private com.google.cloud.filestore.v1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> backupBuilder_; + com.google.cloud.filestore.v1.Backup, + com.google.cloud.filestore.v1.Backup.Builder, + com.google.cloud.filestore.v1.BackupOrBuilder> + backupBuilder_; /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backup field is set. */ public boolean hasBackup() { return backupBuilder_ != null || backup_ != null; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ public com.google.cloud.filestore.v1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; + return backup_ == null + ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() + : backup_; } else { return backupBuilder_.getMessage(); } } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBackup(com.google.cloud.filestore.v1.Backup value) { if (backupBuilder_ == null) { @@ -727,14 +811,16 @@ public Builder setBackup(com.google.cloud.filestore.v1.Backup value) { return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBackup( - com.google.cloud.filestore.v1.Backup.Builder builderForValue) { + public Builder setBackup(com.google.cloud.filestore.v1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -745,17 +831,22 @@ public Builder setBackup( return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBackup(com.google.cloud.filestore.v1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.filestore.v1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); + com.google.cloud.filestore.v1.Backup.newBuilder(backup_) + .mergeFrom(value) + .buildPartial(); } else { backup_ = value; } @@ -767,11 +858,14 @@ public Builder mergeBackup(com.google.cloud.filestore.v1.Backup value) { return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBackup() { if (backupBuilder_ == null) { @@ -785,48 +879,61 @@ public Builder clearBackup() { return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null ? - com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; + return backup_ == null + ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() + : backup_; } } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> + com.google.cloud.filestore.v1.Backup, + com.google.cloud.filestore.v1.Backup.Builder, + com.google.cloud.filestore.v1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder>( - getBackup(), - getParentForChildren(), - isClean()); + backupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1.Backup, + com.google.cloud.filestore.v1.Backup.Builder, + com.google.cloud.filestore.v1.BackupOrBuilder>( + getBackup(), getParentForChildren(), isClean()); backup_ = null; } return backupBuilder_; @@ -834,6 +941,8 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { private java.lang.Object backupId_ = ""; /** + * + * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -844,13 +953,13 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -859,6 +968,8 @@ public java.lang.String getBackupId() { } } /** + * + * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -869,15 +980,14 @@ public java.lang.String getBackupId() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -885,6 +995,8 @@ public java.lang.String getBackupId() { } } /** + * + * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -895,20 +1007,22 @@ public java.lang.String getBackupId() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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; } /** + * + * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -919,15 +1033,18 @@ public Builder setBackupId(
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearBackupId() { - + backupId_ = getDefaultInstance().getBackupId(); onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -938,23 +1055,23 @@ public Builder clearBackupId() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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); } @@ -964,12 +1081,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.CreateBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.CreateBackupRequest) private static final com.google.cloud.filestore.v1.CreateBackupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.CreateBackupRequest(); } @@ -978,27 +1095,27 @@ public static com.google.cloud.filestore.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1013,6 +1130,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.CreateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java index 81f422896cba..3b89fe5f9763 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java @@ -1,64 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface CreateBackupRequestOrBuilder extends +public interface CreateBackupRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.CreateBackupRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The backup's project and location, in the format
    * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * string parent = 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's project and location, in the format
    * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * string parent = 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. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backup field is set. */ boolean hasBackup(); /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ com.google.cloud.filestore.v1.Backup getBackup(); /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder(); /** + * + * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -69,10 +107,13 @@ public interface CreateBackupRequestOrBuilder extends
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The backupId. */ java.lang.String getBackupId(); /** + * + * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -83,8 +124,8 @@ public interface CreateBackupRequestOrBuilder extends
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for backupId. */ - com.google.protobuf.ByteString - getBackupIdBytes(); + com.google.protobuf.ByteString getBackupIdBytes(); } diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java similarity index 65% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java index da702ad0ee5d..ece90eecc8aa 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * CreateInstanceRequest creates an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.CreateInstanceRequest} */ -public final class CreateInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.CreateInstanceRequest) CreateInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateInstanceRequest.newBuilder() to construct. private CreateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateInstanceRequest() { parent_ = ""; instanceId_ = ""; @@ -26,39 +44,45 @@ private CreateInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.CreateInstanceRequest.class, com.google.cloud.filestore.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.CreateInstanceRequest.class, + com.google.cloud.filestore.v1.CreateInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,31 +91,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * string parent = 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 { @@ -102,12 +128,15 @@ public java.lang.String getParent() { public static final int INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** + * + * *
    * Required. The name of the instance to create.
    * The name must be unique for the specified project and location.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ @java.lang.Override @@ -116,30 +145,30 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** + * + * *
    * Required. The name of the instance to create.
    * The name must be unique for the specified project and location.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstanceIdBytes() { + public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instanceId_ = b; return b; } else { @@ -150,11 +179,16 @@ public java.lang.String getInstanceId() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.cloud.filestore.v1.Instance instance_; /** + * + * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ @java.lang.Override @@ -162,23 +196,34 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance getInstance() { - return instance_ == null ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() + : instance_; } /** + * + * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { @@ -186,6 +231,7 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,8 +243,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -224,8 +269,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInstance()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -235,21 +279,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.filestore.v1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.CreateInstanceRequest other = (com.google.cloud.filestore.v1.CreateInstanceRequest) obj; + com.google.cloud.filestore.v1.CreateInstanceRequest other = + (com.google.cloud.filestore.v1.CreateInstanceRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getInstanceId() - .equals(other.getInstanceId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getInstanceId().equals(other.getInstanceId())) return false; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance() - .equals(other.getInstance())) return false; + if (!getInstance().equals(other.getInstance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -276,129 +318,135 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( - java.nio.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.filestore.v1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.CreateInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.CreateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1.CreateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * CreateInstanceRequest creates an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.CreateInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.CreateInstanceRequest) com.google.cloud.filestore.v1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.CreateInstanceRequest.class, com.google.cloud.filestore.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.CreateInstanceRequest.class, + com.google.cloud.filestore.v1.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.CreateInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +464,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -437,7 +485,8 @@ public com.google.cloud.filestore.v1.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.CreateInstanceRequest buildPartial() { - com.google.cloud.filestore.v1.CreateInstanceRequest result = new com.google.cloud.filestore.v1.CreateInstanceRequest(this); + com.google.cloud.filestore.v1.CreateInstanceRequest result = + new com.google.cloud.filestore.v1.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (instanceBuilder_ == null) { @@ -453,38 +502,39 @@ public com.google.cloud.filestore.v1.CreateInstanceRequest 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.filestore.v1.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1.CreateInstanceRequest)other); + return mergeFrom((com.google.cloud.filestore.v1.CreateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -492,7 +542,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.CreateInstanceRequest other) { - if (other == com.google.cloud.filestore.v1.CreateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1.CreateInstanceRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -530,29 +581,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - instanceId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + instanceId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getInstanceFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -565,20 +618,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * string parent = 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; @@ -587,22 +644,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -610,60 +670,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * 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 instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * string 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 instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * 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; @@ -671,19 +744,21 @@ public Builder setParentBytes( private java.lang.Object instanceId_ = ""; /** + * + * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -692,21 +767,22 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString - getInstanceIdBytes() { + public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instanceId_ = b; return b; } else { @@ -714,57 +790,64 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId( - java.lang.String value) { + public Builder setInstanceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** + * + * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -772,39 +855,58 @@ public Builder setInstanceIdBytes( private com.google.cloud.filestore.v1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> instanceBuilder_; + com.google.cloud.filestore.v1.Instance, + com.google.cloud.filestore.v1.Instance.Builder, + com.google.cloud.filestore.v1.InstanceOrBuilder> + instanceBuilder_; /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ public com.google.cloud.filestore.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance(com.google.cloud.filestore.v1.Instance value) { if (instanceBuilder_ == null) { @@ -820,14 +922,17 @@ public Builder setInstance(com.google.cloud.filestore.v1.Instance value) { return this; } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInstance( - com.google.cloud.filestore.v1.Instance.Builder builderForValue) { + public Builder setInstance(com.google.cloud.filestore.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -838,17 +943,23 @@ public Builder setInstance( return this; } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstance(com.google.cloud.filestore.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.filestore.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.filestore.v1.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -860,11 +971,15 @@ public Builder mergeInstance(com.google.cloud.filestore.v1.Instance value) { return this; } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -878,55 +993,71 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> + com.google.cloud.filestore.v1.Instance, + com.google.cloud.filestore.v1.Instance.Builder, + com.google.cloud.filestore.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1.Instance, + com.google.cloud.filestore.v1.Instance.Builder, + com.google.cloud.filestore.v1.InstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); instance_ = null; } return instanceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -936,12 +1067,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.CreateInstanceRequest) private static final com.google.cloud.filestore.v1.CreateInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.CreateInstanceRequest(); } @@ -950,27 +1081,27 @@ public static com.google.cloud.filestore.v1.CreateInstanceRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -985,6 +1116,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java index 668c9748aa2c..0a7a213708cb 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java @@ -1,82 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface CreateInstanceRequestOrBuilder extends +public interface CreateInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.CreateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * string parent = 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 instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * string parent = 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 name of the instance to create.
    * The name must be unique for the specified project and location.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ java.lang.String getInstanceId(); /** + * + * *
    * Required. The name of the instance to create.
    * The name must be unique for the specified project and location.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString - getInstanceIdBytes(); + com.google.protobuf.ByteString getInstanceIdBytes(); /** + * + * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ com.google.cloud.filestore.v1.Instance getInstance(); /** + * + * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java similarity index 63% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java index a0dc2883210b..1adc2582a75f 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java @@ -1,62 +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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * DeleteBackupRequest deletes a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.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_ = ""; } @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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.DeleteBackupRequest.class, com.google.cloud.filestore.v1.DeleteBackupRequest.Builder.class); + com.google.cloud.filestore.v1.DeleteBackupRequest.class, + com.google.cloud.filestore.v1.DeleteBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The backup resource name, in the format
    * `projects/{project_number}/locations/{location}/backups/{backup_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The backup resource name, in the format
    * `projects/{project_number}/locations/{location}/backups/{backup_id}`
    * 
* - * string name = 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -133,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.DeleteBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.DeleteBackupRequest other = (com.google.cloud.filestore.v1.DeleteBackupRequest) obj; + com.google.cloud.filestore.v1.DeleteBackupRequest other = + (com.google.cloud.filestore.v1.DeleteBackupRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +187,135 @@ public int hashCode() { } public static com.google.cloud.filestore.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.filestore.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.filestore.v1.DeleteBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.DeleteBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.DeleteBackupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.DeleteBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.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.filestore.v1.DeleteBackupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.DeleteBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.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; } /** + * + * *
    * DeleteBackupRequest deletes a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.v1.DeleteBackupRequest) com.google.cloud.filestore.v1.DeleteBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.DeleteBackupRequest.class, com.google.cloud.filestore.v1.DeleteBackupRequest.Builder.class); + com.google.cloud.filestore.v1.DeleteBackupRequest.class, + com.google.cloud.filestore.v1.DeleteBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.DeleteBackupRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; } @java.lang.Override @@ -314,7 +346,8 @@ public com.google.cloud.filestore.v1.DeleteBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.DeleteBackupRequest buildPartial() { - com.google.cloud.filestore.v1.DeleteBackupRequest result = new com.google.cloud.filestore.v1.DeleteBackupRequest(this); + com.google.cloud.filestore.v1.DeleteBackupRequest result = + new com.google.cloud.filestore.v1.DeleteBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +357,39 @@ public com.google.cloud.filestore.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.filestore.v1.DeleteBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1.DeleteBackupRequest)other); + return mergeFrom((com.google.cloud.filestore.v1.DeleteBackupRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +397,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.DeleteBackupRequest other) { - if (other == com.google.cloud.filestore.v1.DeleteBackupRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1.DeleteBackupRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +454,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * string name = 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; @@ -438,21 +479,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * string name = 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 { @@ -460,64 +504,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * 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. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * string 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. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * 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); } @@ -527,12 +584,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.DeleteBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.DeleteBackupRequest) private static final com.google.cloud.filestore.v1.DeleteBackupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.DeleteBackupRequest(); } @@ -541,27 +598,27 @@ public static com.google.cloud.filestore.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.DeleteBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java new file mode 100644 index 000000000000..1bb22b9f9443 --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.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/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public interface DeleteBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.DeleteBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_number}/locations/{location}/backups/{backup_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_number}/locations/{location}/backups/{backup_id}`
+   * 
+ * + * + * 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/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java similarity index 63% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java index ad264cae8225..83943c336a13 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java @@ -1,62 +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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * DeleteInstanceRequest deletes an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.DeleteInstanceRequest} */ -public final class DeleteInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.DeleteInstanceRequest) DeleteInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteInstanceRequest.newBuilder() to construct. private DeleteInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.DeleteInstanceRequest.class, com.google.cloud.filestore.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.DeleteInstanceRequest.class, + com.google.cloud.filestore.v1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string name = 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -133,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.DeleteInstanceRequest other = (com.google.cloud.filestore.v1.DeleteInstanceRequest) obj; + com.google.cloud.filestore.v1.DeleteInstanceRequest other = + (com.google.cloud.filestore.v1.DeleteInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +187,135 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( - java.nio.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.filestore.v1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.DeleteInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1.DeleteInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * DeleteInstanceRequest deletes an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.DeleteInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.DeleteInstanceRequest) com.google.cloud.filestore.v1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.DeleteInstanceRequest.class, com.google.cloud.filestore.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.DeleteInstanceRequest.class, + com.google.cloud.filestore.v1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.DeleteInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -314,7 +346,8 @@ public com.google.cloud.filestore.v1.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.DeleteInstanceRequest buildPartial() { - com.google.cloud.filestore.v1.DeleteInstanceRequest result = new com.google.cloud.filestore.v1.DeleteInstanceRequest(this); + com.google.cloud.filestore.v1.DeleteInstanceRequest result = + new com.google.cloud.filestore.v1.DeleteInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +357,39 @@ public com.google.cloud.filestore.v1.DeleteInstanceRequest 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.filestore.v1.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1.DeleteInstanceRequest)other); + return mergeFrom((com.google.cloud.filestore.v1.DeleteInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +397,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.DeleteInstanceRequest other) { - if (other == com.google.cloud.filestore.v1.DeleteInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1.DeleteInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +454,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string name = 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; @@ -438,21 +479,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string name = 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 { @@ -460,64 +504,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * 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); } @@ -527,12 +584,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.DeleteInstanceRequest) private static final com.google.cloud.filestore.v1.DeleteInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.DeleteInstanceRequest(); } @@ -541,27 +598,27 @@ public static com.google.cloud.filestore.v1.DeleteInstanceRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..27d695f82985 --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.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/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public interface DeleteInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.DeleteInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * + * 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/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java similarity index 75% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java index 695769939843..e169ef803f69 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * File share configuration for the instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.FileShareConfig} */ -public final class FileShareConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FileShareConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.FileShareConfig) FileShareConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FileShareConfig.newBuilder() to construct. private FileShareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FileShareConfig() { name_ = ""; nfsExportOptions_ = java.util.Collections.emptyList(); @@ -26,37 +44,41 @@ private FileShareConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FileShareConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.FileShareConfig.class, com.google.cloud.filestore.v1.FileShareConfig.Builder.class); + com.google.cloud.filestore.v1.FileShareConfig.class, + com.google.cloud.filestore.v1.FileShareConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SOURCE_BACKUP(8), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -72,30 +94,35 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 8: return SOURCE_BACKUP; - case 0: return SOURCE_NOT_SET; - default: return null; + case 8: + return SOURCE_BACKUP; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name of the file share (must be 16 characters or less).
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -104,29 +131,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 file share (must be 16 characters or less).
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -137,12 +164,15 @@ public java.lang.String getName() { public static final int CAPACITY_GB_FIELD_NUMBER = 2; private long capacityGb_; /** + * + * *
    * File share capacity in gigabytes (GB).
    * Cloud Filestore defines 1 GB as 1024^3 bytes.
    * 
* * int64 capacity_gb = 2; + * * @return The capacityGb. */ @java.lang.Override @@ -152,6 +182,8 @@ public long getCapacityGb() { public static final int SOURCE_BACKUP_FIELD_NUMBER = 8; /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -159,12 +191,15 @@ public long getCapacityGb() {
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceBackup field is set. */ public boolean hasSourceBackup() { return sourceCase_ == 8; } /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -172,6 +207,7 @@ public boolean hasSourceBackup() {
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } + * * @return The sourceBackup. */ public java.lang.String getSourceBackup() { @@ -182,8 +218,7 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (sourceCase_ == 8) { source_ = s; @@ -192,6 +227,8 @@ public java.lang.String getSourceBackup() { } } /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -199,18 +236,17 @@ public java.lang.String getSourceBackup() {
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString - getSourceBackupBytes() { + public com.google.protobuf.ByteString getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 8) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 8) { source_ = b; } @@ -223,6 +259,8 @@ public java.lang.String getSourceBackup() { public static final int NFS_EXPORT_OPTIONS_FIELD_NUMBER = 7; private java.util.List nfsExportOptions_; /** + * + * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -235,6 +273,8 @@ public java.util.List getNfsExpo
     return nfsExportOptions_;
   }
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -243,11 +283,13 @@ public java.util.List getNfsExpo
    * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getNfsExportOptionsOrBuilderList() {
     return nfsExportOptions_;
   }
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -260,6 +302,8 @@ public int getNfsExportOptionsCount() {
     return nfsExportOptions_.size();
   }
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -272,6 +316,8 @@ public com.google.cloud.filestore.v1.NfsExportOptions getNfsExportOptions(int in
     return nfsExportOptions_.get(index);
   }
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -286,6 +332,7 @@ public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptio
   }
 
   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 {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -324,12 +370,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (capacityGb_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(2, capacityGb_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, capacityGb_);
     }
     for (int i = 0; i < nfsExportOptions_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, nfsExportOptions_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, nfsExportOptions_.get(i));
     }
     if (sourceCase_ == 8) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, source_);
@@ -342,24 +386,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.filestore.v1.FileShareConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.filestore.v1.FileShareConfig other = (com.google.cloud.filestore.v1.FileShareConfig) obj;
+    com.google.cloud.filestore.v1.FileShareConfig other =
+        (com.google.cloud.filestore.v1.FileShareConfig) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (getCapacityGb()
-        != other.getCapacityGb()) return false;
-    if (!getNfsExportOptionsList()
-        .equals(other.getNfsExportOptionsList())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (getCapacityGb() != other.getCapacityGb()) return false;
+    if (!getNfsExportOptionsList().equals(other.getNfsExportOptionsList())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 8:
-        if (!getSourceBackup()
-            .equals(other.getSourceBackup())) return false;
+        if (!getSourceBackup().equals(other.getSourceBackup())) return false;
         break;
       case 0:
       default:
@@ -378,8 +419,7 @@ public int hashCode() {
     hash = (37 * hash) + NAME_FIELD_NUMBER;
     hash = (53 * hash) + getName().hashCode();
     hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getCapacityGb());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb());
     if (getNfsExportOptionsCount() > 0) {
       hash = (37 * hash) + NFS_EXPORT_OPTIONS_FIELD_NUMBER;
       hash = (53 * hash) + getNfsExportOptionsList().hashCode();
@@ -397,130 +437,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(java.io.InputStream input)
       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.filestore.v1.FileShareConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.filestore.v1.FileShareConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.filestore.v1.FileShareConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.filestore.v1.FileShareConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.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.filestore.v1.FileShareConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.filestore.v1.FileShareConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * File share configuration for the instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.FileShareConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.FileShareConfig) com.google.cloud.filestore.v1.FileShareConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.FileShareConfig.class, com.google.cloud.filestore.v1.FileShareConfig.Builder.class); + com.google.cloud.filestore.v1.FileShareConfig.class, + com.google.cloud.filestore.v1.FileShareConfig.Builder.class); } // Construct using com.google.cloud.filestore.v1.FileShareConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -541,9 +587,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; } @java.lang.Override @@ -562,7 +608,8 @@ public com.google.cloud.filestore.v1.FileShareConfig build() { @java.lang.Override public com.google.cloud.filestore.v1.FileShareConfig buildPartial() { - com.google.cloud.filestore.v1.FileShareConfig result = new com.google.cloud.filestore.v1.FileShareConfig(this); + com.google.cloud.filestore.v1.FileShareConfig result = + new com.google.cloud.filestore.v1.FileShareConfig(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.capacityGb_ = capacityGb_; @@ -587,38 +634,39 @@ public com.google.cloud.filestore.v1.FileShareConfig 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.filestore.v1.FileShareConfig) { - return mergeFrom((com.google.cloud.filestore.v1.FileShareConfig)other); + return mergeFrom((com.google.cloud.filestore.v1.FileShareConfig) other); } else { super.mergeFrom(other); return this; @@ -652,24 +700,27 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.FileShareConfig other) { nfsExportOptionsBuilder_ = null; nfsExportOptions_ = other.nfsExportOptions_; bitField0_ = (bitField0_ & ~0x00000001); - nfsExportOptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNfsExportOptionsFieldBuilder() : null; + nfsExportOptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNfsExportOptionsFieldBuilder() + : null; } else { nfsExportOptionsBuilder_.addAllMessages(other.nfsExportOptions_); } } } switch (other.getSourceCase()) { - case SOURCE_BACKUP: { - sourceCase_ = 8; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: { - break; - } + case SOURCE_BACKUP: + { + sourceCase_ = 8; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -697,41 +748,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); + case 10: + { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - capacityGb_ = input.readInt64(); + break; + } // case 10 + case 16: + { + capacityGb_ = input.readInt64(); - break; - } // case 16 - case 58: { - com.google.cloud.filestore.v1.NfsExportOptions m = - input.readMessage( - com.google.cloud.filestore.v1.NfsExportOptions.parser(), - extensionRegistry); - if (nfsExportOptionsBuilder_ == null) { - ensureNfsExportOptionsIsMutable(); - nfsExportOptions_.add(m); - } else { - nfsExportOptionsBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 8; - source_ = s; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 16 + case 58: + { + com.google.cloud.filestore.v1.NfsExportOptions m = + input.readMessage( + com.google.cloud.filestore.v1.NfsExportOptions.parser(), extensionRegistry); + if (nfsExportOptionsBuilder_ == null) { + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.add(m); + } else { + nfsExportOptionsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 8; + source_ = s; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -741,12 +796,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -760,18 +815,20 @@ public Builder clearSource() { private java.lang.Object name_ = ""; /** + * + * *
      * The name of the file share (must be 16 characters or less).
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -780,20 +837,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the file share (must be 16 characters or less).
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -801,67 +859,77 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the file share (must be 16 characters or less).
      * 
* * string name = 1; + * * @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 file share (must be 16 characters or less).
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the file share (must be 16 characters or less).
      * 
* * string name = 1; + * * @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; } - private long capacityGb_ ; + private long capacityGb_; /** + * + * *
      * File share capacity in gigabytes (GB).
      * Cloud Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; + * * @return The capacityGb. */ @java.lang.Override @@ -869,38 +937,46 @@ public long getCapacityGb() { return capacityGb_; } /** + * + * *
      * File share capacity in gigabytes (GB).
      * Cloud Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; + * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** + * + * *
      * File share capacity in gigabytes (GB).
      * Cloud Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; + * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -908,6 +984,7 @@ public Builder clearCapacityGb() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceBackup field is set. */ @java.lang.Override @@ -915,6 +992,8 @@ public boolean hasSourceBackup() { return sourceCase_ == 8; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -922,6 +1001,7 @@ public boolean hasSourceBackup() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } + * * @return The sourceBackup. */ @java.lang.Override @@ -931,8 +1011,7 @@ public java.lang.String getSourceBackup() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (sourceCase_ == 8) { source_ = s; @@ -943,6 +1022,8 @@ public java.lang.String getSourceBackup() { } } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -950,19 +1031,18 @@ public java.lang.String getSourceBackup() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceBackupBytes() { + public com.google.protobuf.ByteString getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 8) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 8) { source_ = b; } @@ -972,6 +1052,8 @@ public java.lang.String getSourceBackup() { } } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -979,20 +1061,22 @@ public java.lang.String getSourceBackup() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } + * * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup( - java.lang.String value) { + public Builder setSourceBackup(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 8; + throw new NullPointerException(); + } + sourceCase_ = 8; source_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -1000,6 +1084,7 @@ public Builder setSourceBackup(
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -1011,6 +1096,8 @@ public Builder clearSourceBackup() { return this; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -1018,15 +1105,15 @@ public Builder clearSourceBackup() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackupBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 8; source_ = value; onChanged(); @@ -1034,18 +1121,26 @@ public Builder setSourceBackupBytes( } private java.util.List nfsExportOptions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNfsExportOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nfsExportOptions_ = new java.util.ArrayList(nfsExportOptions_); + nfsExportOptions_ = + new java.util.ArrayList( + nfsExportOptions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1.NfsExportOptions, com.google.cloud.filestore.v1.NfsExportOptions.Builder, com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder> nfsExportOptionsBuilder_; + com.google.cloud.filestore.v1.NfsExportOptions, + com.google.cloud.filestore.v1.NfsExportOptions.Builder, + com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder> + nfsExportOptionsBuilder_; /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1053,7 +1148,8 @@ private void ensureNfsExportOptionsIsMutable() {
      *
      * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
      */
-    public java.util.List getNfsExportOptionsList() {
+    public java.util.List
+        getNfsExportOptionsList() {
       if (nfsExportOptionsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(nfsExportOptions_);
       } else {
@@ -1061,6 +1157,8 @@ public java.util.List getNfsExpo
       }
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1076,6 +1174,8 @@ public int getNfsExportOptionsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1091,6 +1191,8 @@ public com.google.cloud.filestore.v1.NfsExportOptions getNfsExportOptions(int in
       }
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1113,6 +1215,8 @@ public Builder setNfsExportOptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1132,6 +1236,8 @@ public Builder setNfsExportOptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1153,6 +1259,8 @@ public Builder addNfsExportOptions(com.google.cloud.filestore.v1.NfsExportOption
       return this;
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1175,6 +1283,8 @@ public Builder addNfsExportOptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1194,6 +1304,8 @@ public Builder addNfsExportOptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1213,6 +1325,8 @@ public Builder addNfsExportOptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1224,8 +1338,7 @@ public Builder addAllNfsExportOptions(
         java.lang.Iterable values) {
       if (nfsExportOptionsBuilder_ == null) {
         ensureNfsExportOptionsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, nfsExportOptions_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsExportOptions_);
         onChanged();
       } else {
         nfsExportOptionsBuilder_.addAllMessages(values);
@@ -1233,6 +1346,8 @@ public Builder addAllNfsExportOptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1251,6 +1366,8 @@ public Builder clearNfsExportOptions() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1269,6 +1386,8 @@ public Builder removeNfsExportOptions(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1281,6 +1400,8 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder getNfsExportOption
       return getNfsExportOptionsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1291,11 +1412,14 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder getNfsExportOption
     public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder(
         int index) {
       if (nfsExportOptionsBuilder_ == null) {
-        return nfsExportOptions_.get(index);  } else {
+        return nfsExportOptions_.get(index);
+      } else {
         return nfsExportOptionsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1303,8 +1427,8 @@ public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptio
      *
      * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
      */
-    public java.util.List 
-         getNfsExportOptionsOrBuilderList() {
+    public java.util.List
+        getNfsExportOptionsOrBuilderList() {
       if (nfsExportOptionsBuilder_ != null) {
         return nfsExportOptionsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1312,6 +1436,8 @@ public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptio
       }
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1320,10 +1446,12 @@ public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptio
      * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
      */
     public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOptionsBuilder() {
-      return getNfsExportOptionsFieldBuilder().addBuilder(
-          com.google.cloud.filestore.v1.NfsExportOptions.getDefaultInstance());
+      return getNfsExportOptionsFieldBuilder()
+          .addBuilder(com.google.cloud.filestore.v1.NfsExportOptions.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1333,10 +1461,12 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOption
      */
     public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOptionsBuilder(
         int index) {
-      return getNfsExportOptionsFieldBuilder().addBuilder(
-          index, com.google.cloud.filestore.v1.NfsExportOptions.getDefaultInstance());
+      return getNfsExportOptionsFieldBuilder()
+          .addBuilder(index, com.google.cloud.filestore.v1.NfsExportOptions.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1344,16 +1474,22 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOption
      *
      * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
      */
-    public java.util.List 
-         getNfsExportOptionsBuilderList() {
+    public java.util.List
+        getNfsExportOptionsBuilderList() {
       return getNfsExportOptionsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.filestore.v1.NfsExportOptions, com.google.cloud.filestore.v1.NfsExportOptions.Builder, com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder> 
+            com.google.cloud.filestore.v1.NfsExportOptions,
+            com.google.cloud.filestore.v1.NfsExportOptions.Builder,
+            com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder>
         getNfsExportOptionsFieldBuilder() {
       if (nfsExportOptionsBuilder_ == null) {
-        nfsExportOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.NfsExportOptions, com.google.cloud.filestore.v1.NfsExportOptions.Builder, com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder>(
+        nfsExportOptionsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.filestore.v1.NfsExportOptions,
+                com.google.cloud.filestore.v1.NfsExportOptions.Builder,
+                com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder>(
                 nfsExportOptions_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1362,9 +1498,9 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOption
       }
       return nfsExportOptionsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1374,12 +1510,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.FileShareConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.FileShareConfig)
   private static final com.google.cloud.filestore.v1.FileShareConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.FileShareConfig();
   }
@@ -1388,27 +1524,27 @@ public static com.google.cloud.filestore.v1.FileShareConfig getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public FileShareConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public FileShareConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1423,6 +1559,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.filestore.v1.FileShareConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
index c2fec583f7d7..51e23b214e51 100644
--- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
+++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
@@ -1,44 +1,70 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/filestore/v1/cloud_filestore_service.proto
 
 package com.google.cloud.filestore.v1;
 
-public interface FileShareConfigOrBuilder extends
+public interface FileShareConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.FileShareConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The name of the file share (must be 16 characters or less).
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the file share (must be 16 characters or less).
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * File share capacity in gigabytes (GB).
    * Cloud Filestore defines 1 GB as 1024^3 bytes.
    * 
* * int64 capacity_gb = 2; + * * @return The capacityGb. */ long getCapacityGb(); /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -46,10 +72,13 @@ public interface FileShareConfigOrBuilder extends
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceBackup field is set. */ boolean hasSourceBackup(); /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -57,10 +86,13 @@ public interface FileShareConfigOrBuilder extends
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } + * * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -68,12 +100,14 @@ public interface FileShareConfigOrBuilder extends
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString - getSourceBackupBytes(); + com.google.protobuf.ByteString getSourceBackupBytes(); /** + * + * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -81,9 +115,10 @@ public interface FileShareConfigOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
    */
-  java.util.List 
-      getNfsExportOptionsList();
+  java.util.List getNfsExportOptionsList();
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -93,6 +128,8 @@ public interface FileShareConfigOrBuilder extends
    */
   com.google.cloud.filestore.v1.NfsExportOptions getNfsExportOptions(int index);
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -102,6 +139,8 @@ public interface FileShareConfigOrBuilder extends
    */
   int getNfsExportOptionsCount();
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -109,9 +148,11 @@ public interface FileShareConfigOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
    */
-  java.util.List 
+  java.util.List
       getNfsExportOptionsOrBuilderList();
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -119,8 +160,7 @@ public interface FileShareConfigOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
    */
-  com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder(
-      int index);
+  com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder(int index);
 
   public com.google.cloud.filestore.v1.FileShareConfig.SourceCase getSourceCase();
 }
diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
similarity index 64%
rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
index 70cb3a53eef5..a51f09dafda4 100644
--- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
+++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
@@ -1,62 +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/filestore/v1/cloud_filestore_service.proto
 
 package com.google.cloud.filestore.v1;
 
 /**
+ *
+ *
  * 
  * GetBackupRequest gets the state of a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.GetBackupRequest.class, com.google.cloud.filestore.v1.GetBackupRequest.Builder.class); + com.google.cloud.filestore.v1.GetBackupRequest.class, + com.google.cloud.filestore.v1.GetBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The backup resource name, in the format
    * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The backup resource name, in the format
    * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
    * 
* - * string name = 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -133,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.GetBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.GetBackupRequest other = (com.google.cloud.filestore.v1.GetBackupRequest) obj; + com.google.cloud.filestore.v1.GetBackupRequest other = + (com.google.cloud.filestore.v1.GetBackupRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,130 +186,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.GetBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.GetBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.v1.GetBackupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.GetBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.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; } /** + * + * *
    * GetBackupRequest gets the state of a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.v1.GetBackupRequest) com.google.cloud.filestore.v1.GetBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.GetBackupRequest.class, com.google.cloud.filestore.v1.GetBackupRequest.Builder.class); + com.google.cloud.filestore.v1.GetBackupRequest.class, + com.google.cloud.filestore.v1.GetBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.GetBackupRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; } @java.lang.Override @@ -314,7 +346,8 @@ public com.google.cloud.filestore.v1.GetBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.GetBackupRequest buildPartial() { - com.google.cloud.filestore.v1.GetBackupRequest result = new com.google.cloud.filestore.v1.GetBackupRequest(this); + com.google.cloud.filestore.v1.GetBackupRequest result = + new com.google.cloud.filestore.v1.GetBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +357,39 @@ public com.google.cloud.filestore.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.filestore.v1.GetBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1.GetBackupRequest)other); + return mergeFrom((com.google.cloud.filestore.v1.GetBackupRequest) other); } else { super.mergeFrom(other); return this; @@ -394,17 +428,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +453,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * string name = 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; @@ -438,21 +478,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * string name = 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 { @@ -460,64 +503,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * 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. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * string 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. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * 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); } @@ -527,12 +583,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.GetBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.GetBackupRequest) private static final com.google.cloud.filestore.v1.GetBackupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.GetBackupRequest(); } @@ -541,27 +597,27 @@ public static com.google.cloud.filestore.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +632,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.GetBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java new file mode 100644 index 000000000000..04888e424ad5 --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/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/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public interface GetBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.GetBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
+   * 
+ * + * + * 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/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java similarity index 63% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java index f0d2b972e1df..ce4e26572a51 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java @@ -1,62 +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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * GetInstanceRequest gets the state of an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.GetInstanceRequest} */ -public final class GetInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.GetInstanceRequest) GetInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.GetInstanceRequest.class, com.google.cloud.filestore.v1.GetInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.GetInstanceRequest.class, + com.google.cloud.filestore.v1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * string name = 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -133,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.GetInstanceRequest other = (com.google.cloud.filestore.v1.GetInstanceRequest) obj; + com.google.cloud.filestore.v1.GetInstanceRequest other = + (com.google.cloud.filestore.v1.GetInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,130 +186,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.GetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * GetInstanceRequest gets the state of an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.GetInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.GetInstanceRequest) com.google.cloud.filestore.v1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.GetInstanceRequest.class, com.google.cloud.filestore.v1.GetInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.GetInstanceRequest.class, + com.google.cloud.filestore.v1.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.GetInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -314,7 +346,8 @@ public com.google.cloud.filestore.v1.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.GetInstanceRequest buildPartial() { - com.google.cloud.filestore.v1.GetInstanceRequest result = new com.google.cloud.filestore.v1.GetInstanceRequest(this); + com.google.cloud.filestore.v1.GetInstanceRequest result = + new com.google.cloud.filestore.v1.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +357,39 @@ public com.google.cloud.filestore.v1.GetInstanceRequest 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.filestore.v1.GetInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1.GetInstanceRequest)other); + return mergeFrom((com.google.cloud.filestore.v1.GetInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +397,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.GetInstanceRequest other) { - if (other == com.google.cloud.filestore.v1.GetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1.GetInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +454,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string name = 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; @@ -438,21 +479,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string name = 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 { @@ -460,64 +504,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * 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); } @@ -527,12 +584,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.GetInstanceRequest) private static final com.google.cloud.filestore.v1.GetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.GetInstanceRequest(); } @@ -541,27 +598,27 @@ public static com.google.cloud.filestore.v1.GetInstanceRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..424aad60461b --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.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/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public interface GetInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * + * 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/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java similarity index 71% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java index 61070e5c8ab2..3afbaee882b6 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * A Cloud Filestore instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.Instance} */ -public final class Instance extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Instance extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.Instance) InstanceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Instance() { name_ = ""; description_ = ""; @@ -32,51 +50,54 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_Instance_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.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.Instance.class, com.google.cloud.filestore.v1.Instance.Builder.class); + com.google.cloud.filestore.v1.Instance.class, + com.google.cloud.filestore.v1.Instance.Builder.class); } /** + * + * *
    * The instance state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.Instance.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State not set.
      * 
@@ -85,6 +106,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The instance is being created.
      * 
@@ -93,6 +116,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The instance is available for use.
      * 
@@ -101,6 +126,8 @@ public enum State */ READY(2), /** + * + * *
      * Work is being done on the instance. You can get further details from the
      * `statusMessage` field of the `Instance` resource.
@@ -110,6 +137,8 @@ public enum State
      */
     REPAIRING(3),
     /**
+     *
+     *
      * 
      * The instance is shutting down.
      * 
@@ -118,6 +147,8 @@ public enum State */ DELETING(4), /** + * + * *
      * The instance is experiencing an issue and might be unusable. You can get
      * further details from the `statusMessage` field of the `Instance`
@@ -128,6 +159,8 @@ public enum State
      */
     ERROR(6),
     /**
+     *
+     *
      * 
      * The instance is restoring a backup to an existing file share and may be
      * unusable during this time.
@@ -140,6 +173,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * State not set.
      * 
@@ -148,6 +183,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The instance is being created.
      * 
@@ -156,6 +193,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The instance is available for use.
      * 
@@ -164,6 +203,8 @@ public enum State */ public static final int READY_VALUE = 2; /** + * + * *
      * Work is being done on the instance. You can get further details from the
      * `statusMessage` field of the `Instance` resource.
@@ -173,6 +214,8 @@ public enum State
      */
     public static final int REPAIRING_VALUE = 3;
     /**
+     *
+     *
      * 
      * The instance is shutting down.
      * 
@@ -181,6 +224,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
      * The instance is experiencing an issue and might be unusable. You can get
      * further details from the `statusMessage` field of the `Instance`
@@ -191,6 +236,8 @@ public enum State
      */
     public static final int ERROR_VALUE = 6;
     /**
+     *
+     *
      * 
      * The instance is restoring a backup to an existing file share and may be
      * unusable during this time.
@@ -200,7 +247,6 @@ public enum State
      */
     public static final int RESTORING_VALUE = 7;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -225,53 +271,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 READY;
-        case 3: return REPAIRING;
-        case 4: return DELETING;
-        case 6: return ERROR;
-        case 7: return RESTORING;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return CREATING;
+        case 2:
+          return READY;
+        case 3:
+          return REPAIRING;
+        case 4:
+          return DELETING;
+        case 6:
+          return ERROR;
+        case 7:
+          return RESTORING;
+        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.filestore.v1.Instance.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;
@@ -289,15 +339,18 @@ private State(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Available service tiers.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.Instance.Tier} */ - public enum Tier - implements com.google.protobuf.ProtocolMessageEnum { + public enum Tier implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -306,6 +359,8 @@ public enum Tier */ TIER_UNSPECIFIED(0), /** + * + * *
      * STANDARD tier.
      * 
@@ -314,6 +369,8 @@ public enum Tier */ STANDARD(1), /** + * + * *
      * PREMIUM tier.
      * 
@@ -322,6 +379,8 @@ public enum Tier */ PREMIUM(2), /** + * + * *
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_HDD is an alias for STANDARD Tier, offering economical
@@ -332,6 +391,8 @@ public enum Tier
      */
     BASIC_HDD(3),
     /**
+     *
+     *
      * 
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_SSD is an alias for PREMIUM Tier, and offers improved
@@ -342,6 +403,8 @@ public enum Tier
      */
     BASIC_SSD(4),
     /**
+     *
+     *
      * 
      * HIGH_SCALE instances offer expanded capacity and performance scaling
      * capabilities.
@@ -354,6 +417,8 @@ public enum Tier
     ;
 
     /**
+     *
+     *
      * 
      * Not set.
      * 
@@ -362,6 +427,8 @@ public enum Tier */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** + * + * *
      * STANDARD tier.
      * 
@@ -370,6 +437,8 @@ public enum Tier */ public static final int STANDARD_VALUE = 1; /** + * + * *
      * PREMIUM tier.
      * 
@@ -378,6 +447,8 @@ public enum Tier */ public static final int PREMIUM_VALUE = 2; /** + * + * *
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_HDD is an alias for STANDARD Tier, offering economical
@@ -388,6 +459,8 @@ public enum Tier
      */
     public static final int BASIC_HDD_VALUE = 3;
     /**
+     *
+     *
      * 
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_SSD is an alias for PREMIUM Tier, and offers improved
@@ -398,6 +471,8 @@ public enum Tier
      */
     public static final int BASIC_SSD_VALUE = 4;
     /**
+     *
+     *
      * 
      * HIGH_SCALE instances offer expanded capacity and performance scaling
      * capabilities.
@@ -407,7 +482,6 @@ public enum Tier
      */
     public static final int HIGH_SCALE_SSD_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -432,52 +506,55 @@ public static Tier valueOf(int value) {
      */
     public static Tier forNumber(int value) {
       switch (value) {
-        case 0: return TIER_UNSPECIFIED;
-        case 1: return STANDARD;
-        case 2: return PREMIUM;
-        case 3: return BASIC_HDD;
-        case 4: return BASIC_SSD;
-        case 5: return HIGH_SCALE_SSD;
-        default: return null;
+        case 0:
+          return TIER_UNSPECIFIED;
+        case 1:
+          return STANDARD;
+        case 2:
+          return PREMIUM;
+        case 3:
+          return BASIC_HDD;
+        case 4:
+          return BASIC_SSD;
+        case 5:
+          return HIGH_SCALE_SSD;
+        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<
-        Tier> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Tier findValueByNumber(int number) {
-              return Tier.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 Tier findValueByNumber(int number) {
+            return Tier.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.filestore.v1.Instance.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Tier[] VALUES = values();
 
-    public static Tier valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Tier 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,12 +574,15 @@ private Tier(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. The resource name of the instance, in the format
    * `projects/{project}/locations/{location}/instances/{instance}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -511,30 +591,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 resource name of the instance, in the format
    * `projects/{project}/locations/{location}/instances/{instance}`.
    * 
* * 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 { @@ -545,11 +625,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -558,29 +641,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; } } /** + * + * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; + * * @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 { @@ -591,38 +674,54 @@ public java.lang.String getDescription() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** + * + * *
    * Output only. The instance state.
    * 
* - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.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 instance state.
    * 
* - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.filestore.v1.Instance.State getState() { + @java.lang.Override + public com.google.cloud.filestore.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.State result = com.google.cloud.filestore.v1.Instance.State.valueOf(state_); + com.google.cloud.filestore.v1.Instance.State result = + com.google.cloud.filestore.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1.Instance.State.UNRECOGNIZED : result; } public static final int STATUS_MESSAGE_FIELD_NUMBER = 6; private volatile java.lang.Object statusMessage_; /** + * + * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -631,29 +730,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. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.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 { @@ -664,11 +763,15 @@ public java.lang.String getStatusMessage() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -676,11 +779,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -688,11 +795,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -702,49 +812,57 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int TIER_FIELD_NUMBER = 8; private int tier_; /** + * + * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; + * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override public int getTierValue() { + @java.lang.Override + public int getTierValue() { return tier_; } /** + * + * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; + * * @return The tier. */ - @java.lang.Override public com.google.cloud.filestore.v1.Instance.Tier getTier() { + @java.lang.Override + public com.google.cloud.filestore.v1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.Tier result = com.google.cloud.filestore.v1.Instance.Tier.valueOf(tier_); + com.google.cloud.filestore.v1.Instance.Tier result = + com.google.cloud.filestore.v1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.filestore.v1.Instance.Tier.UNRECOGNIZED : result; } 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.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_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.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_Instance_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_; } @@ -753,28 +871,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * 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(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -782,11 +902,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -794,16 +915,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; } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -811,12 +932,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(); } @@ -826,6 +946,8 @@ public java.lang.String getLabelsOrThrow( public static final int FILE_SHARES_FIELD_NUMBER = 10; private java.util.List fileShares_; /** + * + * *
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -838,6 +960,8 @@ public java.util.List getFileShar
     return fileShares_;
   }
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -846,11 +970,13 @@ public java.util.List getFileShar
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getFileSharesOrBuilderList() {
     return fileShares_;
   }
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -863,6 +989,8 @@ public int getFileSharesCount() {
     return fileShares_.size();
   }
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -875,6 +1003,8 @@ public com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index) {
     return fileShares_.get(index);
   }
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -883,14 +1013,15 @@ public com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index) {
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(
-      int index) {
+  public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(int index) {
     return fileShares_.get(index);
   }
 
   public static final int NETWORKS_FIELD_NUMBER = 11;
   private java.util.List networks_;
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -903,6 +1034,8 @@ public java.util.List getNetworksLi
     return networks_;
   }
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -911,11 +1044,13 @@ public java.util.List getNetworksLi
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getNetworksOrBuilderList() {
     return networks_;
   }
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -928,6 +1063,8 @@ public int getNetworksCount() {
     return networks_.size();
   }
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -940,6 +1077,8 @@ public com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index) {
     return networks_.get(index);
   }
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -948,20 +1087,22 @@ public com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index) {
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(
-      int index) {
+  public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(int index) {
     return networks_.get(index);
   }
 
   public static final int ETAG_FIELD_NUMBER = 12;
   private volatile java.lang.Object etag_;
   /**
+   *
+   *
    * 
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; + * * @return The etag. */ @java.lang.Override @@ -970,30 +1111,30 @@ 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; } } /** + * + * *
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; + * * @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 { @@ -1004,11 +1145,16 @@ public java.lang.String getEtag() { public static final int SATISFIES_PZS_FIELD_NUMBER = 13; private com.google.protobuf.BoolValue satisfiesPzs_; /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the satisfiesPzs field is set. */ @java.lang.Override @@ -1016,23 +1162,34 @@ public boolean hasSatisfiesPzs() { return satisfiesPzs_ != null; } /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The satisfiesPzs. */ @java.lang.Override public com.google.protobuf.BoolValue getSatisfiesPzs() { - return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; } /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { @@ -1040,6 +1197,7 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1051,8 +1209,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1071,12 +1228,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (tier_ != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(8, tier_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 9); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); for (int i = 0; i < fileShares_.size(); i++) { output.writeMessage(10, fileShares_.get(i)); } @@ -1105,44 +1258,38 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, statusMessage_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } if (tier_ != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, tier_); - } - 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.computeEnumSize(8, tier_); + } + 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__); } for (int i = 0; i < fileShares_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, fileShares_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, fileShares_.get(i)); } for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, networks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etag_); } if (satisfiesPzs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getSatisfiesPzs()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSatisfiesPzs()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1152,38 +1299,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.Instance)) { return super.equals(obj); } com.google.cloud.filestore.v1.Instance other = (com.google.cloud.filestore.v1.Instance) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) 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 (tier_ != other.tier_) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getFileSharesList() - .equals(other.getFileSharesList())) return false; - if (!getNetworksList() - .equals(other.getNetworksList())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getFileSharesList().equals(other.getFileSharesList())) return false; + if (!getNetworksList().equals(other.getNetworksList())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { - if (!getSatisfiesPzs() - .equals(other.getSatisfiesPzs())) return false; + if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1233,152 +1371,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.Instance parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.Instance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.Instance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.Instance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.Instance parseFrom(java.io.InputStream input) 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.filestore.v1.Instance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.filestore.v1.Instance 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.filestore.v1.Instance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.Instance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Cloud Filestore instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.Instance} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.Instance) com.google.cloud.filestore.v1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_Instance_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.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.Instance.class, com.google.cloud.filestore.v1.Instance.Builder.class); + com.google.cloud.filestore.v1.Instance.class, + com.google.cloud.filestore.v1.Instance.Builder.class); } // Construct using com.google.cloud.filestore.v1.Instance.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1425,9 +1567,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_Instance_descriptor; } @java.lang.Override @@ -1446,7 +1588,8 @@ public com.google.cloud.filestore.v1.Instance build() { @java.lang.Override public com.google.cloud.filestore.v1.Instance buildPartial() { - com.google.cloud.filestore.v1.Instance result = new com.google.cloud.filestore.v1.Instance(this); + com.google.cloud.filestore.v1.Instance result = + new com.google.cloud.filestore.v1.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -1492,38 +1635,39 @@ public com.google.cloud.filestore.v1.Instance 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.filestore.v1.Instance) { - return mergeFrom((com.google.cloud.filestore.v1.Instance)other); + return mergeFrom((com.google.cloud.filestore.v1.Instance) other); } else { super.mergeFrom(other); return this; @@ -1553,8 +1697,7 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.Instance other) { if (other.tier_ != 0) { setTierValue(other.getTierValue()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (fileSharesBuilder_ == null) { if (!other.fileShares_.isEmpty()) { if (fileShares_.isEmpty()) { @@ -1573,9 +1716,10 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.Instance other) { fileSharesBuilder_ = null; fileShares_ = other.fileShares_; bitField0_ = (bitField0_ & ~0x00000002); - fileSharesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFileSharesFieldBuilder() : null; + fileSharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFileSharesFieldBuilder() + : null; } else { fileSharesBuilder_.addAllMessages(other.fileShares_); } @@ -1599,9 +1743,10 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.Instance other) { networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000004); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworksFieldBuilder() : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworksFieldBuilder() + : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -1640,90 +1785,98 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 40: { - state_ = input.readEnum(); - - break; - } // case 40 - case 50: { - statusMessage_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 58 - case 64: { - tier_ = input.readEnum(); - - break; - } // case 64 - case 74: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 74 - case 82: { - com.google.cloud.filestore.v1.FileShareConfig m = - input.readMessage( - com.google.cloud.filestore.v1.FileShareConfig.parser(), - extensionRegistry); - if (fileSharesBuilder_ == null) { - ensureFileSharesIsMutable(); - fileShares_.add(m); - } else { - fileSharesBuilder_.addMessage(m); - } - break; - } // case 82 - case 90: { - com.google.cloud.filestore.v1.NetworkConfig m = - input.readMessage( - com.google.cloud.filestore.v1.NetworkConfig.parser(), - extensionRegistry); - if (networksBuilder_ == null) { - ensureNetworksIsMutable(); - networks_.add(m); - } else { - networksBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: { - input.readMessage( - getSatisfiesPzsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 106 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 40: + { + state_ = input.readEnum(); + + break; + } // case 40 + case 50: + { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 64: + { + tier_ = input.readEnum(); + + break; + } // case 64 + case 74: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 74 + case 82: + { + com.google.cloud.filestore.v1.FileShareConfig m = + input.readMessage( + com.google.cloud.filestore.v1.FileShareConfig.parser(), extensionRegistry); + if (fileSharesBuilder_ == null) { + ensureFileSharesIsMutable(); + fileShares_.add(m); + } else { + fileSharesBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + com.google.cloud.filestore.v1.NetworkConfig m = + input.readMessage( + com.google.cloud.filestore.v1.NetworkConfig.parser(), extensionRegistry); + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.add(m); + } else { + networksBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: + { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: + { + input.readMessage(getSatisfiesPzsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1733,23 +1886,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * 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; @@ -1758,21 +1914,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * 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 { @@ -1780,76 +1937,85 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * 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 resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * 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 resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * 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); - - name_ = value; + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** + * + * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; + * * @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; @@ -1858,20 +2024,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; + * * @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 { @@ -1879,54 +2046,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; + * * @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; } /** + * + * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; + * * @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; @@ -1934,51 +2108,73 @@ public Builder setDescriptionBytes( private int state_ = 0; /** + * + * *
      * Output only. The instance state.
      * 
* - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.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 instance state.
      * 
* - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.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 instance state.
      * 
* - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.State result = com.google.cloud.filestore.v1.Instance.State.valueOf(state_); + com.google.cloud.filestore.v1.Instance.State result = + com.google.cloud.filestore.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1.Instance.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The instance state.
      * 
* - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1986,21 +2182,26 @@ public Builder setState(com.google.cloud.filestore.v1.Instance.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The instance state.
      * 
* - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2008,18 +2209,20 @@ public Builder clearState() { private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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; @@ -2028,20 +2231,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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 { @@ -2049,54 +2253,61 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** + * + * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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; @@ -2104,39 +2315,58 @@ public Builder setStatusMessageBytes( 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 when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2152,14 +2382,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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(); @@ -2170,17 +2403,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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; } @@ -2192,11 +2429,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2210,48 +2451,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -2259,51 +2516,65 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int tier_ = 0; /** + * + * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; + * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override public int getTierValue() { + @java.lang.Override + public int getTierValue() { return tier_; } /** + * + * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; + * * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** + * + * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; + * * @return The tier. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.Tier result = com.google.cloud.filestore.v1.Instance.Tier.valueOf(tier_); + com.google.cloud.filestore.v1.Instance.Tier result = + com.google.cloud.filestore.v1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.filestore.v1.Instance.Tier.UNRECOGNIZED : result; } /** + * + * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; + * * @param value The tier to set. * @return This builder for chaining. */ @@ -2311,42 +2582,44 @@ public Builder setTier(com.google.cloud.filestore.v1.Instance.Tier value) { if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; + * * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; 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(); @@ -2358,28 +2631,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * 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(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2387,11 +2662,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2399,16 +2675,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; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2416,12 +2693,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(); } @@ -2429,80 +2705,84 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * 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(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * 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; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * 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.util.List fileShares_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFileSharesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fileShares_ = new java.util.ArrayList(fileShares_); + fileShares_ = + new java.util.ArrayList(fileShares_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1.FileShareConfig, com.google.cloud.filestore.v1.FileShareConfig.Builder, com.google.cloud.filestore.v1.FileShareConfigOrBuilder> fileSharesBuilder_; + com.google.cloud.filestore.v1.FileShareConfig, + com.google.cloud.filestore.v1.FileShareConfig.Builder, + com.google.cloud.filestore.v1.FileShareConfigOrBuilder> + fileSharesBuilder_; /** + * + * *
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2518,6 +2798,8 @@ public java.util.List getFileShar
       }
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2533,6 +2815,8 @@ public int getFileSharesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2548,6 +2832,8 @@ public com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2555,8 +2841,7 @@ public com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index) {
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public Builder setFileShares(
-        int index, com.google.cloud.filestore.v1.FileShareConfig value) {
+    public Builder setFileShares(int index, com.google.cloud.filestore.v1.FileShareConfig value) {
       if (fileSharesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2570,6 +2855,8 @@ public Builder setFileShares(
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2589,6 +2876,8 @@ public Builder setFileShares(
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2610,6 +2899,8 @@ public Builder addFileShares(com.google.cloud.filestore.v1.FileShareConfig value
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2617,8 +2908,7 @@ public Builder addFileShares(com.google.cloud.filestore.v1.FileShareConfig value
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public Builder addFileShares(
-        int index, com.google.cloud.filestore.v1.FileShareConfig value) {
+    public Builder addFileShares(int index, com.google.cloud.filestore.v1.FileShareConfig value) {
       if (fileSharesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2632,6 +2922,8 @@ public Builder addFileShares(
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2651,6 +2943,8 @@ public Builder addFileShares(
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2670,6 +2964,8 @@ public Builder addFileShares(
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2681,8 +2977,7 @@ public Builder addAllFileShares(
         java.lang.Iterable values) {
       if (fileSharesBuilder_ == null) {
         ensureFileSharesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, fileShares_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileShares_);
         onChanged();
       } else {
         fileSharesBuilder_.addAllMessages(values);
@@ -2690,6 +2985,8 @@ public Builder addAllFileShares(
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2708,6 +3005,8 @@ public Builder clearFileShares() {
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2726,6 +3025,8 @@ public Builder removeFileShares(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2733,11 +3034,12 @@ public Builder removeFileShares(int index) {
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public com.google.cloud.filestore.v1.FileShareConfig.Builder getFileSharesBuilder(
-        int index) {
+    public com.google.cloud.filestore.v1.FileShareConfig.Builder getFileSharesBuilder(int index) {
       return getFileSharesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2748,11 +3050,14 @@ public com.google.cloud.filestore.v1.FileShareConfig.Builder getFileSharesBuilde
     public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(
         int index) {
       if (fileSharesBuilder_ == null) {
-        return fileShares_.get(index);  } else {
+        return fileShares_.get(index);
+      } else {
         return fileSharesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2760,8 +3065,8 @@ public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBui
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public java.util.List 
-         getFileSharesOrBuilderList() {
+    public java.util.List
+        getFileSharesOrBuilderList() {
       if (fileSharesBuilder_ != null) {
         return fileSharesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2769,6 +3074,8 @@ public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBui
       }
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2777,10 +3084,12 @@ public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBui
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
     public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilder() {
-      return getFileSharesFieldBuilder().addBuilder(
-          com.google.cloud.filestore.v1.FileShareConfig.getDefaultInstance());
+      return getFileSharesFieldBuilder()
+          .addBuilder(com.google.cloud.filestore.v1.FileShareConfig.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2788,12 +3097,13 @@ public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilde
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilder(
-        int index) {
-      return getFileSharesFieldBuilder().addBuilder(
-          index, com.google.cloud.filestore.v1.FileShareConfig.getDefaultInstance());
+    public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilder(int index) {
+      return getFileSharesFieldBuilder()
+          .addBuilder(index, com.google.cloud.filestore.v1.FileShareConfig.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2801,38 +3111,47 @@ public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilde
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public java.util.List 
-         getFileSharesBuilderList() {
+    public java.util.List
+        getFileSharesBuilderList() {
       return getFileSharesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.filestore.v1.FileShareConfig, com.google.cloud.filestore.v1.FileShareConfig.Builder, com.google.cloud.filestore.v1.FileShareConfigOrBuilder> 
+            com.google.cloud.filestore.v1.FileShareConfig,
+            com.google.cloud.filestore.v1.FileShareConfig.Builder,
+            com.google.cloud.filestore.v1.FileShareConfigOrBuilder>
         getFileSharesFieldBuilder() {
       if (fileSharesBuilder_ == null) {
-        fileSharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.FileShareConfig, com.google.cloud.filestore.v1.FileShareConfig.Builder, com.google.cloud.filestore.v1.FileShareConfigOrBuilder>(
-                fileShares_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        fileSharesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.filestore.v1.FileShareConfig,
+                com.google.cloud.filestore.v1.FileShareConfig.Builder,
+                com.google.cloud.filestore.v1.FileShareConfigOrBuilder>(
+                fileShares_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         fileShares_ = null;
       }
       return fileSharesBuilder_;
     }
 
     private java.util.List networks_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureNetworksIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
         networks_ = new java.util.ArrayList(networks_);
         bitField0_ |= 0x00000004;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.filestore.v1.NetworkConfig, com.google.cloud.filestore.v1.NetworkConfig.Builder, com.google.cloud.filestore.v1.NetworkConfigOrBuilder> networksBuilder_;
+            com.google.cloud.filestore.v1.NetworkConfig,
+            com.google.cloud.filestore.v1.NetworkConfig.Builder,
+            com.google.cloud.filestore.v1.NetworkConfigOrBuilder>
+        networksBuilder_;
 
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -2848,6 +3167,8 @@ public java.util.List getNetworksLi
       }
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -2863,6 +3184,8 @@ public int getNetworksCount() {
       }
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -2878,6 +3201,8 @@ public com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -2885,8 +3210,7 @@ public com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index) {
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public Builder setNetworks(
-        int index, com.google.cloud.filestore.v1.NetworkConfig value) {
+    public Builder setNetworks(int index, com.google.cloud.filestore.v1.NetworkConfig value) {
       if (networksBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2900,6 +3224,8 @@ public Builder setNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -2919,6 +3245,8 @@ public Builder setNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -2940,6 +3268,8 @@ public Builder addNetworks(com.google.cloud.filestore.v1.NetworkConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -2947,8 +3277,7 @@ public Builder addNetworks(com.google.cloud.filestore.v1.NetworkConfig value) {
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public Builder addNetworks(
-        int index, com.google.cloud.filestore.v1.NetworkConfig value) {
+    public Builder addNetworks(int index, com.google.cloud.filestore.v1.NetworkConfig value) {
       if (networksBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2962,6 +3291,8 @@ public Builder addNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -2981,6 +3312,8 @@ public Builder addNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3000,6 +3333,8 @@ public Builder addNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3011,8 +3346,7 @@ public Builder addAllNetworks(
         java.lang.Iterable values) {
       if (networksBuilder_ == null) {
         ensureNetworksIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, networks_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_);
         onChanged();
       } else {
         networksBuilder_.addAllMessages(values);
@@ -3020,6 +3354,8 @@ public Builder addAllNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3038,6 +3374,8 @@ public Builder clearNetworks() {
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3056,6 +3394,8 @@ public Builder removeNetworks(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3063,11 +3403,12 @@ public Builder removeNetworks(int index) {
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1.NetworkConfig.Builder getNetworksBuilder(
-        int index) {
+    public com.google.cloud.filestore.v1.NetworkConfig.Builder getNetworksBuilder(int index) {
       return getNetworksFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3075,14 +3416,16 @@ public com.google.cloud.filestore.v1.NetworkConfig.Builder getNetworksBuilder(
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(
-        int index) {
+    public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(int index) {
       if (networksBuilder_ == null) {
-        return networks_.get(index);  } else {
+        return networks_.get(index);
+      } else {
         return networksBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3090,8 +3433,8 @@ public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public java.util.List 
-         getNetworksOrBuilderList() {
+    public java.util.List
+        getNetworksOrBuilderList() {
       if (networksBuilder_ != null) {
         return networksBuilder_.getMessageOrBuilderList();
       } else {
@@ -3099,6 +3442,8 @@ public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder
       }
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3107,10 +3452,12 @@ public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
     public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder() {
-      return getNetworksFieldBuilder().addBuilder(
-          com.google.cloud.filestore.v1.NetworkConfig.getDefaultInstance());
+      return getNetworksFieldBuilder()
+          .addBuilder(com.google.cloud.filestore.v1.NetworkConfig.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3118,12 +3465,13 @@ public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder()
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder(
-        int index) {
-      return getNetworksFieldBuilder().addBuilder(
-          index, com.google.cloud.filestore.v1.NetworkConfig.getDefaultInstance());
+    public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder(int index) {
+      return getNetworksFieldBuilder()
+          .addBuilder(index, com.google.cloud.filestore.v1.NetworkConfig.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3131,20 +3479,23 @@ public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder(
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public java.util.List 
-         getNetworksBuilderList() {
+    public java.util.List
+        getNetworksBuilderList() {
       return getNetworksFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.filestore.v1.NetworkConfig, com.google.cloud.filestore.v1.NetworkConfig.Builder, com.google.cloud.filestore.v1.NetworkConfigOrBuilder> 
+            com.google.cloud.filestore.v1.NetworkConfig,
+            com.google.cloud.filestore.v1.NetworkConfig.Builder,
+            com.google.cloud.filestore.v1.NetworkConfigOrBuilder>
         getNetworksFieldBuilder() {
       if (networksBuilder_ == null) {
-        networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.NetworkConfig, com.google.cloud.filestore.v1.NetworkConfig.Builder, com.google.cloud.filestore.v1.NetworkConfigOrBuilder>(
-                networks_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        networksBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.filestore.v1.NetworkConfig,
+                com.google.cloud.filestore.v1.NetworkConfig.Builder,
+                com.google.cloud.filestore.v1.NetworkConfigOrBuilder>(
+                networks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
         networks_ = null;
       }
       return networksBuilder_;
@@ -3152,19 +3503,21 @@ public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder(
 
     private java.lang.Object etag_ = "";
     /**
+     *
+     *
      * 
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; + * * @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; @@ -3173,21 +3526,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; + * * @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 { @@ -3195,57 +3549,64 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; + * * @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; } /** + * + * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; + * * @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; @@ -3253,39 +3614,58 @@ public Builder setEtagBytes( private com.google.protobuf.BoolValue satisfiesPzs_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> satisfiesPzsBuilder_; + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + satisfiesPzsBuilder_; /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the satisfiesPzs field is set. */ public boolean hasSatisfiesPzs() { return satisfiesPzsBuilder_ != null || satisfiesPzs_ != null; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The satisfiesPzs. */ public com.google.protobuf.BoolValue getSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { - return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; } else { return satisfiesPzsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { @@ -3301,14 +3681,17 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSatisfiesPzs( - com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue) { if (satisfiesPzsBuilder_ == null) { satisfiesPzs_ = builderForValue.build(); onChanged(); @@ -3319,17 +3702,23 @@ public Builder setSatisfiesPzs( return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { if (satisfiesPzs_ != null) { satisfiesPzs_ = - com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_).mergeFrom(value).buildPartial(); + com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_) + .mergeFrom(value) + .buildPartial(); } else { satisfiesPzs_ = value; } @@ -3341,11 +3730,15 @@ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { @@ -3359,55 +3752,71 @@ public Builder clearSatisfiesPzs() { return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder() { - + onChanged(); return getSatisfiesPzsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { if (satisfiesPzsBuilder_ != null) { return satisfiesPzsBuilder_.getMessageOrBuilder(); } else { - return satisfiesPzs_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; } } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> getSatisfiesPzsFieldBuilder() { if (satisfiesPzsBuilder_ == null) { - satisfiesPzsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getSatisfiesPzs(), - getParentForChildren(), - isClean()); + satisfiesPzsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getSatisfiesPzs(), getParentForChildren(), isClean()); satisfiesPzs_ = null; } return satisfiesPzsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3417,12 +3826,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.Instance) private static final com.google.cloud.filestore.v1.Instance DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.Instance(); } @@ -3431,27 +3840,27 @@ public static com.google.cloud.filestore.v1.Instance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3466,6 +3875,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java similarity index 75% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java index 4c3e1d687d05..682790f0963c 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java @@ -1,140 +1,200 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface InstanceOrBuilder extends +public interface InstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.Instance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project}/locations/{location}/instances/{instance}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project}/locations/{location}/instances/{instance}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The instance state.
    * 
* - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The instance state.
    * 
* - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.filestore.v1.Instance.State getState(); /** + * + * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; + * * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** + * + * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; + * * @return The tier. */ com.google.cloud.filestore.v1.Instance.Tier getTier(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -143,30 +203,31 @@ public interface InstanceOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * 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(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -175,22 +236,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); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -198,9 +261,10 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
-  java.util.List 
-      getFileSharesList();
+  java.util.List getFileSharesList();
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -210,6 +274,8 @@ java.lang.String getLabelsOrThrow(
    */
   com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index);
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -219,6 +285,8 @@ java.lang.String getLabelsOrThrow(
    */
   int getFileSharesCount();
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -226,9 +294,11 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
-  java.util.List 
+  java.util.List
       getFileSharesOrBuilderList();
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -236,10 +306,11 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
-  com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(
-      int index);
+  com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -247,9 +318,10 @@ com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(
    *
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
-  java.util.List 
-      getNetworksList();
+  java.util.List getNetworksList();
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -259,6 +331,8 @@ com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(
    */
   com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index);
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -268,6 +342,8 @@ com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(
    */
   int getNetworksCount();
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -275,9 +351,11 @@ com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(
    *
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
-  java.util.List 
+  java.util.List
       getNetworksOrBuilderList();
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -285,55 +363,73 @@ com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(
    *
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
-  com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(
-      int index);
+  com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the satisfiesPzs field is set. */ boolean hasSatisfiesPzs(); /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The satisfiesPzs. */ com.google.protobuf.BoolValue getSatisfiesPzs(); /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); } diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java similarity index 70% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java index 099ba28c64da..e6f3f2a52b56 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * ListBackupsRequest lists backups.
  * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.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,32 +46,35 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListBackupsRequest.class, com.google.cloud.filestore.v1.ListBackupsRequest.Builder.class); + com.google.cloud.filestore.v1.ListBackupsRequest.class, + com.google.cloud.filestore.v1.ListBackupsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project and location for which to retrieve backup
    * information, in the format
@@ -63,7 +84,10 @@ protected java.lang.Object newInstance(
    * `{location}` value.
    * 
* - * string parent = 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 @@ -72,14 +96,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project and location for which to retrieve backup
    * information, in the format
@@ -89,17 +114,18 @@ public java.lang.String getParent() {
    * `{location}` value.
    * 
* - * string parent = 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 { @@ -110,11 +136,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -125,12 +154,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -139,30 +171,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * 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 { @@ -173,11 +205,14 @@ public java.lang.String getPageToken() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The orderBy. */ @java.lang.Override @@ -186,29 +221,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; } } /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @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 { @@ -219,11 +254,14 @@ public java.lang.String getOrderBy() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -232,29 +270,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; } } /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @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 { @@ -263,6 +301,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +313,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -304,8 +342,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_); @@ -324,23 +361,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.ListBackupsRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.ListBackupsRequest other = (com.google.cloud.filestore.v1.ListBackupsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.filestore.v1.ListBackupsRequest other = + (com.google.cloud.filestore.v1.ListBackupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -367,130 +400,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.ListBackupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.ListBackupsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.ListBackupsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.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.filestore.v1.ListBackupsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.ListBackupsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.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; } /** + * + * *
    * ListBackupsRequest lists backups.
    * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.v1.ListBackupsRequest) com.google.cloud.filestore.v1.ListBackupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListBackupsRequest.class, com.google.cloud.filestore.v1.ListBackupsRequest.Builder.class); + com.google.cloud.filestore.v1.ListBackupsRequest.class, + com.google.cloud.filestore.v1.ListBackupsRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.ListBackupsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -508,9 +547,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; } @java.lang.Override @@ -529,7 +568,8 @@ public com.google.cloud.filestore.v1.ListBackupsRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.ListBackupsRequest buildPartial() { - com.google.cloud.filestore.v1.ListBackupsRequest result = new com.google.cloud.filestore.v1.ListBackupsRequest(this); + com.google.cloud.filestore.v1.ListBackupsRequest result = + new com.google.cloud.filestore.v1.ListBackupsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -543,38 +583,39 @@ public com.google.cloud.filestore.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.filestore.v1.ListBackupsRequest) { - return mergeFrom((com.google.cloud.filestore.v1.ListBackupsRequest)other); + return mergeFrom((com.google.cloud.filestore.v1.ListBackupsRequest) other); } else { super.mergeFrom(other); return this; @@ -582,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.ListBackupsRequest other) { - if (other == com.google.cloud.filestore.v1.ListBackupsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1.ListBackupsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -628,37 +670,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -671,6 +719,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location for which to retrieve backup
      * information, in the format
@@ -680,14 +730,16 @@ public Builder mergeFrom(
      * `{location}` value.
      * 
* - * string parent = 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; @@ -696,6 +748,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location for which to retrieve backup
      * information, in the format
@@ -705,16 +759,17 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * string parent = 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,6 +777,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location for which to retrieve backup
      * information, in the format
@@ -731,21 +788,25 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * 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 project and location for which to retrieve backup
      * information, in the format
@@ -755,16 +816,21 @@ public Builder setParent(
      * `{location}` value.
      * 
* - * string 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 project and location for which to retrieve backup
      * information, in the format
@@ -774,29 +840,34 @@ public Builder clearParent() {
      * `{location}` value.
      * 
* - * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -804,30 +875,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -835,19 +912,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -856,21 +935,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 { @@ -878,57 +958,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -936,18 +1023,20 @@ public Builder setPageTokenBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; @@ -956,20 +1045,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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 { @@ -977,54 +1067,61 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; @@ -1032,18 +1129,20 @@ public Builder setOrderByBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; @@ -1052,20 +1151,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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 { @@ -1073,61 +1173,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1137,12 +1244,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.ListBackupsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.ListBackupsRequest) private static final com.google.cloud.filestore.v1.ListBackupsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.ListBackupsRequest(); } @@ -1151,27 +1258,27 @@ public static com.google.cloud.filestore.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1186,6 +1293,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.ListBackupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java index 72f91001877b..06e25d2cc28a 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface ListBackupsRequestOrBuilder extends +public interface ListBackupsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.ListBackupsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and location for which to retrieve backup
    * information, in the format
@@ -17,11 +35,16 @@ public interface ListBackupsRequestOrBuilder extends
    * `{location}` value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project and location for which to retrieve backup
    * information, in the format
@@ -31,81 +54,101 @@ public interface ListBackupsRequestOrBuilder extends
    * `{location}` value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java similarity index 77% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java index 2903d1d3f3a9..f9f286a172d3 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * ListBackupsResponse is the result of ListBackupsRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.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_ = ""; @@ -27,32 +45,35 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListBackupsResponse.class, com.google.cloud.filestore.v1.ListBackupsResponse.Builder.class); + com.google.cloud.filestore.v1.ListBackupsResponse.class, + com.google.cloud.filestore.v1.ListBackupsResponse.Builder.class); } public static final int BACKUPS_FIELD_NUMBER = 1; private java.util.List backups_; /** + * + * *
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -69,6 +90,8 @@ public java.util.List getBackupsList() {
     return backups_;
   }
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -81,11 +104,13 @@ public java.util.List getBackupsList() {
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getBackupsOrBuilderList() {
     return backups_;
   }
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -102,6 +127,8 @@ public int getBackupsCount() {
     return backups_.size();
   }
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -118,6 +145,8 @@ public com.google.cloud.filestore.v1.Backup getBackups(int index) {
     return backups_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -130,20 +159,22 @@ public com.google.cloud.filestore.v1.Backup getBackups(int index) {
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(
-      int index) {
+  public com.google.cloud.filestore.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_;
   /**
+   *
+   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -152,30 +183,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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 { @@ -186,34 +217,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. */ @@ -221,20 +260,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; @@ -246,8 +288,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -267,8 +308,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_); @@ -289,19 +329,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.filestore.v1.ListBackupsResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1.ListBackupsResponse other = (com.google.cloud.filestore.v1.ListBackupsResponse) obj; + com.google.cloud.filestore.v1.ListBackupsResponse other = + (com.google.cloud.filestore.v1.ListBackupsResponse) obj; - if (!getBackupsList() - .equals(other.getBackupsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getBackupsList().equals(other.getBackupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -329,129 +367,135 @@ public int hashCode() { } public static com.google.cloud.filestore.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.filestore.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.filestore.v1.ListBackupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.ListBackupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.ListBackupsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.ListBackupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.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.filestore.v1.ListBackupsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.ListBackupsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.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; } /** + * + * *
    * ListBackupsResponse is the result of ListBackupsRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.v1.ListBackupsResponse) com.google.cloud.filestore.v1.ListBackupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListBackupsResponse.class, com.google.cloud.filestore.v1.ListBackupsResponse.Builder.class); + com.google.cloud.filestore.v1.ListBackupsResponse.class, + com.google.cloud.filestore.v1.ListBackupsResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1.ListBackupsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -470,9 +514,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; } @java.lang.Override @@ -491,7 +535,8 @@ public com.google.cloud.filestore.v1.ListBackupsResponse build() { @java.lang.Override public com.google.cloud.filestore.v1.ListBackupsResponse buildPartial() { - com.google.cloud.filestore.v1.ListBackupsResponse result = new com.google.cloud.filestore.v1.ListBackupsResponse(this); + com.google.cloud.filestore.v1.ListBackupsResponse result = + new com.google.cloud.filestore.v1.ListBackupsResponse(this); int from_bitField0_ = bitField0_; if (backupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -516,38 +561,39 @@ public com.google.cloud.filestore.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.filestore.v1.ListBackupsResponse) { - return mergeFrom((com.google.cloud.filestore.v1.ListBackupsResponse)other); + return mergeFrom((com.google.cloud.filestore.v1.ListBackupsResponse) other); } else { super.mergeFrom(other); return this; @@ -555,7 +601,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.ListBackupsResponse other) { - if (other == com.google.cloud.filestore.v1.ListBackupsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1.ListBackupsResponse.getDefaultInstance()) + return this; if (backupsBuilder_ == null) { if (!other.backups_.isEmpty()) { if (backups_.isEmpty()) { @@ -574,9 +621,10 @@ public Builder mergeFrom(com.google.cloud.filestore.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_); } @@ -622,36 +670,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.filestore.v1.Backup m = - input.readMessage( - com.google.cloud.filestore.v1.Backup.parser(), - extensionRegistry); - if (backupsBuilder_ == null) { - ensureBackupsIsMutable(); - backups_.add(m); - } else { - backupsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.filestore.v1.Backup m = + input.readMessage( + com.google.cloud.filestore.v1.Backup.parser(), extensionRegistry); + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(m); + } else { + backupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -661,21 +712,28 @@ public Builder mergeFrom( } // finally 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.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> backupsBuilder_; + com.google.cloud.filestore.v1.Backup, + com.google.cloud.filestore.v1.Backup.Builder, + com.google.cloud.filestore.v1.BackupOrBuilder> + backupsBuilder_; /** + * + * *
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -695,6 +753,8 @@ public java.util.List getBackupsList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -714,6 +774,8 @@ public int getBackupsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -733,6 +795,8 @@ public com.google.cloud.filestore.v1.Backup getBackups(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -744,8 +808,7 @@ public com.google.cloud.filestore.v1.Backup getBackups(int index) {
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public Builder setBackups(
-        int index, com.google.cloud.filestore.v1.Backup value) {
+    public Builder setBackups(int index, com.google.cloud.filestore.v1.Backup value) {
       if (backupsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -759,6 +822,8 @@ public Builder setBackups(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -782,6 +847,8 @@ public Builder setBackups(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -807,6 +874,8 @@ public Builder addBackups(com.google.cloud.filestore.v1.Backup value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -818,8 +887,7 @@ public Builder addBackups(com.google.cloud.filestore.v1.Backup value) {
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public Builder addBackups(
-        int index, com.google.cloud.filestore.v1.Backup value) {
+    public Builder addBackups(int index, com.google.cloud.filestore.v1.Backup value) {
       if (backupsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -833,6 +901,8 @@ public Builder addBackups(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -844,8 +914,7 @@ public Builder addBackups(
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public Builder addBackups(
-        com.google.cloud.filestore.v1.Backup.Builder builderForValue) {
+    public Builder addBackups(com.google.cloud.filestore.v1.Backup.Builder builderForValue) {
       if (backupsBuilder_ == null) {
         ensureBackupsIsMutable();
         backups_.add(builderForValue.build());
@@ -856,6 +925,8 @@ public Builder addBackups(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -879,6 +950,8 @@ public Builder addBackups(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -894,8 +967,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);
@@ -903,6 +975,8 @@ public Builder addAllBackups(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -925,6 +999,8 @@ public Builder clearBackups() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -947,6 +1023,8 @@ public Builder removeBackups(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -958,11 +1036,12 @@ public Builder removeBackups(int index) {
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1.Backup.Builder getBackupsBuilder(
-        int index) {
+    public com.google.cloud.filestore.v1.Backup.Builder getBackupsBuilder(int index) {
       return getBackupsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -974,14 +1053,16 @@ public com.google.cloud.filestore.v1.Backup.Builder getBackupsBuilder(
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(
-        int index) {
+    public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(int index) {
       if (backupsBuilder_ == null) {
-        return backups_.get(index);  } else {
+        return backups_.get(index);
+      } else {
         return backupsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -993,8 +1074,8 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public java.util.List 
-         getBackupsOrBuilderList() {
+    public java.util.List
+        getBackupsOrBuilderList() {
       if (backupsBuilder_ != null) {
         return backupsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1002,6 +1083,8 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1014,10 +1097,12 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
     public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder() {
-      return getBackupsFieldBuilder().addBuilder(
-          com.google.cloud.filestore.v1.Backup.getDefaultInstance());
+      return getBackupsFieldBuilder()
+          .addBuilder(com.google.cloud.filestore.v1.Backup.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1029,12 +1114,13 @@ public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder() {
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder(
-        int index) {
-      return getBackupsFieldBuilder().addBuilder(
-          index, com.google.cloud.filestore.v1.Backup.getDefaultInstance());
+    public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder(int index) {
+      return getBackupsFieldBuilder()
+          .addBuilder(index, com.google.cloud.filestore.v1.Backup.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1046,20 +1132,22 @@ public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder(
      *
      * repeated .google.cloud.filestore.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.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> 
+            com.google.cloud.filestore.v1.Backup,
+            com.google.cloud.filestore.v1.Backup.Builder,
+            com.google.cloud.filestore.v1.BackupOrBuilder>
         getBackupsFieldBuilder() {
       if (backupsBuilder_ == null) {
-        backupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder>(
-                backups_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        backupsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.filestore.v1.Backup,
+                com.google.cloud.filestore.v1.Backup.Builder,
+                com.google.cloud.filestore.v1.BackupOrBuilder>(
+                backups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         backups_ = null;
       }
       return backupsBuilder_;
@@ -1067,19 +1155,21 @@ public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder(
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; @@ -1088,21 +1178,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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 { @@ -1110,98 +1201,115 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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. */ @@ -1209,80 +1317,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() { @@ -1292,28 +1410,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); } @@ -1323,12 +1443,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.ListBackupsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.ListBackupsResponse) private static final com.google.cloud.filestore.v1.ListBackupsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.ListBackupsResponse(); } @@ -1337,27 +1457,27 @@ public static com.google.cloud.filestore.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1372,6 +1492,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.ListBackupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java similarity index 80% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java index f36e32588b7e..20008825cbba 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface ListBackupsResponseOrBuilder extends +public interface ListBackupsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.ListBackupsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -19,9 +37,10 @@ public interface ListBackupsResponseOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
-  java.util.List 
-      getBackupsList();
+  java.util.List getBackupsList();
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -35,6 +54,8 @@ public interface ListBackupsResponseOrBuilder extends
    */
   com.google.cloud.filestore.v1.Backup getBackups(int index);
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -48,6 +69,8 @@ public interface ListBackupsResponseOrBuilder extends
    */
   int getBackupsCount();
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -59,9 +82,10 @@ public interface ListBackupsResponseOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
-  java.util.List 
-      getBackupsOrBuilderList();
+  java.util.List getBackupsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -73,69 +97,83 @@ public interface ListBackupsResponseOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
-  com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(
-      int index);
+  com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java similarity index 70% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java index 9585af3d442e..5d12002417cd 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * ListInstancesRequest lists instances.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.ListInstancesRequest} */ -public final class ListInstancesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.ListInstancesRequest) ListInstancesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,32 +46,35 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListInstancesRequest.class, com.google.cloud.filestore.v1.ListInstancesRequest.Builder.class); + com.google.cloud.filestore.v1.ListInstancesRequest.class, + com.google.cloud.filestore.v1.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project and location for which to retrieve instance
    * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -62,7 +83,10 @@ protected java.lang.Object newInstance(
    * `{location}` value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -71,14 +95,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project and location for which to retrieve instance
    * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -87,17 +112,18 @@ public java.lang.String getParent() {
    * `{location}` value.
    * 
* - * string parent = 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 { @@ -108,11 +134,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -123,12 +152,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -137,30 +169,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * 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 { @@ -171,11 +203,14 @@ public java.lang.String getPageToken() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The orderBy. */ @java.lang.Override @@ -184,29 +219,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; } } /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @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 { @@ -217,11 +252,14 @@ public java.lang.String getOrderBy() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -230,29 +268,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; } } /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @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 { @@ -261,6 +299,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,8 +311,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -302,8 +340,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_); @@ -322,23 +359,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.filestore.v1.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.ListInstancesRequest other = (com.google.cloud.filestore.v1.ListInstancesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.filestore.v1.ListInstancesRequest other = + (com.google.cloud.filestore.v1.ListInstancesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -366,129 +399,135 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( - java.nio.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.filestore.v1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.ListInstancesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ListInstancesRequest lists instances.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.ListInstancesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.ListInstancesRequest) com.google.cloud.filestore.v1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListInstancesRequest.class, com.google.cloud.filestore.v1.ListInstancesRequest.Builder.class); + com.google.cloud.filestore.v1.ListInstancesRequest.class, + com.google.cloud.filestore.v1.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.ListInstancesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -506,9 +545,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -527,7 +566,8 @@ public com.google.cloud.filestore.v1.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.ListInstancesRequest buildPartial() { - com.google.cloud.filestore.v1.ListInstancesRequest result = new com.google.cloud.filestore.v1.ListInstancesRequest(this); + com.google.cloud.filestore.v1.ListInstancesRequest result = + new com.google.cloud.filestore.v1.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -541,38 +581,39 @@ public com.google.cloud.filestore.v1.ListInstancesRequest 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.filestore.v1.ListInstancesRequest) { - return mergeFrom((com.google.cloud.filestore.v1.ListInstancesRequest)other); + return mergeFrom((com.google.cloud.filestore.v1.ListInstancesRequest) other); } else { super.mergeFrom(other); return this; @@ -580,7 +621,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.ListInstancesRequest other) { - if (other == com.google.cloud.filestore.v1.ListInstancesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1.ListInstancesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -626,37 +668,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -669,6 +717,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -677,14 +727,16 @@ public Builder mergeFrom(
      * `{location}` value.
      * 
* - * string parent = 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; @@ -693,6 +745,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -701,16 +755,17 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * string parent = 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 { @@ -718,6 +773,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -726,21 +783,25 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * 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 project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -749,16 +810,21 @@ public Builder setParent(
      * `{location}` value.
      * 
* - * string 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 project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -767,29 +833,34 @@ public Builder clearParent() {
      * `{location}` value.
      * 
* - * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -797,30 +868,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -828,19 +905,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -849,21 +928,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 { @@ -871,57 +951,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -929,18 +1016,20 @@ public Builder setPageTokenBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; @@ -949,20 +1038,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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 { @@ -970,54 +1060,61 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; @@ -1025,18 +1122,20 @@ public Builder setOrderByBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; @@ -1045,20 +1144,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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 { @@ -1066,61 +1166,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1130,12 +1237,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.ListInstancesRequest) private static final com.google.cloud.filestore.v1.ListInstancesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.ListInstancesRequest(); } @@ -1144,27 +1251,27 @@ public static com.google.cloud.filestore.v1.ListInstancesRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1179,6 +1286,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java index 3db0ab0718c8..b58fed45ebb2 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface ListInstancesRequestOrBuilder extends +public interface ListInstancesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and location for which to retrieve instance
    * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -16,11 +34,16 @@ public interface ListInstancesRequestOrBuilder extends
    * `{location}` value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project and location for which to retrieve instance
    * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -29,81 +52,101 @@ public interface ListInstancesRequestOrBuilder extends
    * `{location}` value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java similarity index 77% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java index bc871f7dd1ec..6630f341b4a9 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * ListInstancesResponse is the result of ListInstancesRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.ListInstancesResponse} */ -public final class ListInstancesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.ListInstancesResponse) ListInstancesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListInstancesResponse.class, com.google.cloud.filestore.v1.ListInstancesResponse.Builder.class); + com.google.cloud.filestore.v1.ListInstancesResponse.class, + com.google.cloud.filestore.v1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** + * + * *
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -68,6 +89,8 @@ public java.util.List getInstancesList()
     return instances_;
   }
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -79,11 +102,13 @@ public java.util.List getInstancesList()
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getInstancesOrBuilderList() {
     return instances_;
   }
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -99,6 +124,8 @@ public int getInstancesCount() {
     return instances_.size();
   }
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -114,6 +141,8 @@ public com.google.cloud.filestore.v1.Instance getInstances(int index) {
     return instances_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -125,20 +154,22 @@ public com.google.cloud.filestore.v1.Instance getInstances(int index) {
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(
-      int index) {
+  public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int index) {
     return instances_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
+   *
+   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -147,30 +178,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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 { @@ -181,34 +212,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. */ @@ -216,20 +255,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; @@ -241,8 +283,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -262,8 +303,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -284,19 +324,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.filestore.v1.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1.ListInstancesResponse other = (com.google.cloud.filestore.v1.ListInstancesResponse) obj; + com.google.cloud.filestore.v1.ListInstancesResponse other = + (com.google.cloud.filestore.v1.ListInstancesResponse) obj; - if (!getInstancesList() - .equals(other.getInstancesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getInstancesList().equals(other.getInstancesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,129 +362,135 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( - java.nio.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.filestore.v1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.ListInstancesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ListInstancesResponse is the result of ListInstancesRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.ListInstancesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.ListInstancesResponse) com.google.cloud.filestore.v1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListInstancesResponse.class, com.google.cloud.filestore.v1.ListInstancesResponse.Builder.class); + com.google.cloud.filestore.v1.ListInstancesResponse.class, + com.google.cloud.filestore.v1.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1.ListInstancesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -465,9 +509,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -486,7 +530,8 @@ public com.google.cloud.filestore.v1.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.filestore.v1.ListInstancesResponse buildPartial() { - com.google.cloud.filestore.v1.ListInstancesResponse result = new com.google.cloud.filestore.v1.ListInstancesResponse(this); + com.google.cloud.filestore.v1.ListInstancesResponse result = + new com.google.cloud.filestore.v1.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -511,38 +556,39 @@ public com.google.cloud.filestore.v1.ListInstancesResponse 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.filestore.v1.ListInstancesResponse) { - return mergeFrom((com.google.cloud.filestore.v1.ListInstancesResponse)other); + return mergeFrom((com.google.cloud.filestore.v1.ListInstancesResponse) other); } else { super.mergeFrom(other); return this; @@ -550,7 +596,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.ListInstancesResponse other) { - if (other == com.google.cloud.filestore.v1.ListInstancesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1.ListInstancesResponse.getDefaultInstance()) + return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -569,9 +616,10 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.ListInstancesResponse oth instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInstancesFieldBuilder() : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -617,36 +665,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.filestore.v1.Instance m = - input.readMessage( - com.google.cloud.filestore.v1.Instance.parser(), - extensionRegistry); - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.add(m); - } else { - instancesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.filestore.v1.Instance m = + input.readMessage( + com.google.cloud.filestore.v1.Instance.parser(), extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -656,21 +707,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> instancesBuilder_; + com.google.cloud.filestore.v1.Instance, + com.google.cloud.filestore.v1.Instance.Builder, + com.google.cloud.filestore.v1.InstanceOrBuilder> + instancesBuilder_; /** + * + * *
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -689,6 +747,8 @@ public java.util.List getInstancesList()
       }
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -707,6 +767,8 @@ public int getInstancesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -725,6 +787,8 @@ public com.google.cloud.filestore.v1.Instance getInstances(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -735,8 +799,7 @@ public com.google.cloud.filestore.v1.Instance getInstances(int index) {
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public Builder setInstances(
-        int index, com.google.cloud.filestore.v1.Instance value) {
+    public Builder setInstances(int index, com.google.cloud.filestore.v1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -750,6 +813,8 @@ public Builder setInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -772,6 +837,8 @@ public Builder setInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -796,6 +863,8 @@ public Builder addInstances(com.google.cloud.filestore.v1.Instance value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -806,8 +875,7 @@ public Builder addInstances(com.google.cloud.filestore.v1.Instance value) {
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public Builder addInstances(
-        int index, com.google.cloud.filestore.v1.Instance value) {
+    public Builder addInstances(int index, com.google.cloud.filestore.v1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -821,6 +889,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -831,8 +901,7 @@ public Builder addInstances(
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public Builder addInstances(
-        com.google.cloud.filestore.v1.Instance.Builder builderForValue) {
+    public Builder addInstances(com.google.cloud.filestore.v1.Instance.Builder builderForValue) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
         instances_.add(builderForValue.build());
@@ -843,6 +912,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -865,6 +936,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -879,8 +952,7 @@ public Builder addAllInstances(
         java.lang.Iterable values) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, instances_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_);
         onChanged();
       } else {
         instancesBuilder_.addAllMessages(values);
@@ -888,6 +960,8 @@ public Builder addAllInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -909,6 +983,8 @@ public Builder clearInstances() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -930,6 +1006,8 @@ public Builder removeInstances(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -940,11 +1018,12 @@ public Builder removeInstances(int index) {
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1.Instance.Builder getInstancesBuilder(
-        int index) {
+    public com.google.cloud.filestore.v1.Instance.Builder getInstancesBuilder(int index) {
       return getInstancesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -955,14 +1034,16 @@ public com.google.cloud.filestore.v1.Instance.Builder getInstancesBuilder(
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(
-        int index) {
+    public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int index) {
       if (instancesBuilder_ == null) {
-        return instances_.get(index);  } else {
+        return instances_.get(index);
+      } else {
         return instancesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -973,8 +1054,8 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public java.util.List 
-         getInstancesOrBuilderList() {
+    public java.util.List
+        getInstancesOrBuilderList() {
       if (instancesBuilder_ != null) {
         return instancesBuilder_.getMessageOrBuilderList();
       } else {
@@ -982,6 +1063,8 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -993,10 +1076,12 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
     public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder() {
-      return getInstancesFieldBuilder().addBuilder(
-          com.google.cloud.filestore.v1.Instance.getDefaultInstance());
+      return getInstancesFieldBuilder()
+          .addBuilder(com.google.cloud.filestore.v1.Instance.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1007,12 +1092,13 @@ public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder() {
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder(
-        int index) {
-      return getInstancesFieldBuilder().addBuilder(
-          index, com.google.cloud.filestore.v1.Instance.getDefaultInstance());
+    public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder(int index) {
+      return getInstancesFieldBuilder()
+          .addBuilder(index, com.google.cloud.filestore.v1.Instance.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1023,20 +1109,23 @@ public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder(
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public java.util.List 
-         getInstancesBuilderList() {
+    public java.util.List
+        getInstancesBuilderList() {
       return getInstancesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> 
+            com.google.cloud.filestore.v1.Instance,
+            com.google.cloud.filestore.v1.Instance.Builder,
+            com.google.cloud.filestore.v1.InstanceOrBuilder>
         getInstancesFieldBuilder() {
       if (instancesBuilder_ == null) {
-        instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder>(
-                instances_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        instancesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.filestore.v1.Instance,
+                com.google.cloud.filestore.v1.Instance.Builder,
+                com.google.cloud.filestore.v1.InstanceOrBuilder>(
+                instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         instances_ = null;
       }
       return instancesBuilder_;
@@ -1044,19 +1133,21 @@ public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder(
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; @@ -1065,21 +1156,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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 { @@ -1087,98 +1179,115 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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. */ @@ -1186,80 +1295,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() { @@ -1269,28 +1388,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); } @@ -1300,12 +1421,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.ListInstancesResponse) private static final com.google.cloud.filestore.v1.ListInstancesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.ListInstancesResponse(); } @@ -1314,27 +1435,27 @@ public static com.google.cloud.filestore.v1.ListInstancesResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1349,6 +1470,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java similarity index 80% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java index 6c3648858539..cea59d133b7e 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface ListInstancesResponseOrBuilder extends +public interface ListInstancesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -18,9 +36,10 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
-  java.util.List 
-      getInstancesList();
+  java.util.List getInstancesList();
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -33,6 +52,8 @@ public interface ListInstancesResponseOrBuilder extends
    */
   com.google.cloud.filestore.v1.Instance getInstances(int index);
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -45,6 +66,8 @@ public interface ListInstancesResponseOrBuilder extends
    */
   int getInstancesCount();
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -55,9 +78,11 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
-  java.util.List 
+  java.util.List
       getInstancesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -68,69 +93,83 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
-  com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(
-      int index);
+  com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java similarity index 77% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java index 507da6f90f16..cdf8e24568e4 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * Network configuration for the instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.NetworkConfig} */ -public final class NetworkConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.NetworkConfig) NetworkConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkConfig.newBuilder() to construct. private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NetworkConfig() { network_ = ""; modes_ = java.util.Collections.emptyList(); @@ -28,39 +46,43 @@ private NetworkConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetworkConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.NetworkConfig.class, com.google.cloud.filestore.v1.NetworkConfig.Builder.class); + com.google.cloud.filestore.v1.NetworkConfig.class, + com.google.cloud.filestore.v1.NetworkConfig.Builder.class); } /** + * + * *
    * Internet protocol versions supported by Cloud Filestore.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.NetworkConfig.AddressMode} */ - public enum AddressMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Internet protocol not set.
      * 
@@ -69,6 +91,8 @@ public enum AddressMode */ ADDRESS_MODE_UNSPECIFIED(0), /** + * + * *
      * Use the IPv4 internet protocol.
      * 
@@ -80,6 +104,8 @@ public enum AddressMode ; /** + * + * *
      * Internet protocol not set.
      * 
@@ -88,6 +114,8 @@ public enum AddressMode */ public static final int ADDRESS_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Use the IPv4 internet protocol.
      * 
@@ -96,7 +124,6 @@ public enum AddressMode */ public static final int MODE_IPV4_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -121,48 +148,47 @@ public static AddressMode valueOf(int value) { */ public static AddressMode forNumber(int value) { switch (value) { - case 0: return ADDRESS_MODE_UNSPECIFIED; - case 1: return MODE_IPV4; - default: return null; + case 0: + return ADDRESS_MODE_UNSPECIFIED; + case 1: + return MODE_IPV4; + 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< - AddressMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AddressMode findValueByNumber(int number) { - return AddressMode.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 AddressMode findValueByNumber(int number) { + return AddressMode.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.filestore.v1.NetworkConfig.getDescriptor().getEnumTypes().get(0); } private static final AddressMode[] VALUES = values(); - public static AddressMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AddressMode 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; @@ -182,6 +208,8 @@ private AddressMode(int value) { public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** + * + * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -189,6 +217,7 @@ private AddressMode(int value) {
    * 
* * string network = 1; + * * @return The network. */ @java.lang.Override @@ -197,14 +226,15 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -212,16 +242,15 @@ public java.lang.String getNetwork() {
    * 
* * string network = 1; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -232,36 +261,48 @@ public java.lang.String getNetwork() { public static final int MODES_FIELD_NUMBER = 3; private java.util.List modes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode> modes_converter_ = + java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode> + modes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>() { - public com.google.cloud.filestore.v1.NetworkConfig.AddressMode convert(java.lang.Integer from) { + public com.google.cloud.filestore.v1.NetworkConfig.AddressMode convert( + java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NetworkConfig.AddressMode result = com.google.cloud.filestore.v1.NetworkConfig.AddressMode.valueOf(from); - return result == null ? com.google.cloud.filestore.v1.NetworkConfig.AddressMode.UNRECOGNIZED : result; + com.google.cloud.filestore.v1.NetworkConfig.AddressMode result = + com.google.cloud.filestore.v1.NetworkConfig.AddressMode.valueOf(from); + return result == null + ? com.google.cloud.filestore.v1.NetworkConfig.AddressMode.UNRECOGNIZED + : result; } }; /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @return A list containing the modes. */ @java.lang.Override public java.util.List getModesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>(modes_, modes_converter_); + java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>( + modes_, modes_converter_); } /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @return The count of modes. */ @java.lang.Override @@ -269,12 +310,15 @@ public int getModesCount() { return modes_.size(); } /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @param index The index of the element to return. * @return The modes at the given index. */ @@ -283,26 +327,31 @@ public com.google.cloud.filestore.v1.NetworkConfig.AddressMode getModes(int inde return modes_converter_.convert(modes_.get(index)); } /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @return A list containing the enum numeric values on the wire for modes. */ @java.lang.Override - public java.util.List - getModesValueList() { + public java.util.List getModesValueList() { return modes_; } /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ @@ -310,11 +359,14 @@ public com.google.cloud.filestore.v1.NetworkConfig.AddressMode getModes(int inde public int getModesValue(int index) { return modes_.get(index); } + private int modesMemoizedSerializedSize; public static final int RESERVED_IP_RANGE_FIELD_NUMBER = 4; private volatile java.lang.Object reservedIpRange_; /** + * + * *
    * A /29 CIDR block in one of the
    * [internal IP address
@@ -326,6 +378,7 @@ public int getModesValue(int index) {
    * 
* * string reserved_ip_range = 4; + * * @return The reservedIpRange. */ @java.lang.Override @@ -334,14 +387,15 @@ public java.lang.String getReservedIpRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; } } /** + * + * *
    * A /29 CIDR block in one of the
    * [internal IP address
@@ -353,16 +407,15 @@ public java.lang.String getReservedIpRange() {
    * 
* * string reserved_ip_range = 4; + * * @return The bytes for reservedIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString - getReservedIpRangeBytes() { + public com.google.protobuf.ByteString getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -373,6 +426,8 @@ public java.lang.String getReservedIpRange() { public static final int IP_ADDRESSES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList ipAddresses_; /** + * + * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -381,13 +436,15 @@ public java.lang.String getReservedIpRange() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList - getIpAddressesList() { + public com.google.protobuf.ProtocolStringList getIpAddressesList() { return ipAddresses_; } /** + * + * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -396,12 +453,15 @@ public java.lang.String getReservedIpRange() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** + * + * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -410,6 +470,7 @@ public int getIpAddressesCount() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -417,6 +478,8 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** + * + * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -425,15 +488,16 @@ public java.lang.String getIpAddresses(int index) {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString - getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -445,8 +509,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); @@ -479,14 +542,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < modes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(modes_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(modes_.get(i)); } size += dataSize; - if (!getModesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }modesMemoizedSerializedSize = dataSize; + if (!getModesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + modesMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservedIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reservedIpRange_); @@ -507,20 +570,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.NetworkConfig)) { return super.equals(obj); } - com.google.cloud.filestore.v1.NetworkConfig other = (com.google.cloud.filestore.v1.NetworkConfig) obj; + com.google.cloud.filestore.v1.NetworkConfig other = + (com.google.cloud.filestore.v1.NetworkConfig) obj; - if (!getNetwork() - .equals(other.getNetwork())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; if (!modes_.equals(other.modes_)) return false; - if (!getReservedIpRange() - .equals(other.getReservedIpRange())) return false; - if (!getIpAddressesList() - .equals(other.getIpAddressesList())) return false; + if (!getReservedIpRange().equals(other.getReservedIpRange())) return false; + if (!getIpAddressesList().equals(other.getIpAddressesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -549,130 +610,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.NetworkConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.NetworkConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.NetworkConfig parseFrom(java.io.InputStream input) 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.filestore.v1.NetworkConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.NetworkConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.NetworkConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.NetworkConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.NetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1.NetworkConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Network configuration for the instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.NetworkConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.NetworkConfig) com.google.cloud.filestore.v1.NetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.NetworkConfig.class, com.google.cloud.filestore.v1.NetworkConfig.Builder.class); + com.google.cloud.filestore.v1.NetworkConfig.class, + com.google.cloud.filestore.v1.NetworkConfig.Builder.class); } // Construct using com.google.cloud.filestore.v1.NetworkConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -688,9 +755,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; } @java.lang.Override @@ -709,7 +776,8 @@ public com.google.cloud.filestore.v1.NetworkConfig build() { @java.lang.Override public com.google.cloud.filestore.v1.NetworkConfig buildPartial() { - com.google.cloud.filestore.v1.NetworkConfig result = new com.google.cloud.filestore.v1.NetworkConfig(this); + com.google.cloud.filestore.v1.NetworkConfig result = + new com.google.cloud.filestore.v1.NetworkConfig(this); int from_bitField0_ = bitField0_; result.network_ = network_; if (((bitField0_ & 0x00000001) != 0)) { @@ -731,38 +799,39 @@ public com.google.cloud.filestore.v1.NetworkConfig 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.filestore.v1.NetworkConfig) { - return mergeFrom((com.google.cloud.filestore.v1.NetworkConfig)other); + return mergeFrom((com.google.cloud.filestore.v1.NetworkConfig) other); } else { super.mergeFrom(other); return this; @@ -825,45 +894,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - network_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 24: { - int tmpRaw = input.readEnum(); - ensureModesIsMutable(); - modes_.add(tmpRaw); - break; - } // case 24 - case 26: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 10: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 24: + { int tmpRaw = input.readEnum(); ensureModesIsMutable(); modes_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 34: { - reservedIpRange_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpAddressesIsMutable(); - ipAddresses_.add(s); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureModesIsMutable(); + modes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 26 + case 34: + { + reservedIpRange_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIpAddressesIsMutable(); + ipAddresses_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -873,10 +948,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object network_ = ""; /** + * + * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -884,13 +962,13 @@ public Builder mergeFrom(
      * 
* * string network = 1; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -899,6 +977,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -906,15 +986,14 @@ public java.lang.String getNetwork() {
      * 
* * string network = 1; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -922,6 +1001,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -929,20 +1010,22 @@ public java.lang.String getNetwork() {
      * 
* * string network = 1; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -950,15 +1033,18 @@ public Builder setNetwork(
      * 
* * string network = 1; + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -966,23 +1052,23 @@ public Builder clearNetwork() {
      * 
* * string network = 1; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; } - private java.util.List modes_ = - java.util.Collections.emptyList(); + private java.util.List modes_ = java.util.Collections.emptyList(); + private void ensureModesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { modes_ = new java.util.ArrayList(modes_); @@ -990,37 +1076,47 @@ private void ensureModesIsMutable() { } } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @return A list containing the modes. */ public java.util.List getModesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>(modes_, modes_converter_); + java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>( + modes_, modes_converter_); } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @return The count of modes. */ public int getModesCount() { return modes_.size(); } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @param index The index of the element to return. * @return The modes at the given index. */ @@ -1028,12 +1124,15 @@ public com.google.cloud.filestore.v1.NetworkConfig.AddressMode getModes(int inde return modes_converter_.convert(modes_.get(index)); } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @param index The index to set the value at. * @param value The modes to set. * @return This builder for chaining. @@ -1049,12 +1148,15 @@ public Builder setModes( return this; } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @param value The modes to add. * @return This builder for chaining. */ @@ -1068,17 +1170,21 @@ public Builder addModes(com.google.cloud.filestore.v1.NetworkConfig.AddressMode return this; } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @param values The modes to add. * @return This builder for chaining. */ public Builder addAllModes( - java.lang.Iterable values) { + java.lang.Iterable + values) { ensureModesIsMutable(); for (com.google.cloud.filestore.v1.NetworkConfig.AddressMode value : values) { modes_.add(value.getNumber()); @@ -1087,12 +1193,15 @@ public Builder addAllModes( return this; } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @return This builder for chaining. */ public Builder clearModes() { @@ -1102,25 +1211,30 @@ public Builder clearModes() { return this; } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @return A list containing the enum numeric values on the wire for modes. */ - public java.util.List - getModesValueList() { + public java.util.List getModesValueList() { return java.util.Collections.unmodifiableList(modes_); } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ @@ -1128,30 +1242,35 @@ public int getModesValue(int index) { return modes_.get(index); } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for modes to set. * @return This builder for chaining. */ - public Builder setModesValue( - int index, int value) { + public Builder setModesValue(int index, int value) { ensureModesIsMutable(); modes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @param value The enum numeric value on the wire for modes to add. * @return This builder for chaining. */ @@ -1162,17 +1281,19 @@ public Builder addModesValue(int value) { return this; } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @param values The enum numeric values on the wire for modes to add. * @return This builder for chaining. */ - public Builder addAllModesValue( - java.lang.Iterable values) { + public Builder addAllModesValue(java.lang.Iterable values) { ensureModesIsMutable(); for (int value : values) { modes_.add(value); @@ -1183,6 +1304,8 @@ public Builder addAllModesValue( private java.lang.Object reservedIpRange_ = ""; /** + * + * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1194,13 +1317,13 @@ public Builder addAllModesValue(
      * 
* * string reserved_ip_range = 4; + * * @return The reservedIpRange. */ public java.lang.String getReservedIpRange() { java.lang.Object ref = reservedIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; @@ -1209,6 +1332,8 @@ public java.lang.String getReservedIpRange() { } } /** + * + * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1220,15 +1345,14 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 4; + * * @return The bytes for reservedIpRange. */ - public com.google.protobuf.ByteString - getReservedIpRangeBytes() { + public com.google.protobuf.ByteString getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -1236,6 +1360,8 @@ public java.lang.String getReservedIpRange() { } } /** + * + * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1247,20 +1373,22 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 4; + * * @param value The reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRange( - java.lang.String value) { + public Builder setReservedIpRange(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reservedIpRange_ = value; onChanged(); return this; } /** + * + * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1272,15 +1400,18 @@ public Builder setReservedIpRange(
      * 
* * string reserved_ip_range = 4; + * * @return This builder for chaining. */ public Builder clearReservedIpRange() { - + reservedIpRange_ = getDefaultInstance().getReservedIpRange(); onChanged(); return this; } /** + * + * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1292,29 +1423,33 @@ public Builder clearReservedIpRange() {
      * 
* * string reserved_ip_range = 4; + * * @param value The bytes for reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRangeBytes( - com.google.protobuf.ByteString value) { + public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reservedIpRange_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList ipAddresses_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIpAddressesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ipAddresses_ = new com.google.protobuf.LazyStringArrayList(ipAddresses_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1323,13 +1458,15 @@ private void ensureIpAddressesIsMutable() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList - getIpAddressesList() { + public com.google.protobuf.ProtocolStringList getIpAddressesList() { return ipAddresses_.getUnmodifiableView(); } /** + * + * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1338,12 +1475,15 @@ private void ensureIpAddressesIsMutable() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** + * + * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1352,6 +1492,7 @@ public int getIpAddressesCount() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -1359,6 +1500,8 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** + * + * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1367,14 +1510,16 @@ public java.lang.String getIpAddresses(int index) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString - getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } /** + * + * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1383,21 +1528,23 @@ public java.lang.String getIpAddresses(int index) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index to set the value at. * @param value The ipAddresses to set. * @return This builder for chaining. */ - public Builder setIpAddresses( - int index, java.lang.String value) { + public Builder setIpAddresses(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1406,20 +1553,22 @@ public Builder setIpAddresses(
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddresses( - java.lang.String value) { + public Builder addIpAddresses(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1428,18 +1577,19 @@ public Builder addIpAddresses(
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param values The ipAddresses to add. * @return This builder for chaining. */ - public Builder addAllIpAddresses( - java.lang.Iterable values) { + public Builder addAllIpAddresses(java.lang.Iterable values) { ensureIpAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ipAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipAddresses_); onChanged(); return this; } /** + * + * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1448,6 +1598,7 @@ public Builder addAllIpAddresses(
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearIpAddresses() { @@ -1457,6 +1608,8 @@ public Builder clearIpAddresses() { return this; } /** + * + * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1465,23 +1618,23 @@ public Builder clearIpAddresses() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes of the ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddressesBytes( - com.google.protobuf.ByteString value) { + public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpAddressesIsMutable(); ipAddresses_.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); } @@ -1491,12 +1644,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.NetworkConfig) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.NetworkConfig) private static final com.google.cloud.filestore.v1.NetworkConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.NetworkConfig(); } @@ -1505,27 +1658,27 @@ public static com.google.cloud.filestore.v1.NetworkConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1540,6 +1693,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.NetworkConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java similarity index 83% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java index c1fe39704bdc..8ecfd24a7c45 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface NetworkConfigOrBuilder extends +public interface NetworkConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.NetworkConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -15,10 +33,13 @@ public interface NetworkConfigOrBuilder extends
    * 
* * string network = 1; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -26,66 +47,82 @@ public interface NetworkConfigOrBuilder extends
    * 
* * string network = 1; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @return A list containing the modes. */ java.util.List getModesList(); /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @return The count of modes. */ int getModesCount(); /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @param index The index of the element to return. * @return The modes at the given index. */ com.google.cloud.filestore.v1.NetworkConfig.AddressMode getModes(int index); /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @return A list containing the enum numeric values on the wire for modes. */ - java.util.List - getModesValueList(); + java.util.List getModesValueList(); /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ int getModesValue(int index); /** + * + * *
    * A /29 CIDR block in one of the
    * [internal IP address
@@ -97,10 +134,13 @@ public interface NetworkConfigOrBuilder extends
    * 
* * string reserved_ip_range = 4; + * * @return The reservedIpRange. */ java.lang.String getReservedIpRange(); /** + * + * *
    * A /29 CIDR block in one of the
    * [internal IP address
@@ -112,12 +152,14 @@ public interface NetworkConfigOrBuilder extends
    * 
* * string reserved_ip_range = 4; + * * @return The bytes for reservedIpRange. */ - com.google.protobuf.ByteString - getReservedIpRangeBytes(); + com.google.protobuf.ByteString getReservedIpRangeBytes(); /** + * + * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -126,11 +168,13 @@ public interface NetworkConfigOrBuilder extends
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the ipAddresses. */ - java.util.List - getIpAddressesList(); + java.util.List getIpAddressesList(); /** + * + * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -139,10 +183,13 @@ public interface NetworkConfigOrBuilder extends
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of ipAddresses. */ int getIpAddressesCount(); /** + * + * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -151,11 +198,14 @@ public interface NetworkConfigOrBuilder extends
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ java.lang.String getIpAddresses(int index); /** + * + * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -164,9 +214,9 @@ public interface NetworkConfigOrBuilder extends
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - com.google.protobuf.ByteString - getIpAddressesBytes(int index); + com.google.protobuf.ByteString getIpAddressesBytes(int index); } diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java similarity index 76% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java index 13f5af73ffd9..9fcfffed832c 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * NFS export options specifications.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.NfsExportOptions} */ -public final class NfsExportOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NfsExportOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.NfsExportOptions) NfsExportOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NfsExportOptions.newBuilder() to construct. private NfsExportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NfsExportOptions() { ipRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; accessMode_ = 0; @@ -27,39 +45,43 @@ private NfsExportOptions() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NfsExportOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.NfsExportOptions.class, com.google.cloud.filestore.v1.NfsExportOptions.Builder.class); + com.google.cloud.filestore.v1.NfsExportOptions.class, + com.google.cloud.filestore.v1.NfsExportOptions.Builder.class); } /** + * + * *
    * The access mode.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.NfsExportOptions.AccessMode} */ - public enum AccessMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * AccessMode not set.
      * 
@@ -68,6 +90,8 @@ public enum AccessMode */ ACCESS_MODE_UNSPECIFIED(0), /** + * + * *
      * The client can only read the file share.
      * 
@@ -76,6 +100,8 @@ public enum AccessMode */ READ_ONLY(1), /** + * + * *
      * The client can read and write the file share (default).
      * 
@@ -87,6 +113,8 @@ public enum AccessMode ; /** + * + * *
      * AccessMode not set.
      * 
@@ -95,6 +123,8 @@ public enum AccessMode */ public static final int ACCESS_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The client can only read the file share.
      * 
@@ -103,6 +133,8 @@ public enum AccessMode */ public static final int READ_ONLY_VALUE = 1; /** + * + * *
      * The client can read and write the file share (default).
      * 
@@ -111,7 +143,6 @@ public enum AccessMode */ public static final int READ_WRITE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,49 +167,49 @@ public static AccessMode valueOf(int value) { */ public static AccessMode forNumber(int value) { switch (value) { - case 0: return ACCESS_MODE_UNSPECIFIED; - case 1: return READ_ONLY; - case 2: return READ_WRITE; - default: return null; + case 0: + return ACCESS_MODE_UNSPECIFIED; + case 1: + return READ_ONLY; + case 2: + return READ_WRITE; + 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< - AccessMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AccessMode findValueByNumber(int number) { - return AccessMode.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 AccessMode findValueByNumber(int number) { + return AccessMode.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.filestore.v1.NfsExportOptions.getDescriptor().getEnumTypes().get(0); } private static final AccessMode[] VALUES = values(); - public static AccessMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AccessMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -196,15 +227,18 @@ private AccessMode(int value) { } /** + * + * *
    * The squash mode.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.NfsExportOptions.SquashMode} */ - public enum SquashMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * SquashMode not set.
      * 
@@ -213,6 +247,8 @@ public enum SquashMode */ SQUASH_MODE_UNSPECIFIED(0), /** + * + * *
      * The Root user has root access to the file share (default).
      * 
@@ -221,6 +257,8 @@ public enum SquashMode */ NO_ROOT_SQUASH(1), /** + * + * *
      * The Root user has squashed access to the anonymous uid/gid.
      * 
@@ -232,6 +270,8 @@ public enum SquashMode ; /** + * + * *
      * SquashMode not set.
      * 
@@ -240,6 +280,8 @@ public enum SquashMode */ public static final int SQUASH_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Root user has root access to the file share (default).
      * 
@@ -248,6 +290,8 @@ public enum SquashMode */ public static final int NO_ROOT_SQUASH_VALUE = 1; /** + * + * *
      * The Root user has squashed access to the anonymous uid/gid.
      * 
@@ -256,7 +300,6 @@ public enum SquashMode */ public static final int ROOT_SQUASH_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -281,49 +324,49 @@ public static SquashMode valueOf(int value) { */ public static SquashMode forNumber(int value) { switch (value) { - case 0: return SQUASH_MODE_UNSPECIFIED; - case 1: return NO_ROOT_SQUASH; - case 2: return ROOT_SQUASH; - default: return null; + case 0: + return SQUASH_MODE_UNSPECIFIED; + case 1: + return NO_ROOT_SQUASH; + case 2: + return ROOT_SQUASH; + 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< - SquashMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SquashMode findValueByNumber(int number) { - return SquashMode.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 SquashMode findValueByNumber(int number) { + return SquashMode.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.filestore.v1.NfsExportOptions.getDescriptor().getEnumTypes().get(1); } private static final SquashMode[] VALUES = values(); - public static SquashMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SquashMode 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 +386,8 @@ private SquashMode(int value) { public static final int IP_RANGES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList ipRanges_; /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -355,13 +400,15 @@ private SquashMode(int value) {
    * 
* * repeated string ip_ranges = 1; + * * @return A list containing the ipRanges. */ - public com.google.protobuf.ProtocolStringList - getIpRangesList() { + public com.google.protobuf.ProtocolStringList getIpRangesList() { return ipRanges_; } /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -374,12 +421,15 @@ private SquashMode(int value) {
    * 
* * repeated string ip_ranges = 1; + * * @return The count of ipRanges. */ public int getIpRangesCount() { return ipRanges_.size(); } /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -392,6 +442,7 @@ public int getIpRangesCount() {
    * 
* * repeated string ip_ranges = 1; + * * @param index The index of the element to return. * @return The ipRanges at the given index. */ @@ -399,6 +450,8 @@ public java.lang.String getIpRanges(int index) { return ipRanges_.get(index); } /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -411,17 +464,19 @@ public java.lang.String getIpRanges(int index) {
    * 
* * repeated string ip_ranges = 1; + * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - public com.google.protobuf.ByteString - getIpRangesBytes(int index) { + public com.google.protobuf.ByteString getIpRangesBytes(int index) { return ipRanges_.getByteString(index); } public static final int ACCESS_MODE_FIELD_NUMBER = 2; private int accessMode_; /** + * + * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -429,12 +484,16 @@ public java.lang.String getIpRanges(int index) {
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; + * * @return The enum numeric value on the wire for accessMode. */ - @java.lang.Override public int getAccessModeValue() { + @java.lang.Override + public int getAccessModeValue() { return accessMode_; } /** + * + * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -442,17 +501,24 @@ public java.lang.String getIpRanges(int index) {
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; + * * @return The accessMode. */ - @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode() { + @java.lang.Override + public com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NfsExportOptions.AccessMode result = com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.valueOf(accessMode_); - return result == null ? com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.UNRECOGNIZED : result; + com.google.cloud.filestore.v1.NfsExportOptions.AccessMode result = + com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.valueOf(accessMode_); + return result == null + ? com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.UNRECOGNIZED + : result; } public static final int SQUASH_MODE_FIELD_NUMBER = 3; private int squashMode_; /** + * + * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -460,12 +526,16 @@ public java.lang.String getIpRanges(int index) {
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; + * * @return The enum numeric value on the wire for squashMode. */ - @java.lang.Override public int getSquashModeValue() { + @java.lang.Override + public int getSquashModeValue() { return squashMode_; } /** + * + * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -473,17 +543,24 @@ public java.lang.String getIpRanges(int index) {
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; + * * @return The squashMode. */ - @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode() { + @java.lang.Override + public com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NfsExportOptions.SquashMode result = com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.valueOf(squashMode_); - return result == null ? com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.UNRECOGNIZED : result; + com.google.cloud.filestore.v1.NfsExportOptions.SquashMode result = + com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.valueOf(squashMode_); + return result == null + ? com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.UNRECOGNIZED + : result; } public static final int ANON_UID_FIELD_NUMBER = 4; private long anonUid_; /** + * + * *
    * An integer representing the anonymous user id with a default value of
    * 65534.
@@ -492,6 +569,7 @@ public java.lang.String getIpRanges(int index) {
    * 
* * int64 anon_uid = 4; + * * @return The anonUid. */ @java.lang.Override @@ -502,6 +580,8 @@ public long getAnonUid() { public static final int ANON_GID_FIELD_NUMBER = 5; private long anonGid_; /** + * + * *
    * An integer representing the anonymous group id with a default value of
    * 65534.
@@ -510,6 +590,7 @@ public long getAnonUid() {
    * 
* * int64 anon_gid = 5; + * * @return The anonGid. */ @java.lang.Override @@ -518,6 +599,7 @@ public long getAnonGid() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -529,15 +611,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < ipRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipRanges_.getRaw(i)); } - if (accessMode_ != com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED.getNumber()) { + if (accessMode_ + != com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, accessMode_); } - if (squashMode_ != com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED.getNumber()) { + if (squashMode_ + != com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, squashMode_); } if (anonUid_ != 0L) { @@ -563,21 +648,21 @@ public int getSerializedSize() { size += dataSize; size += 1 * getIpRangesList().size(); } - if (accessMode_ != com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, accessMode_); + if (accessMode_ + != com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, accessMode_); } - if (squashMode_ != com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, squashMode_); + if (squashMode_ + != com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, squashMode_); } if (anonUid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, anonUid_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, anonUid_); } if (anonGid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, anonGid_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, anonGid_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -587,21 +672,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.filestore.v1.NfsExportOptions)) { return super.equals(obj); } - com.google.cloud.filestore.v1.NfsExportOptions other = (com.google.cloud.filestore.v1.NfsExportOptions) obj; + com.google.cloud.filestore.v1.NfsExportOptions other = + (com.google.cloud.filestore.v1.NfsExportOptions) obj; - if (!getIpRangesList() - .equals(other.getIpRangesList())) return false; + if (!getIpRangesList().equals(other.getIpRangesList())) return false; if (accessMode_ != other.accessMode_) return false; if (squashMode_ != other.squashMode_) return false; - if (getAnonUid() - != other.getAnonUid()) return false; - if (getAnonGid() - != other.getAnonGid()) return false; + if (getAnonUid() != other.getAnonUid()) return false; + if (getAnonGid() != other.getAnonGid()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -622,140 +705,144 @@ public int hashCode() { hash = (37 * hash) + SQUASH_MODE_FIELD_NUMBER; hash = (53 * hash) + squashMode_; hash = (37 * hash) + ANON_UID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAnonUid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAnonUid()); hash = (37 * hash) + ANON_GID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAnonGid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAnonGid()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom(java.io.InputStream input) 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.filestore.v1.NfsExportOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.NfsExportOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.NfsExportOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.NfsExportOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1.NfsExportOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * NFS export options specifications.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.NfsExportOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.NfsExportOptions) com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.NfsExportOptions.class, com.google.cloud.filestore.v1.NfsExportOptions.Builder.class); + com.google.cloud.filestore.v1.NfsExportOptions.class, + com.google.cloud.filestore.v1.NfsExportOptions.Builder.class); } // Construct using com.google.cloud.filestore.v1.NfsExportOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -773,9 +860,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; } @java.lang.Override @@ -794,7 +881,8 @@ public com.google.cloud.filestore.v1.NfsExportOptions build() { @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions buildPartial() { - com.google.cloud.filestore.v1.NfsExportOptions result = new com.google.cloud.filestore.v1.NfsExportOptions(this); + com.google.cloud.filestore.v1.NfsExportOptions result = + new com.google.cloud.filestore.v1.NfsExportOptions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { ipRanges_ = ipRanges_.getUnmodifiableView(); @@ -813,38 +901,39 @@ public com.google.cloud.filestore.v1.NfsExportOptions 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.filestore.v1.NfsExportOptions) { - return mergeFrom((com.google.cloud.filestore.v1.NfsExportOptions)other); + return mergeFrom((com.google.cloud.filestore.v1.NfsExportOptions) other); } else { super.mergeFrom(other); return this; @@ -901,38 +990,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpRangesIsMutable(); - ipRanges_.add(s); - break; - } // case 10 - case 16: { - accessMode_ = input.readEnum(); - - break; - } // case 16 - case 24: { - squashMode_ = input.readEnum(); - - break; - } // case 24 - case 32: { - anonUid_ = input.readInt64(); - - break; - } // case 32 - case 40: { - anonGid_ = input.readInt64(); - - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIpRangesIsMutable(); + ipRanges_.add(s); + break; + } // case 10 + case 16: + { + accessMode_ = input.readEnum(); + + break; + } // case 16 + case 24: + { + squashMode_ = input.readEnum(); + + break; + } // case 24 + case 32: + { + anonUid_ = input.readInt64(); + + break; + } // case 32 + case 40: + { + anonGid_ = input.readInt64(); + + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -942,16 +1037,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList ipRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList ipRanges_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIpRangesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ipRanges_ = new com.google.protobuf.LazyStringArrayList(ipRanges_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -964,13 +1064,15 @@ private void ensureIpRangesIsMutable() {
      * 
* * repeated string ip_ranges = 1; + * * @return A list containing the ipRanges. */ - public com.google.protobuf.ProtocolStringList - getIpRangesList() { + public com.google.protobuf.ProtocolStringList getIpRangesList() { return ipRanges_.getUnmodifiableView(); } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -983,12 +1085,15 @@ private void ensureIpRangesIsMutable() {
      * 
* * repeated string ip_ranges = 1; + * * @return The count of ipRanges. */ public int getIpRangesCount() { return ipRanges_.size(); } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1001,6 +1106,7 @@ public int getIpRangesCount() {
      * 
* * repeated string ip_ranges = 1; + * * @param index The index of the element to return. * @return The ipRanges at the given index. */ @@ -1008,6 +1114,8 @@ public java.lang.String getIpRanges(int index) { return ipRanges_.get(index); } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1020,14 +1128,16 @@ public java.lang.String getIpRanges(int index) {
      * 
* * repeated string ip_ranges = 1; + * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - public com.google.protobuf.ByteString - getIpRangesBytes(int index) { + public com.google.protobuf.ByteString getIpRangesBytes(int index) { return ipRanges_.getByteString(index); } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1040,21 +1150,23 @@ public java.lang.String getIpRanges(int index) {
      * 
* * repeated string ip_ranges = 1; + * * @param index The index to set the value at. * @param value The ipRanges to set. * @return This builder for chaining. */ - public Builder setIpRanges( - int index, java.lang.String value) { + public Builder setIpRanges(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpRangesIsMutable(); + throw new NullPointerException(); + } + ensureIpRangesIsMutable(); ipRanges_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1067,20 +1179,22 @@ public Builder setIpRanges(
      * 
* * repeated string ip_ranges = 1; + * * @param value The ipRanges to add. * @return This builder for chaining. */ - public Builder addIpRanges( - java.lang.String value) { + public Builder addIpRanges(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpRangesIsMutable(); + throw new NullPointerException(); + } + ensureIpRangesIsMutable(); ipRanges_.add(value); onChanged(); return this; } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1093,18 +1207,19 @@ public Builder addIpRanges(
      * 
* * repeated string ip_ranges = 1; + * * @param values The ipRanges to add. * @return This builder for chaining. */ - public Builder addAllIpRanges( - java.lang.Iterable values) { + public Builder addAllIpRanges(java.lang.Iterable values) { ensureIpRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ipRanges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipRanges_); onChanged(); return this; } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1117,6 +1232,7 @@ public Builder addAllIpRanges(
      * 
* * repeated string ip_ranges = 1; + * * @return This builder for chaining. */ public Builder clearIpRanges() { @@ -1126,6 +1242,8 @@ public Builder clearIpRanges() { return this; } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1138,15 +1256,15 @@ public Builder clearIpRanges() {
      * 
* * repeated string ip_ranges = 1; + * * @param value The bytes of the ipRanges to add. * @return This builder for chaining. */ - public Builder addIpRangesBytes( - com.google.protobuf.ByteString value) { + public Builder addIpRangesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpRangesIsMutable(); ipRanges_.add(value); onChanged(); @@ -1155,6 +1273,8 @@ public Builder addIpRangesBytes( private int accessMode_ = 0; /** + * + * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1162,12 +1282,16 @@ public Builder addIpRangesBytes(
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; + * * @return The enum numeric value on the wire for accessMode. */ - @java.lang.Override public int getAccessModeValue() { + @java.lang.Override + public int getAccessModeValue() { return accessMode_; } /** + * + * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1175,16 +1299,19 @@ public Builder addIpRangesBytes(
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; + * * @param value The enum numeric value on the wire for accessMode to set. * @return This builder for chaining. */ public Builder setAccessModeValue(int value) { - + accessMode_ = value; onChanged(); return this; } /** + * + * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1192,15 +1319,21 @@ public Builder setAccessModeValue(int value) {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; + * * @return The accessMode. */ @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NfsExportOptions.AccessMode result = com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.valueOf(accessMode_); - return result == null ? com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.UNRECOGNIZED : result; + com.google.cloud.filestore.v1.NfsExportOptions.AccessMode result = + com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.valueOf(accessMode_); + return result == null + ? com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.UNRECOGNIZED + : result; } /** + * + * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1208,6 +1341,7 @@ public com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode()
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; + * * @param value The accessMode to set. * @return This builder for chaining. */ @@ -1215,12 +1349,14 @@ public Builder setAccessMode(com.google.cloud.filestore.v1.NfsExportOptions.Acce if (value == null) { throw new NullPointerException(); } - + accessMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1228,10 +1364,11 @@ public Builder setAccessMode(com.google.cloud.filestore.v1.NfsExportOptions.Acce
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; + * * @return This builder for chaining. */ public Builder clearAccessMode() { - + accessMode_ = 0; onChanged(); return this; @@ -1239,6 +1376,8 @@ public Builder clearAccessMode() { private int squashMode_ = 0; /** + * + * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1246,12 +1385,16 @@ public Builder clearAccessMode() {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; + * * @return The enum numeric value on the wire for squashMode. */ - @java.lang.Override public int getSquashModeValue() { + @java.lang.Override + public int getSquashModeValue() { return squashMode_; } /** + * + * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1259,16 +1402,19 @@ public Builder clearAccessMode() {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; + * * @param value The enum numeric value on the wire for squashMode to set. * @return This builder for chaining. */ public Builder setSquashModeValue(int value) { - + squashMode_ = value; onChanged(); return this; } /** + * + * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1276,15 +1422,21 @@ public Builder setSquashModeValue(int value) {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; + * * @return The squashMode. */ @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NfsExportOptions.SquashMode result = com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.valueOf(squashMode_); - return result == null ? com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.UNRECOGNIZED : result; + com.google.cloud.filestore.v1.NfsExportOptions.SquashMode result = + com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.valueOf(squashMode_); + return result == null + ? com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.UNRECOGNIZED + : result; } /** + * + * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1292,6 +1444,7 @@ public com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode()
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; + * * @param value The squashMode to set. * @return This builder for chaining. */ @@ -1299,12 +1452,14 @@ public Builder setSquashMode(com.google.cloud.filestore.v1.NfsExportOptions.Squa if (value == null) { throw new NullPointerException(); } - + squashMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1312,17 +1467,20 @@ public Builder setSquashMode(com.google.cloud.filestore.v1.NfsExportOptions.Squa
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; + * * @return This builder for chaining. */ public Builder clearSquashMode() { - + squashMode_ = 0; onChanged(); return this; } - private long anonUid_ ; + private long anonUid_; /** + * + * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1331,6 +1489,7 @@ public Builder clearSquashMode() {
      * 
* * int64 anon_uid = 4; + * * @return The anonUid. */ @java.lang.Override @@ -1338,6 +1497,8 @@ public long getAnonUid() { return anonUid_; } /** + * + * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1346,16 +1507,19 @@ public long getAnonUid() {
      * 
* * int64 anon_uid = 4; + * * @param value The anonUid to set. * @return This builder for chaining. */ public Builder setAnonUid(long value) { - + anonUid_ = value; onChanged(); return this; } /** + * + * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1364,17 +1528,20 @@ public Builder setAnonUid(long value) {
      * 
* * int64 anon_uid = 4; + * * @return This builder for chaining. */ public Builder clearAnonUid() { - + anonUid_ = 0L; onChanged(); return this; } - private long anonGid_ ; + private long anonGid_; /** + * + * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1383,6 +1550,7 @@ public Builder clearAnonUid() {
      * 
* * int64 anon_gid = 5; + * * @return The anonGid. */ @java.lang.Override @@ -1390,6 +1558,8 @@ public long getAnonGid() { return anonGid_; } /** + * + * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1398,16 +1568,19 @@ public long getAnonGid() {
      * 
* * int64 anon_gid = 5; + * * @param value The anonGid to set. * @return This builder for chaining. */ public Builder setAnonGid(long value) { - + anonGid_ = value; onChanged(); return this; } /** + * + * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1416,17 +1589,18 @@ public Builder setAnonGid(long value) {
      * 
* * int64 anon_gid = 5; + * * @return This builder for chaining. */ public Builder clearAnonGid() { - + anonGid_ = 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); } @@ -1436,12 +1610,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.NfsExportOptions) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.NfsExportOptions) private static final com.google.cloud.filestore.v1.NfsExportOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.NfsExportOptions(); } @@ -1450,27 +1624,27 @@ public static com.google.cloud.filestore.v1.NfsExportOptions getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NfsExportOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NfsExportOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1485,6 +1659,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.NfsExportOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java similarity index 84% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java index 797d53a2f722..c5af4aaa3f2c 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface NfsExportOptionsOrBuilder extends +public interface NfsExportOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.NfsExportOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -20,11 +38,13 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * repeated string ip_ranges = 1; + * * @return A list containing the ipRanges. */ - java.util.List - getIpRangesList(); + java.util.List getIpRangesList(); /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -37,10 +57,13 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * repeated string ip_ranges = 1; + * * @return The count of ipRanges. */ int getIpRangesCount(); /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -53,11 +76,14 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * repeated string ip_ranges = 1; + * * @param index The index of the element to return. * @return The ipRanges at the given index. */ java.lang.String getIpRanges(int index); /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -70,13 +96,15 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * repeated string ip_ranges = 1; + * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - com.google.protobuf.ByteString - getIpRangesBytes(int index); + com.google.protobuf.ByteString getIpRangesBytes(int index); /** + * + * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -84,10 +112,13 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; + * * @return The enum numeric value on the wire for accessMode. */ int getAccessModeValue(); /** + * + * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -95,11 +126,14 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; + * * @return The accessMode. */ com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode(); /** + * + * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -107,10 +141,13 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; + * * @return The enum numeric value on the wire for squashMode. */ int getSquashModeValue(); /** + * + * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -118,11 +155,14 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; + * * @return The squashMode. */ com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode(); /** + * + * *
    * An integer representing the anonymous user id with a default value of
    * 65534.
@@ -131,11 +171,14 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * int64 anon_uid = 4; + * * @return The anonUid. */ long getAnonUid(); /** + * + * *
    * An integer representing the anonymous group id with a default value of
    * 65534.
@@ -144,6 +187,7 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * int64 anon_gid = 5; + * * @return The anonGid. */ long getAnonGid(); diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java similarity index 69% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java index d7d00df822df..3810c9714ee5 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.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/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * RestoreInstanceRequest restores an existing instances's file share from a
  * backup.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.filestore.v1.RestoreInstanceRequest}
  */
-public final class RestoreInstanceRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RestoreInstanceRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.RestoreInstanceRequest)
     RestoreInstanceRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RestoreInstanceRequest.newBuilder() to construct.
   private RestoreInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RestoreInstanceRequest() {
     name_ = "";
     fileShare_ = "";
@@ -27,37 +45,41 @@ private RestoreInstanceRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RestoreInstanceRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
+        .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable
+    return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
+        .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.filestore.v1.RestoreInstanceRequest.class, com.google.cloud.filestore.v1.RestoreInstanceRequest.Builder.class);
+            com.google.cloud.filestore.v1.RestoreInstanceRequest.class,
+            com.google.cloud.filestore.v1.RestoreInstanceRequest.Builder.class);
   }
 
   private int sourceCase_ = 0;
   private java.lang.Object source_;
+
   public enum SourceCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     SOURCE_BACKUP(3),
     SOURCE_NOT_SET(0);
     private final int value;
+
     private SourceCase(int value) {
       this.value = value;
     }
@@ -73,31 +95,38 @@ public static SourceCase valueOf(int value) {
 
     public static SourceCase forNumber(int value) {
       switch (value) {
-        case 3: return SOURCE_BACKUP;
-        case 0: return SOURCE_NOT_SET;
-        default: return null;
+        case 3:
+          return SOURCE_BACKUP;
+        case 0:
+          return SOURCE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public SourceCase
-  getSourceCase() {
-    return SourceCase.forNumber(
-        sourceCase_);
+  public SourceCase getSourceCase() {
+    return SourceCase.forNumber(sourceCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name of the instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * string name = 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 @@ -106,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. The resource name of the instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * string name = 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 { @@ -140,12 +171,15 @@ public java.lang.String getName() { public static final int FILE_SHARE_FIELD_NUMBER = 2; private volatile java.lang.Object fileShare_; /** + * + * *
    * Required. Name of the file share in the Cloud Filestore instance that the
    * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fileShare. */ @java.lang.Override @@ -154,30 +188,30 @@ public java.lang.String getFileShare() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileShare_ = s; return s; } } /** + * + * *
    * Required. Name of the file share in the Cloud Filestore instance that the
    * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fileShare. */ @java.lang.Override - public com.google.protobuf.ByteString - getFileShareBytes() { + public com.google.protobuf.ByteString getFileShareBytes() { java.lang.Object ref = fileShare_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fileShare_ = b; return b; } else { @@ -187,24 +221,30 @@ public java.lang.String getFileShare() { public static final int SOURCE_BACKUP_FIELD_NUMBER = 3; /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceBackup field is set. */ public boolean hasSourceBackup() { return sourceCase_ == 3; } /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } + * * @return The sourceBackup. */ public java.lang.String getSourceBackup() { @@ -215,8 +255,7 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (sourceCase_ == 3) { source_ = s; @@ -225,24 +264,25 @@ public java.lang.String getSourceBackup() { } } /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString - getSourceBackupBytes() { + public com.google.protobuf.ByteString getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 3) { source_ = b; } @@ -253,6 +293,7 @@ public java.lang.String getSourceBackup() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +305,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -301,22 +341,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.filestore.v1.RestoreInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.RestoreInstanceRequest other = (com.google.cloud.filestore.v1.RestoreInstanceRequest) obj; + com.google.cloud.filestore.v1.RestoreInstanceRequest other = + (com.google.cloud.filestore.v1.RestoreInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getFileShare() - .equals(other.getFileShare())) return false; + if (!getName().equals(other.getName())) return false; + if (!getFileShare().equals(other.getFileShare())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 3: - if (!getSourceBackup() - .equals(other.getSourceBackup())) return false; + if (!getSourceBackup().equals(other.getSourceBackup())) return false; break; case 0: default: @@ -350,96 +388,103 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( - java.nio.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.filestore.v1.RestoreInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.RestoreInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1.RestoreInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * RestoreInstanceRequest restores an existing instances's file share from a
    * backup.
@@ -447,33 +492,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.filestore.v1.RestoreInstanceRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.RestoreInstanceRequest)
       com.google.cloud.filestore.v1.RestoreInstanceRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
+          .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable
+      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
+          .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.filestore.v1.RestoreInstanceRequest.class, com.google.cloud.filestore.v1.RestoreInstanceRequest.Builder.class);
+              com.google.cloud.filestore.v1.RestoreInstanceRequest.class,
+              com.google.cloud.filestore.v1.RestoreInstanceRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.filestore.v1.RestoreInstanceRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -487,9 +531,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
+          .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
     }
 
     @java.lang.Override
@@ -508,7 +552,8 @@ public com.google.cloud.filestore.v1.RestoreInstanceRequest build() {
 
     @java.lang.Override
     public com.google.cloud.filestore.v1.RestoreInstanceRequest buildPartial() {
-      com.google.cloud.filestore.v1.RestoreInstanceRequest result = new com.google.cloud.filestore.v1.RestoreInstanceRequest(this);
+      com.google.cloud.filestore.v1.RestoreInstanceRequest result =
+          new com.google.cloud.filestore.v1.RestoreInstanceRequest(this);
       result.name_ = name_;
       result.fileShare_ = fileShare_;
       if (sourceCase_ == 3) {
@@ -523,38 +568,39 @@ public com.google.cloud.filestore.v1.RestoreInstanceRequest 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.filestore.v1.RestoreInstanceRequest) {
-        return mergeFrom((com.google.cloud.filestore.v1.RestoreInstanceRequest)other);
+        return mergeFrom((com.google.cloud.filestore.v1.RestoreInstanceRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -562,7 +608,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.filestore.v1.RestoreInstanceRequest other) {
-      if (other == com.google.cloud.filestore.v1.RestoreInstanceRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.filestore.v1.RestoreInstanceRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -572,15 +619,17 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.RestoreInstanceRequest ot
         onChanged();
       }
       switch (other.getSourceCase()) {
-        case SOURCE_BACKUP: {
-          sourceCase_ = 3;
-          source_ = other.source_;
-          onChanged();
-          break;
-        }
-        case SOURCE_NOT_SET: {
-          break;
-        }
+        case SOURCE_BACKUP:
+          {
+            sourceCase_ = 3;
+            source_ = other.source_;
+            onChanged();
+            break;
+          }
+        case SOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -608,28 +657,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              fileShare_ = input.readStringRequireUtf8();
+                break;
+              } // case 10
+            case 18:
+              {
+                fileShare_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              sourceCase_ = 3;
-              source_ = s;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                sourceCase_ = 3;
+                source_ = s;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -639,12 +692,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-    public SourceCase
-        getSourceCase() {
-      return SourceCase.forNumber(
-          sourceCase_);
+
+    public SourceCase getSourceCase() {
+      return SourceCase.forNumber(sourceCase_);
     }
 
     public Builder clearSource() {
@@ -654,22 +707,25 @@ public Builder clearSource() {
       return this;
     }
 
-
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * string name = 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; @@ -678,21 +734,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * string name = 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 { @@ -700,57 +759,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * 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. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * string 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. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * 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; @@ -758,19 +830,21 @@ public Builder setNameBytes( private java.lang.Object fileShare_ = ""; /** + * + * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fileShare. */ public java.lang.String getFileShare() { java.lang.Object ref = fileShare_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileShare_ = s; return s; @@ -779,21 +853,22 @@ public java.lang.String getFileShare() { } } /** + * + * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fileShare. */ - public com.google.protobuf.ByteString - getFileShareBytes() { + public com.google.protobuf.ByteString getFileShareBytes() { java.lang.Object ref = fileShare_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fileShare_ = b; return b; } else { @@ -801,69 +876,79 @@ public java.lang.String getFileShare() { } } /** + * + * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The fileShare to set. * @return This builder for chaining. */ - public Builder setFileShare( - java.lang.String value) { + public Builder setFileShare(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fileShare_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFileShare() { - + fileShare_ = getDefaultInstance().getFileShare(); onChanged(); return this; } /** + * + * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for fileShare to set. * @return This builder for chaining. */ - public Builder setFileShareBytes( - com.google.protobuf.ByteString value) { + public Builder setFileShareBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fileShare_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceBackup field is set. */ @java.lang.Override @@ -871,12 +956,15 @@ public boolean hasSourceBackup() { return sourceCase_ == 3; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } + * * @return The sourceBackup. */ @java.lang.Override @@ -886,8 +974,7 @@ public java.lang.String getSourceBackup() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (sourceCase_ == 3) { source_ = s; @@ -898,25 +985,26 @@ public java.lang.String getSourceBackup() { } } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceBackupBytes() { + public com.google.protobuf.ByteString getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 3) { source_ = b; } @@ -926,32 +1014,37 @@ public java.lang.String getSourceBackup() { } } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } + * * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup( - java.lang.String value) { + public Builder setSourceBackup(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 3; + throw new NullPointerException(); + } + sourceCase_ = 3; source_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -963,29 +1056,31 @@ public Builder clearSourceBackup() { return this; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackupBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 3; source_ = 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); } @@ -995,12 +1090,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.RestoreInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.RestoreInstanceRequest) private static final com.google.cloud.filestore.v1.RestoreInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.RestoreInstanceRequest(); } @@ -1009,27 +1104,27 @@ public static com.google.cloud.filestore.v1.RestoreInstanceRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1044,6 +1139,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.RestoreInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java index 0034c29a647a..41594ba1859a 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java @@ -1,87 +1,125 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface RestoreInstanceRequestOrBuilder extends +public interface RestoreInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.RestoreInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * string name = 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(); /** + * + * *
    * Required. Name of the file share in the Cloud Filestore instance that the
    * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fileShare. */ java.lang.String getFileShare(); /** + * + * *
    * Required. Name of the file share in the Cloud Filestore instance that the
    * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fileShare. */ - com.google.protobuf.ByteString - getFileShareBytes(); + com.google.protobuf.ByteString getFileShareBytes(); /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceBackup field is set. */ boolean hasSourceBackup(); /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } + * * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString - getSourceBackupBytes(); + com.google.protobuf.ByteString getSourceBackupBytes(); public com.google.cloud.filestore.v1.RestoreInstanceRequest.SourceCase getSourceCase(); } diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java similarity index 67% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java index ea2ea9bf295f..1dce664d061d 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java @@ -1,60 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * UpdateBackupRequest updates description and/or labels for a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.UpdateBackupRequest.class, com.google.cloud.filestore.v1.UpdateBackupRequest.Builder.class); + com.google.cloud.filestore.v1.UpdateBackupRequest.class, + com.google.cloud.filestore.v1.UpdateBackupRequest.Builder.class); } public static final int BACKUP_FIELD_NUMBER = 1; private com.google.cloud.filestore.v1.Backup backup_; /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backup field is set. */ @java.lang.Override @@ -62,11 +84,15 @@ public boolean hasBackup() { return backup_ != null; } /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ @java.lang.Override @@ -74,11 +100,14 @@ public com.google.cloud.filestore.v1.Backup getBackup() { return backup_ == null ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; } /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { @@ -88,12 +117,16 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -101,12 +134,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -114,12 +151,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -127,6 +167,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (backup_ != null) { output.writeMessage(1, getBackup()); } @@ -156,12 +196,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -171,22 +209,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.filestore.v1.UpdateBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.UpdateBackupRequest other = (com.google.cloud.filestore.v1.UpdateBackupRequest) obj; + com.google.cloud.filestore.v1.UpdateBackupRequest other = + (com.google.cloud.filestore.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -213,129 +250,135 @@ public int hashCode() { } public static com.google.cloud.filestore.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.filestore.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.filestore.v1.UpdateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.UpdateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.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.filestore.v1.UpdateBackupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.UpdateBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.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.filestore.v1.UpdateBackupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.UpdateBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.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.filestore.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.filestore.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.filestore.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; } /** + * + * *
    * UpdateBackupRequest updates description and/or labels for a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.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.filestore.v1.UpdateBackupRequest) com.google.cloud.filestore.v1.UpdateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.UpdateBackupRequest.class, com.google.cloud.filestore.v1.UpdateBackupRequest.Builder.class); + com.google.cloud.filestore.v1.UpdateBackupRequest.class, + com.google.cloud.filestore.v1.UpdateBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.UpdateBackupRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; } @java.lang.Override @@ -376,7 +419,8 @@ public com.google.cloud.filestore.v1.UpdateBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.UpdateBackupRequest buildPartial() { - com.google.cloud.filestore.v1.UpdateBackupRequest result = new com.google.cloud.filestore.v1.UpdateBackupRequest(this); + com.google.cloud.filestore.v1.UpdateBackupRequest result = + new com.google.cloud.filestore.v1.UpdateBackupRequest(this); if (backupBuilder_ == null) { result.backup_ = backup_; } else { @@ -395,38 +439,39 @@ public com.google.cloud.filestore.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.filestore.v1.UpdateBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1.UpdateBackupRequest)other); + return mergeFrom((com.google.cloud.filestore.v1.UpdateBackupRequest) other); } else { super.mergeFrom(other); return this; @@ -434,7 +479,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.UpdateBackupRequest other) { - if (other == com.google.cloud.filestore.v1.UpdateBackupRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1.UpdateBackupRequest.getDefaultInstance()) + return this; if (other.hasBackup()) { mergeBackup(other.getBackup()); } @@ -467,26 +513,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getBackupFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -499,39 +544,55 @@ public Builder mergeFrom( private com.google.cloud.filestore.v1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> backupBuilder_; + com.google.cloud.filestore.v1.Backup, + com.google.cloud.filestore.v1.Backup.Builder, + com.google.cloud.filestore.v1.BackupOrBuilder> + backupBuilder_; /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.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 [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ public com.google.cloud.filestore.v1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; + return backup_ == null + ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() + : backup_; } else { return backupBuilder_.getMessage(); } } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBackup(com.google.cloud.filestore.v1.Backup value) { if (backupBuilder_ == null) { @@ -547,14 +608,16 @@ public Builder setBackup(com.google.cloud.filestore.v1.Backup value) { return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBackup( - com.google.cloud.filestore.v1.Backup.Builder builderForValue) { + public Builder setBackup(com.google.cloud.filestore.v1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -565,17 +628,22 @@ public Builder setBackup( return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBackup(com.google.cloud.filestore.v1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.filestore.v1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); + com.google.cloud.filestore.v1.Backup.newBuilder(backup_) + .mergeFrom(value) + .buildPartial(); } else { backup_ = value; } @@ -587,11 +655,14 @@ public Builder mergeBackup(com.google.cloud.filestore.v1.Backup value) { return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBackup() { if (backupBuilder_ == null) { @@ -605,48 +676,61 @@ public Builder clearBackup() { return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null ? - com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; + return backup_ == null + ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() + : backup_; } } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> + com.google.cloud.filestore.v1.Backup, + com.google.cloud.filestore.v1.Backup.Builder, + com.google.cloud.filestore.v1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder>( - getBackup(), - getParentForChildren(), - isClean()); + backupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1.Backup, + com.google.cloud.filestore.v1.Backup.Builder, + com.google.cloud.filestore.v1.BackupOrBuilder>( + getBackup(), getParentForChildren(), isClean()); backup_ = null; } return backupBuilder_; @@ -654,42 +738,58 @@ public com.google.cloud.filestore.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_; /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -705,15 +805,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -724,18 +826,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ 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; } @@ -747,12 +852,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -766,58 +874,71 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -827,12 +948,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.UpdateBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.UpdateBackupRequest) private static final com.google.cloud.filestore.v1.UpdateBackupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.UpdateBackupRequest(); } @@ -841,27 +962,27 @@ public static com.google.cloud.filestore.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -876,6 +997,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.UpdateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java index ce5d045f5520..5922964a95cb 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java @@ -1,66 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface UpdateBackupRequestOrBuilder extends +public interface UpdateBackupRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.UpdateBackupRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backup field is set. */ boolean hasBackup(); /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ com.google.cloud.filestore.v1.Backup getBackup(); /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder(); /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java similarity index 71% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java index 439693cfb075..80c2b6aa263f 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java @@ -1,55 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** + * + * *
  * UpdateInstanceRequest updates the settings of an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateInstanceRequest() { - } + + private UpdateInstanceRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.UpdateInstanceRequest.class, com.google.cloud.filestore.v1.UpdateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.UpdateInstanceRequest.class, + com.google.cloud.filestore.v1.UpdateInstanceRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -60,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -67,6 +88,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -77,6 +100,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return The updateMask. */ @java.lang.Override @@ -84,6 +108,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -103,11 +129,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int INSTANCE_FIELD_NUMBER = 2;
   private com.google.cloud.filestore.v1.Instance instance_;
   /**
+   *
+   *
    * 
    * Only fields specified in update_mask are updated.
    * 
* * .google.cloud.filestore.v1.Instance instance = 2; + * * @return Whether the instance field is set. */ @java.lang.Override @@ -115,18 +144,25 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Only fields specified in update_mask are updated.
    * 
* * .google.cloud.filestore.v1.Instance instance = 2; + * * @return The instance. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance getInstance() { - return instance_ == null ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() + : instance_; } /** + * + * *
    * Only fields specified in update_mask are updated.
    * 
@@ -139,6 +175,7 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,8 +187,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -168,12 +204,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInstance()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -183,22 +217,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.UpdateInstanceRequest other = (com.google.cloud.filestore.v1.UpdateInstanceRequest) obj; + com.google.cloud.filestore.v1.UpdateInstanceRequest other = + (com.google.cloud.filestore.v1.UpdateInstanceRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance() - .equals(other.getInstance())) return false; + if (!getInstance().equals(other.getInstance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -225,129 +258,135 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( - java.nio.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.filestore.v1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1.UpdateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1.UpdateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * UpdateInstanceRequest updates the settings of an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.UpdateInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.UpdateInstanceRequest) com.google.cloud.filestore.v1.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.UpdateInstanceRequest.class, com.google.cloud.filestore.v1.UpdateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.UpdateInstanceRequest.class, + com.google.cloud.filestore.v1.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.UpdateInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -367,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -388,7 +427,8 @@ public com.google.cloud.filestore.v1.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.UpdateInstanceRequest buildPartial() { - com.google.cloud.filestore.v1.UpdateInstanceRequest result = new com.google.cloud.filestore.v1.UpdateInstanceRequest(this); + com.google.cloud.filestore.v1.UpdateInstanceRequest result = + new com.google.cloud.filestore.v1.UpdateInstanceRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -407,38 +447,39 @@ public com.google.cloud.filestore.v1.UpdateInstanceRequest 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.filestore.v1.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1.UpdateInstanceRequest)other); + return mergeFrom((com.google.cloud.filestore.v1.UpdateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -446,7 +487,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.UpdateInstanceRequest other) { - if (other == com.google.cloud.filestore.v1.UpdateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1.UpdateInstanceRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -479,26 +521,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getInstanceFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -511,8 +552,13 @@ public Builder mergeFrom( 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_; /** + * + * *
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -523,12 +569,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -539,16 +588,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @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(); } } /** + * + * *
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -574,6 +628,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -585,8 +641,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 1;
      */
-    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();
@@ -597,6 +652,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -612,7 +669,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;
         }
@@ -624,6 +681,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -647,6 +706,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -659,11 +720,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -679,11 +742,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_;
       }
     }
     /**
+     *
+     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -696,14 +762,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     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_;
@@ -711,34 +780,47 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.cloud.filestore.v1.Instance instance_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> instanceBuilder_;
+            com.google.cloud.filestore.v1.Instance,
+            com.google.cloud.filestore.v1.Instance.Builder,
+            com.google.cloud.filestore.v1.InstanceOrBuilder>
+        instanceBuilder_;
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * 
* * .google.cloud.filestore.v1.Instance instance = 2; + * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** + * + * *
      * Only fields specified in update_mask are updated.
      * 
* * .google.cloud.filestore.v1.Instance instance = 2; + * * @return The instance. */ public com.google.cloud.filestore.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Only fields specified in update_mask are updated.
      * 
@@ -759,14 +841,15 @@ public Builder setInstance(com.google.cloud.filestore.v1.Instance value) { return this; } /** + * + * *
      * Only fields specified in update_mask are updated.
      * 
* * .google.cloud.filestore.v1.Instance instance = 2; */ - public Builder setInstance( - com.google.cloud.filestore.v1.Instance.Builder builderForValue) { + public Builder setInstance(com.google.cloud.filestore.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -777,6 +860,8 @@ public Builder setInstance( return this; } /** + * + * *
      * Only fields specified in update_mask are updated.
      * 
@@ -787,7 +872,9 @@ public Builder mergeInstance(com.google.cloud.filestore.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.filestore.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.filestore.v1.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -799,6 +886,8 @@ public Builder mergeInstance(com.google.cloud.filestore.v1.Instance value) { return this; } /** + * + * *
      * Only fields specified in update_mask are updated.
      * 
@@ -817,6 +906,8 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Only fields specified in update_mask are updated.
      * 
@@ -824,11 +915,13 @@ public Builder clearInstance() { * .google.cloud.filestore.v1.Instance instance = 2; */ public com.google.cloud.filestore.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Only fields specified in update_mask are updated.
      * 
@@ -839,11 +932,14 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Only fields specified in update_mask are updated.
      * 
@@ -851,21 +947,24 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { * .google.cloud.filestore.v1.Instance instance = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> + com.google.cloud.filestore.v1.Instance, + com.google.cloud.filestore.v1.Instance.Builder, + com.google.cloud.filestore.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1.Instance, + com.google.cloud.filestore.v1.Instance.Builder, + com.google.cloud.filestore.v1.InstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); instance_ = null; } return instanceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -875,12 +974,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.UpdateInstanceRequest) private static final com.google.cloud.filestore.v1.UpdateInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.UpdateInstanceRequest(); } @@ -889,27 +988,27 @@ public static com.google.cloud.filestore.v1.UpdateInstanceRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -924,6 +1023,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java index 60ce5e62f599..d9879b0ce326 100644 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface UpdateInstanceRequestOrBuilder extends +public interface UpdateInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -18,10 +36,13 @@ public interface UpdateInstanceRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -32,10 +53,13 @@ public interface UpdateInstanceRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -50,24 +74,32 @@ public interface UpdateInstanceRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * Only fields specified in update_mask are updated.
    * 
* * .google.cloud.filestore.v1.Instance instance = 2; + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Only fields specified in update_mask are updated.
    * 
* * .google.cloud.filestore.v1.Instance instance = 2; + * * @return The instance. */ com.google.cloud.filestore.v1.Instance getInstance(); /** + * + * *
    * Only fields specified in update_mask are updated.
    * 
diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto b/java-filestore/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto similarity index 100% rename from owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto rename to java-filestore/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java similarity index 71% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java index 07036dbcf704..cd3f8c6dcec5 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/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/common/operation_metadata.proto package com.google.cloud.common; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.common.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.common.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,37 +46,42 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.common.OperationMetadataOuterClass + .internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable + return com.google.cloud.common.OperationMetadataOuterClass + .internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.common.OperationMetadata.class, com.google.cloud.common.OperationMetadata.Builder.class); + com.google.cloud.common.OperationMetadata.class, + com.google.cloud.common.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 @@ -66,11 +89,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 @@ -78,11 +105,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() { @@ -92,11 +122,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 @@ -104,11 +138,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 @@ -116,11 +154,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() { @@ -130,11 +171,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 @@ -143,29 +187,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 { @@ -176,11 +220,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 @@ -189,29 +236,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 { @@ -222,11 +269,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ @java.lang.Override @@ -235,29 +285,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -268,6 +318,8 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -276,6 +328,7 @@ public java.lang.String getStatusDetail() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -286,11 +339,14 @@ public boolean getCancelRequested() { 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 @@ -299,29 +355,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 { @@ -330,6 +386,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +398,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -374,12 +430,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_); @@ -391,8 +445,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -405,33 +458,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.common.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.common.OperationMetadata other = (com.google.cloud.common.OperationMetadata) obj; + com.google.cloud.common.OperationMetadata other = + (com.google.cloud.common.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 (!getStatusDetail() - .equals(other.getStatusDetail())) return false; - if (getCancelRequested() - != other.getCancelRequested()) 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 (!getStatusDetail().equals(other.getStatusDetail())) return false; + if (getCancelRequested() != other.getCancelRequested()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -458,8 +505,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -467,130 +513,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.common.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.common.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.common.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.common.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.common.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.common.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.common.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.common.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.common.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.common.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.common.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.common.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.common.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.common.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.common.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.common.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.common.OperationMetadata) com.google.cloud.common.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.common.OperationMetadataOuterClass + .internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable + return com.google.cloud.common.OperationMetadataOuterClass + .internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.common.OperationMetadata.class, com.google.cloud.common.OperationMetadata.Builder.class); + com.google.cloud.common.OperationMetadata.class, + com.google.cloud.common.OperationMetadata.Builder.class); } // Construct using com.google.cloud.common.OperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -620,9 +672,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.common.OperationMetadataOuterClass + .internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override @@ -641,7 +693,8 @@ public com.google.cloud.common.OperationMetadata build() { @java.lang.Override public com.google.cloud.common.OperationMetadata buildPartial() { - com.google.cloud.common.OperationMetadata result = new com.google.cloud.common.OperationMetadata(this); + com.google.cloud.common.OperationMetadata result = + new com.google.cloud.common.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -665,38 +718,39 @@ public com.google.cloud.common.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.common.OperationMetadata) { - return mergeFrom((com.google.cloud.common.OperationMetadata)other); + return mergeFrom((com.google.cloud.common.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -756,51 +810,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - statusDetail_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: { - cancelRequested_ = input.readBool(); - - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + statusDetail_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: + { + cancelRequested_ = input.readBool(); + + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -813,39 +871,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) { @@ -861,14 +938,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(); @@ -879,17 +959,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; } @@ -901,11 +985,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) { @@ -919,48 +1007,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_; @@ -968,24 +1072,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() { @@ -996,11 +1111,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) { @@ -1016,14 +1134,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(); @@ -1034,17 +1154,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; } @@ -1056,11 +1179,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) { @@ -1074,48 +1200,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_; @@ -1123,18 +1260,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; @@ -1143,20 +1282,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 { @@ -1164,54 +1304,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; @@ -1219,18 +1366,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; @@ -1239,20 +1388,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 { @@ -1260,54 +1410,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; @@ -1315,18 +1472,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1335,20 +1494,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1356,61 +1516,70 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail( - java.lang.String value) { + public Builder setStatusDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_ ; + private boolean cancelRequested_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1419,6 +1588,7 @@ public Builder setStatusDetailBytes(
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -1426,6 +1596,8 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1434,16 +1606,19 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1452,10 +1627,11 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1463,18 +1639,20 @@ public Builder clearCancelRequested() { 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; @@ -1483,20 +1661,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 { @@ -1504,61 +1683,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); } @@ -1568,12 +1754,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.common.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.common.OperationMetadata) private static final com.google.cloud.common.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.common.OperationMetadata(); } @@ -1582,27 +1768,27 @@ public static com.google.cloud.common.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1617,6 +1803,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.common.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java index 03b8d68c0be5..9d77fb3b23d3 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/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/common/operation_metadata.proto package com.google.cloud.common; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.common.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_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
    * 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 cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
    * 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/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java new file mode 100644 index 000000000000..7ed9837c9bbd --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java @@ -0,0 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/common/operation_metadata.proto + +package com.google.cloud.common; + +public final class OperationMetadataOuterClass { + private OperationMetadataOuterClass() {} + + 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_common_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_common_OperationMetadata_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/common/operation_metadata" + + ".proto\022\023google.cloud.common\032\037google/api/" + + "field_behavior.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\371\001\n\021OperationMetadata\0224\n\013c" + + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pro" + + "tobuf.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\032\n\rstatus_detail\030\005 " + + "\001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022" + + "\030\n\013api_version\030\007 \001(\tB\003\340A\003BV\n\027com.google." + + "cloud.commonP\001Z9google.golang.org/genpro" + + "to/googleapis/cloud/common;commonb\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_common_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_common_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusDetail", + "CancelRequested", + "ApiVersion", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java similarity index 67% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java index 7b29e1520769..3e8ea79012d8 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * A Filestore backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.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_ = ""; description_ = ""; @@ -31,51 +49,54 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_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 5: 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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Backup.class, com.google.cloud.filestore.v1beta1.Backup.Builder.class); + com.google.cloud.filestore.v1beta1.Backup.class, + com.google.cloud.filestore.v1beta1.Backup.Builder.class); } /** + * + * *
    * The backup state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Backup.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State not set.
      * 
@@ -84,6 +105,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Backup is being created.
      * 
@@ -92,6 +115,8 @@ public enum State */ CREATING(1), /** + * + * *
      * Backup has been taken and the operation is being finalized. At this
      * point, changes to the file share will not be reflected in the backup.
@@ -101,6 +126,8 @@ public enum State
      */
     FINALIZING(2),
     /**
+     *
+     *
      * 
      * Backup is available for use.
      * 
@@ -109,6 +136,8 @@ public enum State */ READY(3), /** + * + * *
      * Backup is being deleted.
      * 
@@ -120,6 +149,8 @@ public enum State ; /** + * + * *
      * State not set.
      * 
@@ -128,6 +159,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Backup is being created.
      * 
@@ -136,6 +169,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * Backup has been taken and the operation is being finalized. At this
      * point, changes to the file share will not be reflected in the backup.
@@ -145,6 +180,8 @@ public enum State
      */
     public static final int FINALIZING_VALUE = 2;
     /**
+     *
+     *
      * 
      * Backup is available for use.
      * 
@@ -153,6 +190,8 @@ public enum State */ public static final int READY_VALUE = 3; /** + * + * *
      * Backup is being deleted.
      * 
@@ -161,7 +200,6 @@ public enum State */ public static final int DELETING_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -186,51 +224,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 FINALIZING; - case 3: return READY; - case 4: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return FINALIZING; + case 3: + return READY; + case 4: + 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.filestore.v1beta1.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; @@ -250,12 +290,15 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -264,30 +307,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 resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -298,12 +341,15 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -312,30 +358,30 @@ 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; } } /** + * + * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; + * * @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 { @@ -346,38 +392,55 @@ public java.lang.String getDescription() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
    * Output only. The backup state.
    * 
* - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.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 backup state.
    * 
* - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup.State getState() { + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Backup.State result = com.google.cloud.filestore.v1beta1.Backup.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Backup.State result = + com.google.cloud.filestore.v1beta1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Backup.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -385,11 +448,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -397,11 +464,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -409,24 +479,23 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; + 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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_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() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_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() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -435,28 +504,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - @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(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -464,11 +535,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -476,16 +548,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @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; } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -493,12 +565,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5; */ @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(); } @@ -508,11 +579,14 @@ public java.lang.String getLabelsOrThrow( public static final int CAPACITY_GB_FIELD_NUMBER = 6; private long capacityGb_; /** + * + * *
    * Output only. Capacity of the source file share when the backup was created.
    * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The capacityGb. */ @java.lang.Override @@ -523,12 +597,15 @@ public long getCapacityGb() { public static final int STORAGE_BYTES_FIELD_NUMBER = 7; private long storageBytes_; /** + * + * *
    * Output only. The size of the storage used by the backup. As backups share storage,
    * this number is expected to change with backup creation/deletion.
    * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The storageBytes. */ @java.lang.Override @@ -539,6 +616,8 @@ public long getStorageBytes() { public static final int SOURCE_INSTANCE_FIELD_NUMBER = 8; private volatile java.lang.Object sourceInstance_; /** + * + * *
    * The resource name of the source Filestore instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -546,6 +625,7 @@ public long getStorageBytes() {
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @return The sourceInstance. */ @java.lang.Override @@ -554,14 +634,15 @@ public java.lang.String getSourceInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceInstance_ = s; return s; } } /** + * + * *
    * The resource name of the source Filestore instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -569,16 +650,15 @@ public java.lang.String getSourceInstance() {
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceInstance. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceInstanceBytes() { + public com.google.protobuf.ByteString getSourceInstanceBytes() { java.lang.Object ref = sourceInstance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceInstance_ = b; return b; } else { @@ -589,12 +669,15 @@ public java.lang.String getSourceInstance() { public static final int SOURCE_FILE_SHARE_FIELD_NUMBER = 9; private volatile java.lang.Object sourceFileShare_; /** + * + * *
    * Name of the file share in the source Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; + * * @return The sourceFileShare. */ @java.lang.Override @@ -603,30 +686,30 @@ public java.lang.String getSourceFileShare() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFileShare_ = s; return s; } } /** + * + * *
    * Name of the file share in the source Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; + * * @return The bytes for sourceFileShare. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceFileShareBytes() { + public com.google.protobuf.ByteString getSourceFileShareBytes() { java.lang.Object ref = sourceFileShare_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceFileShare_ = b; return b; } else { @@ -637,40 +720,56 @@ public java.lang.String getSourceFileShare() { public static final int SOURCE_INSTANCE_TIER_FIELD_NUMBER = 10; private int sourceInstanceTier_; /** + * + * *
    * Output only. The service tier of the source Filestore instance that this backup
    * is created from.
    * 
* - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for sourceInstanceTier. */ - @java.lang.Override public int getSourceInstanceTierValue() { + @java.lang.Override + public int getSourceInstanceTierValue() { return sourceInstanceTier_; } /** + * + * *
    * Output only. The service tier of the source Filestore instance that this backup
    * is created from.
    * 
* - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceInstanceTier. */ - @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.Tier getSourceInstanceTier() { + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Instance.Tier getSourceInstanceTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.Tier result = com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(sourceInstanceTier_); + com.google.cloud.filestore.v1beta1.Instance.Tier result = + com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(sourceInstanceTier_); return result == null ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED : result; } public static final int DOWNLOAD_BYTES_FIELD_NUMBER = 11; private long downloadBytes_; /** + * + * *
    * Output only. Amount of bytes that will be downloaded if the backup is restored
    * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The downloadBytes. */ @java.lang.Override @@ -681,11 +780,16 @@ public long getDownloadBytes() { public static final int SATISFIES_PZS_FIELD_NUMBER = 12; private com.google.protobuf.BoolValue satisfiesPzs_; /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the satisfiesPzs field is set. */ @java.lang.Override @@ -693,23 +797,34 @@ public boolean hasSatisfiesPzs() { return satisfiesPzs_ != null; } /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The satisfiesPzs. */ @java.lang.Override public com.google.protobuf.BoolValue getSatisfiesPzs() { - return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; } /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { @@ -719,11 +834,14 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { public static final int KMS_KEY_NAME_FIELD_NUMBER = 13; private volatile java.lang.Object kmsKeyName_; /** + * + * *
    * Immutable. KMS key name used for data encryption.
    * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKeyName. */ @java.lang.Override @@ -732,29 +850,29 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** + * + * *
    * Immutable. KMS key name used for data encryption.
    * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -763,6 +881,7 @@ public java.lang.String getKmsKeyName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -774,8 +893,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -788,12 +906,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (createTime_ != null) { output.writeMessage(4, getCreateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); if (capacityGb_ != 0L) { output.writeInt64(6, capacityGb_); } @@ -806,7 +920,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sourceFileShare_); } - if (sourceInstanceTier_ != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { + if (sourceInstanceTier_ + != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(10, sourceInstanceTier_); } if (downloadBytes_ != 0L) { @@ -834,30 +949,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1beta1.Backup.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); - } - 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(5, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + 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(5, labels__); } if (capacityGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, capacityGb_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, capacityGb_); } if (storageBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, storageBytes_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, storageBytes_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceInstance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceInstance_); @@ -865,17 +976,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sourceFileShare_); } - if (sourceInstanceTier_ != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, sourceInstanceTier_); + if (sourceInstanceTier_ + != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sourceInstanceTier_); } if (downloadBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, downloadBytes_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, downloadBytes_); } if (satisfiesPzs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getSatisfiesPzs()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSatisfiesPzs()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kmsKeyName_); @@ -888,43 +997,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.filestore.v1beta1.Backup)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.Backup other = (com.google.cloud.filestore.v1beta1.Backup) obj; + com.google.cloud.filestore.v1beta1.Backup other = + (com.google.cloud.filestore.v1beta1.Backup) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (getCapacityGb() - != other.getCapacityGb()) return false; - if (getStorageBytes() - != other.getStorageBytes()) return false; - if (!getSourceInstance() - .equals(other.getSourceInstance())) return false; - if (!getSourceFileShare() - .equals(other.getSourceFileShare())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getCapacityGb() != other.getCapacityGb()) return false; + if (getStorageBytes() != other.getStorageBytes()) return false; + if (!getSourceInstance().equals(other.getSourceInstance())) return false; + if (!getSourceFileShare().equals(other.getSourceFileShare())) return false; if (sourceInstanceTier_ != other.sourceInstanceTier_) return false; - if (getDownloadBytes() - != other.getDownloadBytes()) return false; + if (getDownloadBytes() != other.getDownloadBytes()) return false; if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { - if (!getSatisfiesPzs() - .equals(other.getSatisfiesPzs())) return false; + if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; } - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -951,11 +1050,9 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCapacityGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb()); 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) + SOURCE_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getSourceInstance().hashCode(); hash = (37 * hash) + SOURCE_FILE_SHARE_FIELD_NUMBER; @@ -963,8 +1060,7 @@ public int hashCode() { hash = (37 * hash) + SOURCE_INSTANCE_TIER_FIELD_NUMBER; hash = (53 * hash) + sourceInstanceTier_; hash = (37 * hash) + DOWNLOAD_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDownloadBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDownloadBytes()); if (hasSatisfiesPzs()) { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + getSatisfiesPzs().hashCode(); @@ -976,152 +1072,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1beta1.Backup parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1beta1.Backup parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.Backup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.Backup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.Backup parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.Backup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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; } /** + * + * *
    * A Filestore backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.Backup) com.google.cloud.filestore.v1beta1.BackupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: 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 5: 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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Backup.class, com.google.cloud.filestore.v1beta1.Backup.Builder.class); + com.google.cloud.filestore.v1beta1.Backup.class, + com.google.cloud.filestore.v1beta1.Backup.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.Backup.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1162,9 +1262,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; } @java.lang.Override @@ -1183,7 +1283,8 @@ public com.google.cloud.filestore.v1beta1.Backup build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup buildPartial() { - com.google.cloud.filestore.v1beta1.Backup result = new com.google.cloud.filestore.v1beta1.Backup(this); + com.google.cloud.filestore.v1beta1.Backup result = + new com.google.cloud.filestore.v1beta1.Backup(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -1215,38 +1316,39 @@ public com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.Backup) { - return mergeFrom((com.google.cloud.filestore.v1beta1.Backup)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.Backup) other); } else { super.mergeFrom(other); return this; @@ -1269,8 +1371,7 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Backup other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.getCapacityGb() != 0L) { setCapacityGb(other.getCapacityGb()); } @@ -1324,84 +1425,96 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - state_ = input.readEnum(); - - break; - } // case 24 - case 34: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 42 - case 48: { - capacityGb_ = input.readInt64(); - - break; - } // case 48 - case 56: { - storageBytes_ = input.readInt64(); - - break; - } // case 56 - case 66: { - sourceInstance_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - sourceFileShare_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 80: { - sourceInstanceTier_ = input.readEnum(); - - break; - } // case 80 - case 88: { - downloadBytes_ = input.readInt64(); - - break; - } // case 88 - case 98: { - input.readMessage( - getSatisfiesPzsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 98 - case 106: { - kmsKeyName_ = input.readStringRequireUtf8(); - - break; - } // case 106 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + + break; + } // case 24 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 42 + case 48: + { + capacityGb_ = input.readInt64(); + + break; + } // case 48 + case 56: + { + storageBytes_ = input.readInt64(); + + break; + } // case 56 + case 66: + { + sourceInstance_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + sourceFileShare_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 80: + { + sourceInstanceTier_ = input.readEnum(); + + break; + } // case 80 + case 88: + { + downloadBytes_ = input.readInt64(); + + break; + } // case 88 + case 98: + { + input.readMessage(getSatisfiesPzsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + case 106: + { + kmsKeyName_ = input.readStringRequireUtf8(); + + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1411,23 +1524,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1436,21 +1552,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1458,57 +1575,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * 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 resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + 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; @@ -1516,19 +1640,21 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @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; @@ -1537,21 +1663,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @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 { @@ -1559,57 +1686,64 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @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; } /** + * + * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @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; @@ -1617,51 +1751,73 @@ public Builder setDescriptionBytes( private int state_ = 0; /** + * + * *
      * Output only. The backup state.
      * 
* - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.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 backup state.
      * 
* - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.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 backup state.
      * 
* - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Backup.State result = com.google.cloud.filestore.v1beta1.Backup.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Backup.State result = + com.google.cloud.filestore.v1beta1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Backup.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The backup state.
      * 
* - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1669,21 +1825,26 @@ public Builder setState(com.google.cloud.filestore.v1beta1.Backup.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The backup state.
      * 
* - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1691,39 +1852,58 @@ public Builder clearState() { 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 when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1739,14 +1919,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1757,17 +1940,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1779,11 +1966,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1797,69 +1988,84 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time when the backup was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } - 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(); @@ -1871,28 +2077,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - @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(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1900,11 +2108,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1912,16 +2121,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @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; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1929,12 +2139,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5; */ @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(); } @@ -1942,74 +2151,74 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - - 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(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - 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; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - - 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 long capacityGb_ ; + private long capacityGb_; /** + * + * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The capacityGb. */ @java.lang.Override @@ -2017,43 +2226,52 @@ public long getCapacityGb() { return capacityGb_; } /** + * + * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } - private long storageBytes_ ; + private long storageBytes_; /** + * + * *
      * Output only. The size of the storage used by the backup. As backups share storage,
      * this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The storageBytes. */ @java.lang.Override @@ -2061,32 +2279,38 @@ public long getStorageBytes() { return storageBytes_; } /** + * + * *
      * Output only. The size of the storage used by the backup. As backups share storage,
      * this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.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 size of the storage used by the backup. As backups share storage,
      * this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStorageBytes() { - + storageBytes_ = 0L; onChanged(); return this; @@ -2094,6 +2318,8 @@ public Builder clearStorageBytes() { private java.lang.Object sourceInstance_ = ""; /** + * + * *
      * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -2101,13 +2327,13 @@ public Builder clearStorageBytes() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @return The sourceInstance. */ public java.lang.String getSourceInstance() { java.lang.Object ref = sourceInstance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceInstance_ = s; return s; @@ -2116,6 +2342,8 @@ public java.lang.String getSourceInstance() { } } /** + * + * *
      * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -2123,15 +2351,14 @@ public java.lang.String getSourceInstance() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceInstance. */ - public com.google.protobuf.ByteString - getSourceInstanceBytes() { + public com.google.protobuf.ByteString getSourceInstanceBytes() { java.lang.Object ref = sourceInstance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceInstance_ = b; return b; } else { @@ -2139,6 +2366,8 @@ public java.lang.String getSourceInstance() { } } /** + * + * *
      * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -2146,20 +2375,22 @@ public java.lang.String getSourceInstance() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @param value The sourceInstance to set. * @return This builder for chaining. */ - public Builder setSourceInstance( - java.lang.String value) { + public Builder setSourceInstance(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceInstance_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -2167,15 +2398,18 @@ public Builder setSourceInstance(
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearSourceInstance() { - + sourceInstance_ = getDefaultInstance().getSourceInstance(); onChanged(); return this; } /** + * + * *
      * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -2183,16 +2417,16 @@ public Builder clearSourceInstance() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for sourceInstance to set. * @return This builder for chaining. */ - public Builder setSourceInstanceBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceInstanceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceInstance_ = value; onChanged(); return this; @@ -2200,19 +2434,21 @@ public Builder setSourceInstanceBytes( private java.lang.Object sourceFileShare_ = ""; /** + * + * *
      * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; + * * @return The sourceFileShare. */ public java.lang.String getSourceFileShare() { java.lang.Object ref = sourceFileShare_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFileShare_ = s; return s; @@ -2221,21 +2457,22 @@ public java.lang.String getSourceFileShare() { } } /** + * + * *
      * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; + * * @return The bytes for sourceFileShare. */ - public com.google.protobuf.ByteString - getSourceFileShareBytes() { + public com.google.protobuf.ByteString getSourceFileShareBytes() { java.lang.Object ref = sourceFileShare_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceFileShare_ = b; return b; } else { @@ -2243,57 +2480,64 @@ public java.lang.String getSourceFileShare() { } } /** + * + * *
      * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; + * * @param value The sourceFileShare to set. * @return This builder for chaining. */ - public Builder setSourceFileShare( - java.lang.String value) { + public Builder setSourceFileShare(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceFileShare_ = value; onChanged(); return this; } /** + * + * *
      * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; + * * @return This builder for chaining. */ public Builder clearSourceFileShare() { - + sourceFileShare_ = getDefaultInstance().getSourceFileShare(); onChanged(); return this; } /** + * + * *
      * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; + * * @param value The bytes for sourceFileShare to set. * @return This builder for chaining. */ - public Builder setSourceFileShareBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceFileShareBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceFileShare_ = value; onChanged(); return this; @@ -2301,55 +2545,79 @@ public Builder setSourceFileShareBytes( private int sourceInstanceTier_ = 0; /** + * + * *
      * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for sourceInstanceTier. */ - @java.lang.Override public int getSourceInstanceTierValue() { + @java.lang.Override + public int getSourceInstanceTierValue() { return sourceInstanceTier_; } /** + * + * *
      * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for sourceInstanceTier to set. * @return This builder for chaining. */ public Builder setSourceInstanceTierValue(int value) { - + sourceInstanceTier_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceInstanceTier. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.Tier getSourceInstanceTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.Tier result = com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(sourceInstanceTier_); - return result == null ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED : result; + com.google.cloud.filestore.v1beta1.Instance.Tier result = + com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(sourceInstanceTier_); + return result == null + ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The sourceInstanceTier to set. * @return This builder for chaining. */ @@ -2357,34 +2625,42 @@ public Builder setSourceInstanceTier(com.google.cloud.filestore.v1beta1.Instance if (value == null) { throw new NullPointerException(); } - + sourceInstanceTier_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearSourceInstanceTier() { - + sourceInstanceTier_ = 0; onChanged(); return this; } - private long downloadBytes_ ; + private long downloadBytes_; /** + * + * *
      * Output only. Amount of bytes that will be downloaded if the backup is restored
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The downloadBytes. */ @java.lang.Override @@ -2392,30 +2668,36 @@ public long getDownloadBytes() { return downloadBytes_; } /** + * + * *
      * Output only. Amount of bytes that will be downloaded if the backup is restored
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The downloadBytes to set. * @return This builder for chaining. */ public Builder setDownloadBytes(long value) { - + downloadBytes_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Amount of bytes that will be downloaded if the backup is restored
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDownloadBytes() { - + downloadBytes_ = 0L; onChanged(); return this; @@ -2423,39 +2705,58 @@ public Builder clearDownloadBytes() { private com.google.protobuf.BoolValue satisfiesPzs_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> satisfiesPzsBuilder_; + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + satisfiesPzsBuilder_; /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the satisfiesPzs field is set. */ public boolean hasSatisfiesPzs() { return satisfiesPzsBuilder_ != null || satisfiesPzs_ != null; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The satisfiesPzs. */ public com.google.protobuf.BoolValue getSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { - return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; } else { return satisfiesPzsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { @@ -2471,14 +2772,17 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSatisfiesPzs( - com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue) { if (satisfiesPzsBuilder_ == null) { satisfiesPzs_ = builderForValue.build(); onChanged(); @@ -2489,17 +2793,23 @@ public Builder setSatisfiesPzs( return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { if (satisfiesPzs_ != null) { satisfiesPzs_ = - com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_).mergeFrom(value).buildPartial(); + com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_) + .mergeFrom(value) + .buildPartial(); } else { satisfiesPzs_ = value; } @@ -2511,11 +2821,15 @@ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { @@ -2529,48 +2843,64 @@ public Builder clearSatisfiesPzs() { return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder() { - + onChanged(); return getSatisfiesPzsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { if (satisfiesPzsBuilder_ != null) { return satisfiesPzsBuilder_.getMessageOrBuilder(); } else { - return satisfiesPzs_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; } } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> getSatisfiesPzsFieldBuilder() { if (satisfiesPzsBuilder_ == null) { - satisfiesPzsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getSatisfiesPzs(), - getParentForChildren(), - isClean()); + satisfiesPzsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getSatisfiesPzs(), getParentForChildren(), isClean()); satisfiesPzs_ = null; } return satisfiesPzsBuilder_; @@ -2578,18 +2908,20 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * Immutable. KMS key name used for data encryption.
      * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -2598,20 +2930,21 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Immutable. KMS key name used for data encryption.
      * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -2619,61 +2952,68 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Immutable. KMS key name used for data encryption.
      * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { + public Builder setKmsKeyName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. KMS key name used for data encryption.
      * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** + * + * *
      * Immutable. KMS key name used for data encryption.
      * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = 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); } @@ -2683,12 +3023,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.Backup) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.Backup) private static final com.google.cloud.filestore.v1beta1.Backup DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.Backup(); } @@ -2697,27 +3037,27 @@ public static com.google.cloud.filestore.v1beta1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2732,6 +3072,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.Backup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java similarity index 71% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java index ba0f8914cd58..d9e1d4e6603e 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java @@ -1,103 +1,152 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface BackupOrBuilder extends +public interface BackupOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.Backup) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The backup state.
    * 
* - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The backup state.
    * 
* - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.filestore.v1beta1.Backup.State getState(); /** + * + * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -106,30 +155,31 @@ public interface BackupOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - 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(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -138,43 +188,51 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Output only. Capacity of the source file share when the backup was created.
    * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The capacityGb. */ long getCapacityGb(); /** + * + * *
    * Output only. The size of the storage used by the backup. As backups share storage,
    * this number is expected to change with backup creation/deletion.
    * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The storageBytes. */ long getStorageBytes(); /** + * + * *
    * The resource name of the source Filestore instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -182,10 +240,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @return The sourceInstance. */ java.lang.String getSourceInstance(); /** + * + * *
    * The resource name of the source Filestore instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
@@ -193,108 +254,145 @@ java.lang.String getLabelsOrThrow(
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceInstance. */ - com.google.protobuf.ByteString - getSourceInstanceBytes(); + com.google.protobuf.ByteString getSourceInstanceBytes(); /** + * + * *
    * Name of the file share in the source Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; + * * @return The sourceFileShare. */ java.lang.String getSourceFileShare(); /** + * + * *
    * Name of the file share in the source Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; + * * @return The bytes for sourceFileShare. */ - com.google.protobuf.ByteString - getSourceFileShareBytes(); + com.google.protobuf.ByteString getSourceFileShareBytes(); /** + * + * *
    * Output only. The service tier of the source Filestore instance that this backup
    * is created from.
    * 
* - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for sourceInstanceTier. */ int getSourceInstanceTierValue(); /** + * + * *
    * Output only. The service tier of the source Filestore instance that this backup
    * is created from.
    * 
* - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceInstanceTier. */ com.google.cloud.filestore.v1beta1.Instance.Tier getSourceInstanceTier(); /** + * + * *
    * Output only. Amount of bytes that will be downloaded if the backup is restored
    * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The downloadBytes. */ long getDownloadBytes(); /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the satisfiesPzs field is set. */ boolean hasSatisfiesPzs(); /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The satisfiesPzs. */ com.google.protobuf.BoolValue getSatisfiesPzs(); /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); /** + * + * *
    * Immutable. KMS key name used for data encryption.
    * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * Immutable. KMS key name used for data encryption.
    * 
* * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java new file mode 100644 index 000000000000..b1e955c7dee7 --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java @@ -0,0 +1,888 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public final class CloudFilestoreServiceProto { + private CloudFilestoreServiceProto() {} + + 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_filestore_v1beta1_NetworkConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Share_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_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\"2/v" + + "1beta1/{parent=projects/*/locations/*}/i" + + "nstances:\010instance\332A\033parent,instance,ins" + + "tance_id\312A1\n\010Instance\022%google.cloud.comm" + + "on.OperationMetadata\022\201\002\n\016UpdateInstance\022" + + "5.google.cloud.filestore.v1beta1.UpdateI" + + "nstanceRequest\032\035.google.longrunning.Oper" + + "ation\"\230\001\202\323\344\223\002G2;/v1beta1/{instance.name=" + + "projects/*/locations/*/instances/*}:\010ins" + + "tance\332A\024instance,update_mask\312A1\n\010Instanc" + + "e\022%google.cloud.common.OperationMetadata" + + "\022\343\001\n\017RestoreInstance\0226.google.cloud.file" + + "store.v1beta1.RestoreInstanceRequest\032\035.g" + + "oogle.longrunning.Operation\"y\202\323\344\223\002?\":/v1" + + "beta1/{name=projects/*/locations/*/insta" + + "nces/*}:restore:\001*\312A1\n\010Instance\022%google." + + "cloud.common.OperationMetadata\022\340\001\n\016Rever" + + "tInstance\0225.google.cloud.filestore.v1bet" + + "a1.RevertInstanceRequest\032\035.google.longru" + + "nning.Operation\"x\202\323\344\223\002>\"9/v1beta1/{name=" + + "projects/*/locations/*/instances/*}:reve" + + "rt:\001*\312A1\n\010Instance\022%google.cloud.common." + + "OperationMetadata\022\353\001\n\016DeleteInstance\0225.g" + + "oogle.cloud.filestore.v1beta1.DeleteInst" + + "anceRequest\032\035.google.longrunning.Operati" + + "on\"\202\001\202\323\344\223\0024*2/v1beta1/{name=projects/*/l" + + "ocations/*/instances/*}\332A\004name\312A>\n\025googl" + + "e.protobuf.Empty\022%google.cloud.common.Op" + + "erationMetadata\022\315\001\n\rListSnapshots\0224.goog" + + "le.cloud.filestore.v1beta1.ListSnapshots" + + "Request\0325.google.cloud.filestore.v1beta1" + + ".ListSnapshotsResponse\"O\202\323\344\223\002@\022>/v1beta1" + + "/{parent=projects/*/locations/*/instance" + + "s/*}/snapshots\332A\006parent\022\272\001\n\013GetSnapshot\022" + + "2.google.cloud.filestore.v1beta1.GetSnap" + + "shotRequest\032(.google.cloud.filestore.v1b" + + "eta1.Snapshot\"M\202\323\344\223\002@\022>/v1beta1/{name=pr" + + "ojects/*/locations/*/instances/*/snapsho" + + "ts/*}\332A\004name\022\213\002\n\016CreateSnapshot\0225.google" + + ".cloud.filestore.v1beta1.CreateSnapshotR" + + "equest\032\035.google.longrunning.Operation\"\242\001" + + "\202\323\344\223\002J\">/v1beta1/{parent=projects/*/loca" + + "tions/*/instances/*}/snapshots:\010snapshot" + + "\332A\033parent,snapshot,snapshot_id\312A1\n\010Snaps" + + "hot\022%google.cloud.common.OperationMetada" + + "ta\022\367\001\n\016DeleteSnapshot\0225.google.cloud.fil" + + "estore.v1beta1.DeleteSnapshotRequest\032\035.g" + + "oogle.longrunning.Operation\"\216\001\202\323\344\223\002@*>/v" + + "1beta1/{name=projects/*/locations/*/inst" + + "ances/*/snapshots/*}\332A\004name\312A>\n\025google.p" + + "rotobuf.Empty\022%google.cloud.common.Opera" + + "tionMetadata\022\215\002\n\016UpdateSnapshot\0225.google" + + ".cloud.filestore.v1beta1.UpdateSnapshotR" + + "equest\032\035.google.longrunning.Operation\"\244\001" + + "\202\323\344\223\002S2G/v1beta1/{snapshot.name=projects" + + "/*/locations/*/instances/*/snapshots/*}:" + + "\010snapshot\332A\024snapshot,update_mask\312A1\n\010Sna" + + "pshot\022%google.cloud.common.OperationMeta" + + "data\022\271\001\n\013ListBackups\0222.google.cloud.file" + + "store.v1beta1.ListBackupsRequest\0323.googl" + + "e.cloud.filestore.v1beta1.ListBackupsRes" + + "ponse\"A\202\323\344\223\0022\0220/v1beta1/{parent=projects" + + "/*/locations/*}/backups\332A\006parent\022\246\001\n\tGet" + + "Backup\0220.google.cloud.filestore.v1beta1." + + "GetBackupRequest\032&.google.cloud.filestor" + + "e.v1beta1.Backup\"?\202\323\344\223\0022\0220/v1beta1/{name" + + "=projects/*/locations/*/backups/*}\332A\004nam" + + "e\022\361\001\n\014CreateBackup\0223.google.cloud.filest" + + "ore.v1beta1.CreateBackupRequest\032\035.google" + + ".longrunning.Operation\"\214\001\202\323\344\223\002:\"0/v1beta" + + "1/{parent=projects/*/locations/*}/backup" + + "s:\006backup\332A\027parent,backup,backup_id\312A/\n\006" + + "Backup\022%google.cloud.common.OperationMet" + + "adata\022\345\001\n\014DeleteBackup\0223.google.cloud.fi" + + "lestore.v1beta1.DeleteBackupRequest\032\035.go" + + "ogle.longrunning.Operation\"\200\001\202\323\344\223\0022*0/v1" + + "beta1/{name=projects/*/locations/*/backu" + + "ps/*}\332A\004name\312A>\n\025google.protobuf.Empty\022%" + + "google.cloud.common.OperationMetadata\022\363\001" + + "\n\014UpdateBackup\0223.google.cloud.filestore." + + "v1beta1.UpdateBackupRequest\032\035.google.lon" + + "grunning.Operation\"\216\001\202\323\344\223\002A27/v1beta1/{b" + + "ackup.name=projects/*/locations/*/backup" + + "s/*}:\006backup\332A\022backup,update_mask\312A/\n\006Ba" + + "ckup\022%google.cloud.common.OperationMetad" + + "ata\022\301\001\n\nListShares\0221.google.cloud.filest" + + "ore.v1beta1.ListSharesRequest\0322.google.c" + + "loud.filestore.v1beta1.ListSharesRespons" + + "e\"L\202\323\344\223\002=\022;/v1beta1/{parent=projects/*/l" + + "ocations/*/instances/*}/shares\332A\006parent\022" + + "\256\001\n\010GetShare\022/.google.cloud.filestore.v1" + + "beta1.GetShareRequest\032%.google.cloud.fil" + + "estore.v1beta1.Share\"J\202\323\344\223\002=\022;/v1beta1/{" + + "name=projects/*/locations/*/instances/*/" + + "shares/*}\332A\004name\022\366\001\n\013CreateShare\0222.googl" + + "e.cloud.filestore.v1beta1.CreateShareReq" + + "uest\032\035.google.longrunning.Operation\"\223\001\202\323" + + "\344\223\002D\";/v1beta1/{parent=projects/*/locati" + + "ons/*/instances/*}/shares:\005share\332A\025paren" + + "t,share,share_id\312A.\n\005Share\022%google.cloud" + + ".common.OperationMetadata\022\356\001\n\013DeleteShar" + + "e\0222.google.cloud.filestore.v1beta1.Delet" + + "eShareRequest\032\035.google.longrunning.Opera" + + "tion\"\213\001\202\323\344\223\002=*;/v1beta1/{name=projects/*" + + "/locations/*/instances/*/shares/*}\332A\004nam" + + "e\312A>\n\025google.protobuf.Empty\022%google.clou" + + "d.common.OperationMetadata\022\370\001\n\013UpdateSha" + + "re\0222.google.cloud.filestore.v1beta1.Upda" + + "teShareRequest\032\035.google.longrunning.Oper" + + "ation\"\225\001\202\323\344\223\002J2A/v1beta1/{share.name=pro" + + "jects/*/locations/*/instances/*/shares/*" + + "}:\005share\332A\021share,update_mask\312A.\n\005Share\022%" + + "google.cloud.common.OperationMetadata\032G\312" + + "A\023file.googleapis.com\322A.https://www.goog" + + "leapis.com/auth/cloud-platformB\315\001\n\"com.g" + + "oogle.cloud.filestore.v1beta1B\032CloudFile" + + "storeServiceProtoP\001ZGgoogle.golang.org/g" + + "enproto/googleapis/cloud/filestore/v1bet" + + "a1;filestore\252\002\036Google.Cloud.Filestore.V1" + + "Beta1\312\002\036Google\\Cloud\\Filestore\\V1beta1b\006" + + "proto3" + }; + 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.common.OperationMetadataOuterClass.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor, + new java.lang.String[] { + "Network", "Modes", "ReservedIpRange", "IpAddresses", "ConnectMode", + }); + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor, + new java.lang.String[] { + "Name", "CapacityGb", "SourceBackup", "NfsExportOptions", "Source", + }); + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor, + new java.lang.String[] { + "IpRanges", "AccessMode", "SquashMode", "AnonUid", "AnonGid", + }); + internal_static_google_cloud_filestore_v1beta1_Instance_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Instance_descriptor, + new java.lang.String[] { + "Name", + "Description", + "State", + "StatusMessage", + "CreateTime", + "Tier", + "Labels", + "FileShares", + "Networks", + "Etag", + "SatisfiesPzs", + "KmsKeyName", + "SuspensionReasons", + "MaxCapacityGb", + "CapacityStepSizeGb", + "MaxShareCount", + "CapacityGb", + "MultiShareEnabled", + }); + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1beta1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor, + new java.lang.String[] { + "Parent", "InstanceId", "Instance", + }); + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Instance", + }); + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor, + new java.lang.String[] { + "Name", "FileShare", "SourceSnapshot", "SourceBackup", "Source", + }); + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor, + new java.lang.String[] { + "Name", "TargetSnapshotId", + }); + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "OrderBy", "Filter", + }); + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor, + new java.lang.String[] { + "Instances", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor, + new java.lang.String[] { + "Name", "Description", "State", "CreateTime", "Labels", "FilesystemUsedBytes", + }); + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor, + new java.lang.String[] { + "Parent", "SnapshotId", "Snapshot", + }); + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Snapshot", + }); + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "OrderBy", "Filter", + }); + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor, + new java.lang.String[] { + "Snapshots", "NextPageToken", + }); + internal_static_google_cloud_filestore_v1beta1_Backup_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Backup_descriptor, + new java.lang.String[] { + "Name", + "Description", + "State", + "CreateTime", + "Labels", + "CapacityGb", + "StorageBytes", + "SourceInstance", + "SourceFileShare", + "SourceInstanceTier", + "DownloadBytes", + "SatisfiesPzs", + "KmsKeyName", + }); + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1beta1_Backup_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor, + new java.lang.String[] { + "Parent", "Backup", "BackupId", + }); + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor, + new java.lang.String[] { + "Backup", "UpdateMask", + }); + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "OrderBy", "Filter", + }); + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor, + new java.lang.String[] { + "Backups", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_filestore_v1beta1_Share_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Share_descriptor, + new java.lang.String[] { + "Name", + "MountName", + "Description", + "CapacityGb", + "NfsExportOptions", + "State", + "CreateTime", + "Labels", + }); + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1beta1_Share_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor, + new java.lang.String[] { + "Parent", "ShareId", "Share", + }); + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "OrderBy", "Filter", + }); + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor, + new java.lang.String[] { + "Shares", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor, + new java.lang.String[] { + "Share", "UpdateMask", + }); + 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.resource); + 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.common.OperationMetadataOuterClass.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java similarity index 66% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java index 091473c4de7b..c0612a3e8447 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * CreateBackupRequest creates a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.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,39 +44,45 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, com.google.cloud.filestore.v1beta1.CreateBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, + com.google.cloud.filestore.v1beta1.CreateBackupRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The backup's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,31 +91,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The backup's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * string parent = 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 { @@ -102,11 +128,16 @@ public java.lang.String getParent() { public static final int BACKUP_FIELD_NUMBER = 2; private com.google.cloud.filestore.v1beta1.Backup backup_; /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backup field is set. */ @java.lang.Override @@ -114,23 +145,34 @@ public boolean hasBackup() { return backup_ != null; } /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup getBackup() { - return backup_ == null ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; + return backup_ == null + ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() + : backup_; } /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { @@ -140,6 +182,8 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { public static final int BACKUP_ID_FIELD_NUMBER = 3; private volatile java.lang.Object backupId_; /** + * + * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -148,6 +192,7 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() {
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The backupId. */ @java.lang.Override @@ -156,14 +201,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; } } /** + * + * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -172,16 +218,15 @@ public java.lang.String getBackupId() {
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -190,6 +235,7 @@ public java.lang.String getBackupId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +247,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -225,8 +270,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_); @@ -239,22 +283,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.filestore.v1beta1.CreateBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.CreateBackupRequest other = (com.google.cloud.filestore.v1beta1.CreateBackupRequest) obj; + com.google.cloud.filestore.v1beta1.CreateBackupRequest other = + (com.google.cloud.filestore.v1beta1.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -280,129 +322,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.CreateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.CreateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.CreateBackupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.CreateBackupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.CreateBackupRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.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; } /** + * + * *
    * CreateBackupRequest creates a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.CreateBackupRequest) com.google.cloud.filestore.v1beta1.CreateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, com.google.cloud.filestore.v1beta1.CreateBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, + com.google.cloud.filestore.v1beta1.CreateBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.CreateBackupRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; } @java.lang.Override @@ -441,7 +490,8 @@ public com.google.cloud.filestore.v1beta1.CreateBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.CreateBackupRequest buildPartial() { - com.google.cloud.filestore.v1beta1.CreateBackupRequest result = new com.google.cloud.filestore.v1beta1.CreateBackupRequest(this); + com.google.cloud.filestore.v1beta1.CreateBackupRequest result = + new com.google.cloud.filestore.v1beta1.CreateBackupRequest(this); result.parent_ = parent_; if (backupBuilder_ == null) { result.backup_ = backup_; @@ -457,38 +507,39 @@ public com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.CreateBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.CreateBackupRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.CreateBackupRequest) other); } else { super.mergeFrom(other); return this; @@ -496,7 +547,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.CreateBackupRequest other) { - if (other == com.google.cloud.filestore.v1beta1.CreateBackupRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.CreateBackupRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -534,29 +586,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getBackupFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - backupId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + backupId_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -569,20 +623,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The backup's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * string parent = 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; @@ -591,22 +649,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The backup's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * string parent = 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 { @@ -614,60 +675,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The backup's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * 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's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * string 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's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * 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; @@ -675,39 +749,58 @@ public Builder setParentBytes( private com.google.cloud.filestore.v1beta1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> backupBuilder_; + com.google.cloud.filestore.v1beta1.Backup, + com.google.cloud.filestore.v1beta1.Backup.Builder, + com.google.cloud.filestore.v1beta1.BackupOrBuilder> + backupBuilder_; /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backup field is set. */ public boolean hasBackup() { return backupBuilder_ != null || backup_ != null; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ public com.google.cloud.filestore.v1beta1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; + return backup_ == null + ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() + : backup_; } else { return backupBuilder_.getMessage(); } } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup value) { if (backupBuilder_ == null) { @@ -723,14 +816,17 @@ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup value) { return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBackup( - com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) { + public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -741,17 +837,23 @@ public Builder setBackup( return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBackup(com.google.cloud.filestore.v1beta1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.filestore.v1beta1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); + com.google.cloud.filestore.v1beta1.Backup.newBuilder(backup_) + .mergeFrom(value) + .buildPartial(); } else { backup_ = value; } @@ -763,11 +865,15 @@ public Builder mergeBackup(com.google.cloud.filestore.v1beta1.Backup value) { return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBackup() { if (backupBuilder_ == null) { @@ -781,48 +887,64 @@ public Builder clearBackup() { return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null ? - com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; + return backup_ == null + ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() + : backup_; } } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> + com.google.cloud.filestore.v1beta1.Backup, + com.google.cloud.filestore.v1beta1.Backup.Builder, + com.google.cloud.filestore.v1beta1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder>( - getBackup(), - getParentForChildren(), - isClean()); + backupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Backup, + com.google.cloud.filestore.v1beta1.Backup.Builder, + com.google.cloud.filestore.v1beta1.BackupOrBuilder>( + getBackup(), getParentForChildren(), isClean()); backup_ = null; } return backupBuilder_; @@ -830,6 +952,8 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { private java.lang.Object backupId_ = ""; /** + * + * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -838,13 +962,13 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -853,6 +977,8 @@ public java.lang.String getBackupId() { } } /** + * + * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -861,15 +987,14 @@ public java.lang.String getBackupId() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -877,6 +1002,8 @@ public java.lang.String getBackupId() { } } /** + * + * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -885,20 +1012,22 @@ public java.lang.String getBackupId() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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; } /** + * + * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -907,15 +1036,18 @@ public Builder setBackupId(
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearBackupId() { - + backupId_ = getDefaultInstance().getBackupId(); onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -924,23 +1056,23 @@ public Builder clearBackupId() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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); } @@ -950,12 +1082,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.CreateBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.CreateBackupRequest) private static final com.google.cloud.filestore.v1beta1.CreateBackupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.CreateBackupRequest(); } @@ -964,27 +1096,27 @@ public static com.google.cloud.filestore.v1beta1.CreateBackupRequest getDefaultI 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -999,6 +1131,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.CreateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java index 7b424e422780..8c671834baec 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java @@ -1,64 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface CreateBackupRequestOrBuilder extends +public interface CreateBackupRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.CreateBackupRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The backup's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * string parent = 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's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * string parent = 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. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backup field is set. */ boolean hasBackup(); /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ com.google.cloud.filestore.v1beta1.Backup getBackup(); /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder(); /** + * + * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -67,10 +108,13 @@ public interface CreateBackupRequestOrBuilder extends
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The backupId. */ java.lang.String getBackupId(); /** + * + * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -79,8 +123,8 @@ public interface CreateBackupRequestOrBuilder extends
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for backupId. */ - com.google.protobuf.ByteString - getBackupIdBytes(); + com.google.protobuf.ByteString getBackupIdBytes(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java similarity index 66% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java index ba0dd36a7877..98840df7c52b 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * CreateInstanceRequest creates an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateInstanceRequest} */ -public final class CreateInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.CreateInstanceRequest) CreateInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateInstanceRequest.newBuilder() to construct. private CreateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateInstanceRequest() { parent_ = ""; instanceId_ = ""; @@ -26,39 +44,45 @@ private CreateInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, com.google.cloud.filestore.v1beta1.CreateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, + com.google.cloud.filestore.v1beta1.CreateInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,31 +91,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * string parent = 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 { @@ -102,6 +128,8 @@ public java.lang.String getParent() { public static final int INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** + * + * *
    * Required. The ID of the instance to create.
    * The ID must be unique within the specified project and location.
@@ -110,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ @java.lang.Override @@ -118,14 +147,15 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** + * + * *
    * Required. The ID of the instance to create.
    * The ID must be unique within the specified project and location.
@@ -134,16 +164,15 @@ public java.lang.String getInstanceId() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstanceIdBytes() { + public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instanceId_ = b; return b; } else { @@ -154,11 +183,16 @@ public java.lang.String getInstanceId() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.cloud.filestore.v1beta1.Instance instance_; /** + * + * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ @java.lang.Override @@ -166,23 +200,34 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance getInstance() { - return instance_ == null ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() + : instance_; } /** + * + * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { @@ -190,6 +235,7 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +247,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -228,8 +273,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInstance()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -239,21 +283,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.filestore.v1beta1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.CreateInstanceRequest other = (com.google.cloud.filestore.v1beta1.CreateInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.CreateInstanceRequest other = + (com.google.cloud.filestore.v1beta1.CreateInstanceRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getInstanceId() - .equals(other.getInstanceId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getInstanceId().equals(other.getInstanceId())) return false; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance() - .equals(other.getInstance())) return false; + if (!getInstance().equals(other.getInstance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -280,129 +322,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( - java.nio.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.filestore.v1beta1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.CreateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.CreateInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.CreateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * CreateInstanceRequest creates an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.CreateInstanceRequest) com.google.cloud.filestore.v1beta1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, com.google.cloud.filestore.v1beta1.CreateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, + com.google.cloud.filestore.v1beta1.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.CreateInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -441,7 +490,8 @@ public com.google.cloud.filestore.v1beta1.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.CreateInstanceRequest buildPartial() { - com.google.cloud.filestore.v1beta1.CreateInstanceRequest result = new com.google.cloud.filestore.v1beta1.CreateInstanceRequest(this); + com.google.cloud.filestore.v1beta1.CreateInstanceRequest result = + new com.google.cloud.filestore.v1beta1.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (instanceBuilder_ == null) { @@ -457,38 +507,39 @@ public com.google.cloud.filestore.v1beta1.CreateInstanceRequest 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.filestore.v1beta1.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.CreateInstanceRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.CreateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -496,7 +547,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.CreateInstanceRequest other) { - if (other == com.google.cloud.filestore.v1beta1.CreateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.CreateInstanceRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -534,29 +586,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - instanceId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + instanceId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getInstanceFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -569,20 +623,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * string parent = 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; @@ -591,22 +649,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * string parent = 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 { @@ -614,60 +675,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * 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 instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * string 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 instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * 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; @@ -675,6 +749,8 @@ public Builder setParentBytes( private java.lang.Object instanceId_ = ""; /** + * + * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -683,13 +759,13 @@ public Builder setParentBytes(
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -698,6 +774,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -706,15 +784,14 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString - getInstanceIdBytes() { + public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instanceId_ = b; return b; } else { @@ -722,6 +799,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -730,20 +809,22 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId( - java.lang.String value) { + public Builder setInstanceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -752,15 +833,18 @@ public Builder setInstanceId(
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -769,16 +853,16 @@ public Builder clearInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -786,39 +870,58 @@ public Builder setInstanceIdBytes( private com.google.cloud.filestore.v1beta1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> instanceBuilder_; + com.google.cloud.filestore.v1beta1.Instance, + com.google.cloud.filestore.v1beta1.Instance.Builder, + com.google.cloud.filestore.v1beta1.InstanceOrBuilder> + instanceBuilder_; /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ public com.google.cloud.filestore.v1beta1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance(com.google.cloud.filestore.v1beta1.Instance value) { if (instanceBuilder_ == null) { @@ -834,11 +937,15 @@ public Builder setInstance(com.google.cloud.filestore.v1beta1.Instance value) { return this; } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance( com.google.cloud.filestore.v1beta1.Instance.Builder builderForValue) { @@ -852,17 +959,23 @@ public Builder setInstance( return this; } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstance(com.google.cloud.filestore.v1beta1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.filestore.v1beta1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.filestore.v1beta1.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -874,11 +987,15 @@ public Builder mergeInstance(com.google.cloud.filestore.v1beta1.Instance value) return this; } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -892,55 +1009,71 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> + com.google.cloud.filestore.v1beta1.Instance, + com.google.cloud.filestore.v1beta1.Instance.Builder, + com.google.cloud.filestore.v1beta1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Instance, + com.google.cloud.filestore.v1beta1.Instance.Builder, + com.google.cloud.filestore.v1beta1.InstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); instance_ = null; } return instanceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -950,12 +1083,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.CreateInstanceRequest) private static final com.google.cloud.filestore.v1beta1.CreateInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.CreateInstanceRequest(); } @@ -964,27 +1097,27 @@ public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -999,6 +1132,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java index 729082e25bf3..3feed1ab7be4 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java @@ -1,37 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface CreateInstanceRequestOrBuilder extends +public interface CreateInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.CreateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * string parent = 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 instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * string parent = 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 ID of the instance to create.
    * The ID must be unique within the specified project and location.
@@ -40,10 +67,13 @@ public interface CreateInstanceRequestOrBuilder extends
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ java.lang.String getInstanceId(); /** + * + * *
    * Required. The ID of the instance to create.
    * The ID must be unique within the specified project and location.
@@ -52,35 +82,49 @@ public interface CreateInstanceRequestOrBuilder extends
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString - getInstanceIdBytes(); + com.google.protobuf.ByteString getInstanceIdBytes(); /** + * + * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ com.google.cloud.filestore.v1beta1.Instance getInstance(); /** + * + * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java similarity index 65% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java index 1cc76aaa7428..2a0395f8b606 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * CreateShareRequest creates a share.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateShareRequest} */ -public final class CreateShareRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateShareRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.CreateShareRequest) CreateShareRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateShareRequest.newBuilder() to construct. private CreateShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateShareRequest() { parent_ = ""; shareId_ = ""; @@ -26,38 +44,44 @@ private CreateShareRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateShareRequest.class, com.google.cloud.filestore.v1beta1.CreateShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateShareRequest.class, + com.google.cloud.filestore.v1beta1.CreateShareRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The Filestore Instance to create the share for, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,30 +90,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 Filestore Instance to create the share for, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -100,6 +126,8 @@ public java.lang.String getParent() { public static final int SHARE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object shareId_; /** + * + * *
    * Required. The ID to use for the share.
    * The ID must be unique within the specified instance.
@@ -108,6 +136,7 @@ public java.lang.String getParent() {
    * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The shareId. */ @java.lang.Override @@ -116,14 +145,15 @@ public java.lang.String getShareId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for the share.
    * The ID must be unique within the specified instance.
@@ -132,16 +162,15 @@ public java.lang.String getShareId() {
    * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for shareId. */ @java.lang.Override - public com.google.protobuf.ByteString - getShareIdBytes() { + public com.google.protobuf.ByteString getShareIdBytes() { java.lang.Object ref = shareId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shareId_ = b; return b; } else { @@ -152,11 +181,16 @@ public java.lang.String getShareId() { public static final int SHARE_FIELD_NUMBER = 3; private com.google.cloud.filestore.v1beta1.Share share_; /** + * + * *
    * Required. A share resource
    * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the share field is set. */ @java.lang.Override @@ -164,11 +198,16 @@ public boolean hasShare() { return share_ != null; } /** + * + * *
    * Required. A share resource
    * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The share. */ @java.lang.Override @@ -176,11 +215,15 @@ public com.google.cloud.filestore.v1beta1.Share getShare() { return share_ == null ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; } /** + * + * *
    * Required. A share resource
    * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { @@ -188,6 +231,7 @@ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,8 +243,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -226,8 +269,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shareId_); } if (share_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getShare()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getShare()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -237,21 +279,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.filestore.v1beta1.CreateShareRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.CreateShareRequest other = (com.google.cloud.filestore.v1beta1.CreateShareRequest) obj; + com.google.cloud.filestore.v1beta1.CreateShareRequest other = + (com.google.cloud.filestore.v1beta1.CreateShareRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getShareId() - .equals(other.getShareId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getShareId().equals(other.getShareId())) return false; if (hasShare() != other.hasShare()) return false; if (hasShare()) { - if (!getShare() - .equals(other.getShare())) return false; + if (!getShare().equals(other.getShare())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -278,129 +318,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( - java.nio.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.filestore.v1beta1.CreateShareRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.CreateShareRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.CreateShareRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.CreateShareRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * CreateShareRequest creates a share.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateShareRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.CreateShareRequest) com.google.cloud.filestore.v1beta1.CreateShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateShareRequest.class, com.google.cloud.filestore.v1beta1.CreateShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateShareRequest.class, + com.google.cloud.filestore.v1beta1.CreateShareRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.CreateShareRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +465,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; } @java.lang.Override @@ -439,7 +486,8 @@ public com.google.cloud.filestore.v1beta1.CreateShareRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.CreateShareRequest buildPartial() { - com.google.cloud.filestore.v1beta1.CreateShareRequest result = new com.google.cloud.filestore.v1beta1.CreateShareRequest(this); + com.google.cloud.filestore.v1beta1.CreateShareRequest result = + new com.google.cloud.filestore.v1beta1.CreateShareRequest(this); result.parent_ = parent_; result.shareId_ = shareId_; if (shareBuilder_ == null) { @@ -455,38 +503,39 @@ public com.google.cloud.filestore.v1beta1.CreateShareRequest 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.filestore.v1beta1.CreateShareRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.CreateShareRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.CreateShareRequest) other); } else { super.mergeFrom(other); return this; @@ -494,7 +543,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.CreateShareRequest other) { - if (other == com.google.cloud.filestore.v1beta1.CreateShareRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.CreateShareRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -532,29 +582,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - shareId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + shareId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getShareFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getShareFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -567,19 +619,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The Filestore Instance to create the share for, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -588,21 +644,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The Filestore Instance to create the share for, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -610,57 +669,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The Filestore Instance to create the share for, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Filestore Instance to create the share for, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The Filestore Instance to create the share for, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + 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; @@ -668,6 +740,8 @@ public Builder setParentBytes( private java.lang.Object shareId_ = ""; /** + * + * *
      * Required. The ID to use for the share.
      * The ID must be unique within the specified instance.
@@ -676,13 +750,13 @@ public Builder setParentBytes(
      * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The shareId. */ public java.lang.String getShareId() { java.lang.Object ref = shareId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareId_ = s; return s; @@ -691,6 +765,8 @@ public java.lang.String getShareId() { } } /** + * + * *
      * Required. The ID to use for the share.
      * The ID must be unique within the specified instance.
@@ -699,15 +775,14 @@ public java.lang.String getShareId() {
      * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for shareId. */ - public com.google.protobuf.ByteString - getShareIdBytes() { + public com.google.protobuf.ByteString getShareIdBytes() { java.lang.Object ref = shareId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shareId_ = b; return b; } else { @@ -715,6 +790,8 @@ public java.lang.String getShareId() { } } /** + * + * *
      * Required. The ID to use for the share.
      * The ID must be unique within the specified instance.
@@ -723,20 +800,22 @@ public java.lang.String getShareId() {
      * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The shareId to set. * @return This builder for chaining. */ - public Builder setShareId( - java.lang.String value) { + public Builder setShareId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + shareId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the share.
      * The ID must be unique within the specified instance.
@@ -745,15 +824,18 @@ public Builder setShareId(
      * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearShareId() { - + shareId_ = getDefaultInstance().getShareId(); onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the share.
      * The ID must be unique within the specified instance.
@@ -762,16 +844,16 @@ public Builder clearShareId() {
      * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for shareId to set. * @return This builder for chaining. */ - public Builder setShareIdBytes( - com.google.protobuf.ByteString value) { + public Builder setShareIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shareId_ = value; onChanged(); return this; @@ -779,39 +861,58 @@ public Builder setShareIdBytes( private com.google.cloud.filestore.v1beta1.Share share_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> shareBuilder_; + com.google.cloud.filestore.v1beta1.Share, + com.google.cloud.filestore.v1beta1.Share.Builder, + com.google.cloud.filestore.v1beta1.ShareOrBuilder> + shareBuilder_; /** + * + * *
      * Required. A share resource
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the share field is set. */ public boolean hasShare() { return shareBuilder_ != null || share_ != null; } /** + * + * *
      * Required. A share resource
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The share. */ public com.google.cloud.filestore.v1beta1.Share getShare() { if (shareBuilder_ == null) { - return share_ == null ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; + return share_ == null + ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() + : share_; } else { return shareBuilder_.getMessage(); } } /** + * + * *
      * Required. A share resource
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setShare(com.google.cloud.filestore.v1beta1.Share value) { if (shareBuilder_ == null) { @@ -827,14 +928,17 @@ public Builder setShare(com.google.cloud.filestore.v1beta1.Share value) { return this; } /** + * + * *
      * Required. A share resource
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setShare( - com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { + public Builder setShare(com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { if (shareBuilder_ == null) { share_ = builderForValue.build(); onChanged(); @@ -845,17 +949,23 @@ public Builder setShare( return this; } /** + * + * *
      * Required. A share resource
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeShare(com.google.cloud.filestore.v1beta1.Share value) { if (shareBuilder_ == null) { if (share_ != null) { share_ = - com.google.cloud.filestore.v1beta1.Share.newBuilder(share_).mergeFrom(value).buildPartial(); + com.google.cloud.filestore.v1beta1.Share.newBuilder(share_) + .mergeFrom(value) + .buildPartial(); } else { share_ = value; } @@ -867,11 +977,15 @@ public Builder mergeShare(com.google.cloud.filestore.v1beta1.Share value) { return this; } /** + * + * *
      * Required. A share resource
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearShare() { if (shareBuilder_ == null) { @@ -885,55 +999,71 @@ public Builder clearShare() { return this; } /** + * + * *
      * Required. A share resource
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.Share.Builder getShareBuilder() { - + onChanged(); return getShareFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A share resource
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { if (shareBuilder_ != null) { return shareBuilder_.getMessageOrBuilder(); } else { - return share_ == null ? - com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; + return share_ == null + ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() + : share_; } } /** + * + * *
      * Required. A share resource
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> + com.google.cloud.filestore.v1beta1.Share, + com.google.cloud.filestore.v1beta1.Share.Builder, + com.google.cloud.filestore.v1beta1.ShareOrBuilder> getShareFieldBuilder() { if (shareBuilder_ == null) { - shareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder>( - getShare(), - getParentForChildren(), - isClean()); + shareBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, + com.google.cloud.filestore.v1beta1.Share.Builder, + com.google.cloud.filestore.v1beta1.ShareOrBuilder>( + getShare(), getParentForChildren(), isClean()); share_ = null; } return shareBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -943,12 +1073,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.CreateShareRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.CreateShareRequest) private static final com.google.cloud.filestore.v1beta1.CreateShareRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.CreateShareRequest(); } @@ -957,27 +1087,27 @@ public static com.google.cloud.filestore.v1beta1.CreateShareRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateShareRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -992,6 +1122,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.CreateShareRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java index f23d94c34b54..29fab7024ec6 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface CreateShareRequestOrBuilder extends +public interface CreateShareRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.CreateShareRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Filestore Instance to create the share for, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The Filestore Instance to create the share for, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The ID to use for the share.
    * The ID must be unique within the specified instance.
@@ -38,10 +65,13 @@ public interface CreateShareRequestOrBuilder extends
    * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The shareId. */ java.lang.String getShareId(); /** + * + * *
    * Required. The ID to use for the share.
    * The ID must be unique within the specified instance.
@@ -50,35 +80,49 @@ public interface CreateShareRequestOrBuilder extends
    * 
* * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for shareId. */ - com.google.protobuf.ByteString - getShareIdBytes(); + com.google.protobuf.ByteString getShareIdBytes(); /** + * + * *
    * Required. A share resource
    * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the share field is set. */ boolean hasShare(); /** + * + * *
    * Required. A share resource
    * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The share. */ com.google.cloud.filestore.v1beta1.Share getShare(); /** + * + * *
    * Required. A share resource
    * 
* - * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java similarity index 66% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java index e162f5f05fd3..8ded8547058b 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * CreateSnapshotRequest creates a snapshot.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateSnapshotRequest} */ -public final class CreateSnapshotRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.CreateSnapshotRequest) CreateSnapshotRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSnapshotRequest.newBuilder() to construct. private CreateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSnapshotRequest() { parent_ = ""; snapshotId_ = ""; @@ -26,38 +44,44 @@ private CreateSnapshotRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSnapshotRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The Filestore Instance to create the snapshots of, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,30 +90,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 Filestore Instance to create the snapshots of, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -100,6 +126,8 @@ public java.lang.String getParent() { public static final int SNAPSHOT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object snapshotId_; /** + * + * *
    * Required. The ID to use for the snapshot.
    * The ID must be unique within the specified instance.
@@ -108,6 +136,7 @@ public java.lang.String getParent() {
    * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The snapshotId. */ @java.lang.Override @@ -116,14 +145,15 @@ public java.lang.String getSnapshotId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for the snapshot.
    * The ID must be unique within the specified instance.
@@ -132,16 +162,15 @@ public java.lang.String getSnapshotId() {
    * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for snapshotId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSnapshotIdBytes() { + public com.google.protobuf.ByteString getSnapshotIdBytes() { java.lang.Object ref = snapshotId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); snapshotId_ = b; return b; } else { @@ -152,11 +181,16 @@ public java.lang.String getSnapshotId() { public static final int SNAPSHOT_FIELD_NUMBER = 3; private com.google.cloud.filestore.v1beta1.Snapshot snapshot_; /** + * + * *
    * Required. A snapshot resource
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the snapshot field is set. */ @java.lang.Override @@ -164,23 +198,34 @@ public boolean hasSnapshot() { return snapshot_ != null; } /** + * + * *
    * Required. A snapshot resource
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The snapshot. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot() { - return snapshot_ == null ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; + return snapshot_ == null + ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() + : snapshot_; } /** + * + * *
    * Required. A snapshot resource
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder() { @@ -188,6 +233,7 @@ public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,8 +245,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -226,8 +271,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, snapshotId_); } if (snapshot_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSnapshot()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSnapshot()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -237,21 +281,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.filestore.v1beta1.CreateSnapshotRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest other = (com.google.cloud.filestore.v1beta1.CreateSnapshotRequest) obj; + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest other = + (com.google.cloud.filestore.v1beta1.CreateSnapshotRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getSnapshotId() - .equals(other.getSnapshotId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getSnapshotId().equals(other.getSnapshotId())) return false; if (hasSnapshot() != other.hasSnapshot()) return false; if (hasSnapshot()) { - if (!getSnapshot() - .equals(other.getSnapshot())) return false; + if (!getSnapshot().equals(other.getSnapshot())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -278,129 +320,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( - java.nio.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.filestore.v1beta1.CreateSnapshotRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.CreateSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * CreateSnapshotRequest creates a snapshot.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateSnapshotRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.CreateSnapshotRequest) com.google.cloud.filestore.v1beta1.CreateSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +467,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; } @java.lang.Override @@ -439,7 +488,8 @@ public com.google.cloud.filestore.v1beta1.CreateSnapshotRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.CreateSnapshotRequest buildPartial() { - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest result = new com.google.cloud.filestore.v1beta1.CreateSnapshotRequest(this); + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest result = + new com.google.cloud.filestore.v1beta1.CreateSnapshotRequest(this); result.parent_ = parent_; result.snapshotId_ = snapshotId_; if (snapshotBuilder_ == null) { @@ -455,38 +505,39 @@ public com.google.cloud.filestore.v1beta1.CreateSnapshotRequest 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.filestore.v1beta1.CreateSnapshotRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.CreateSnapshotRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.CreateSnapshotRequest) other); } else { super.mergeFrom(other); return this; @@ -494,7 +545,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest other) { - if (other == com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -532,29 +584,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - snapshotId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + snapshotId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getSnapshotFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getSnapshotFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -567,19 +621,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The Filestore Instance to create the snapshots of, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -588,21 +646,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The Filestore Instance to create the snapshots of, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -610,57 +671,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The Filestore Instance to create the snapshots of, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Filestore Instance to create the snapshots of, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The Filestore Instance to create the snapshots of, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + 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; @@ -668,6 +742,8 @@ public Builder setParentBytes( private java.lang.Object snapshotId_ = ""; /** + * + * *
      * Required. The ID to use for the snapshot.
      * The ID must be unique within the specified instance.
@@ -676,13 +752,13 @@ public Builder setParentBytes(
      * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The snapshotId. */ public java.lang.String getSnapshotId() { java.lang.Object ref = snapshotId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotId_ = s; return s; @@ -691,6 +767,8 @@ public java.lang.String getSnapshotId() { } } /** + * + * *
      * Required. The ID to use for the snapshot.
      * The ID must be unique within the specified instance.
@@ -699,15 +777,14 @@ public java.lang.String getSnapshotId() {
      * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for snapshotId. */ - public com.google.protobuf.ByteString - getSnapshotIdBytes() { + public com.google.protobuf.ByteString getSnapshotIdBytes() { java.lang.Object ref = snapshotId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); snapshotId_ = b; return b; } else { @@ -715,6 +792,8 @@ public java.lang.String getSnapshotId() { } } /** + * + * *
      * Required. The ID to use for the snapshot.
      * The ID must be unique within the specified instance.
@@ -723,20 +802,22 @@ public java.lang.String getSnapshotId() {
      * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The snapshotId to set. * @return This builder for chaining. */ - public Builder setSnapshotId( - java.lang.String value) { + public Builder setSnapshotId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + snapshotId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the snapshot.
      * The ID must be unique within the specified instance.
@@ -745,15 +826,18 @@ public Builder setSnapshotId(
      * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSnapshotId() { - + snapshotId_ = getDefaultInstance().getSnapshotId(); onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the snapshot.
      * The ID must be unique within the specified instance.
@@ -762,16 +846,16 @@ public Builder clearSnapshotId() {
      * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for snapshotId to set. * @return This builder for chaining. */ - public Builder setSnapshotIdBytes( - com.google.protobuf.ByteString value) { + public Builder setSnapshotIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshotId_ = value; onChanged(); return this; @@ -779,39 +863,58 @@ public Builder setSnapshotIdBytes( private com.google.cloud.filestore.v1beta1.Snapshot snapshot_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> snapshotBuilder_; + com.google.cloud.filestore.v1beta1.Snapshot, + com.google.cloud.filestore.v1beta1.Snapshot.Builder, + com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> + snapshotBuilder_; /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { return snapshotBuilder_ != null || snapshot_ != null; } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The snapshot. */ public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot() { if (snapshotBuilder_ == null) { - return snapshot_ == null ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; + return snapshot_ == null + ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() + : snapshot_; } else { return snapshotBuilder_.getMessage(); } } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { if (snapshotBuilder_ == null) { @@ -827,11 +930,15 @@ public Builder setSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { return this; } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSnapshot( com.google.cloud.filestore.v1beta1.Snapshot.Builder builderForValue) { @@ -845,17 +952,23 @@ public Builder setSnapshot( return this; } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { if (snapshotBuilder_ == null) { if (snapshot_ != null) { snapshot_ = - com.google.cloud.filestore.v1beta1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); + com.google.cloud.filestore.v1beta1.Snapshot.newBuilder(snapshot_) + .mergeFrom(value) + .buildPartial(); } else { snapshot_ = value; } @@ -867,11 +980,15 @@ public Builder mergeSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) return this; } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSnapshot() { if (snapshotBuilder_ == null) { @@ -885,55 +1002,71 @@ public Builder clearSnapshot() { return this; } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.Snapshot.Builder getSnapshotBuilder() { - + onChanged(); return getSnapshotFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder() { if (snapshotBuilder_ != null) { return snapshotBuilder_.getMessageOrBuilder(); } else { - return snapshot_ == null ? - com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; + return snapshot_ == null + ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() + : snapshot_; } } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> + com.google.cloud.filestore.v1beta1.Snapshot, + com.google.cloud.filestore.v1beta1.Snapshot.Builder, + com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> getSnapshotFieldBuilder() { if (snapshotBuilder_ == null) { - snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( - getSnapshot(), - getParentForChildren(), - isClean()); + snapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, + com.google.cloud.filestore.v1beta1.Snapshot.Builder, + com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( + getSnapshot(), getParentForChildren(), isClean()); snapshot_ = null; } return snapshotBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -943,12 +1076,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.CreateSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.CreateSnapshotRequest) private static final com.google.cloud.filestore.v1beta1.CreateSnapshotRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.CreateSnapshotRequest(); } @@ -957,27 +1090,27 @@ public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -992,6 +1125,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.CreateSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java index 67c4acc3e03b..566db50b3aa1 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface CreateSnapshotRequestOrBuilder extends +public interface CreateSnapshotRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.CreateSnapshotRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Filestore Instance to create the snapshots of, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The Filestore Instance to create the snapshots of, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The ID to use for the snapshot.
    * The ID must be unique within the specified instance.
@@ -38,10 +65,13 @@ public interface CreateSnapshotRequestOrBuilder extends
    * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The snapshotId. */ java.lang.String getSnapshotId(); /** + * + * *
    * Required. The ID to use for the snapshot.
    * The ID must be unique within the specified instance.
@@ -50,35 +80,49 @@ public interface CreateSnapshotRequestOrBuilder extends
    * 
* * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for snapshotId. */ - com.google.protobuf.ByteString - getSnapshotIdBytes(); + com.google.protobuf.ByteString getSnapshotIdBytes(); /** + * + * *
    * Required. A snapshot resource
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the snapshot field is set. */ boolean hasSnapshot(); /** + * + * *
    * Required. A snapshot resource
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The snapshot. */ com.google.cloud.filestore.v1beta1.Snapshot getSnapshot(); /** + * + * *
    * Required. A snapshot resource
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java similarity index 64% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java index 4ba5b7424cc4..2f18fa6f0562 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java @@ -1,62 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * DeleteBackupRequest deletes a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.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_ = ""; } @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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, com.google.cloud.filestore.v1beta1.DeleteBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, + com.google.cloud.filestore.v1beta1.DeleteBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The backup resource name, in the format
    * `projects/{project_id}/locations/{location}/backups/{backup_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The backup resource name, in the format
    * `projects/{project_id}/locations/{location}/backups/{backup_id}`
    * 
* - * string name = 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -133,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.DeleteBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.DeleteBackupRequest other = (com.google.cloud.filestore.v1beta1.DeleteBackupRequest) obj; + com.google.cloud.filestore.v1beta1.DeleteBackupRequest other = + (com.google.cloud.filestore.v1beta1.DeleteBackupRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.DeleteBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.DeleteBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.DeleteBackupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.DeleteBackupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.DeleteBackupRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.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; } /** + * + * *
    * DeleteBackupRequest deletes a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.DeleteBackupRequest) com.google.cloud.filestore.v1beta1.DeleteBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, com.google.cloud.filestore.v1beta1.DeleteBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, + com.google.cloud.filestore.v1beta1.DeleteBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.DeleteBackupRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; } @java.lang.Override @@ -314,7 +347,8 @@ public com.google.cloud.filestore.v1beta1.DeleteBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.DeleteBackupRequest buildPartial() { - com.google.cloud.filestore.v1beta1.DeleteBackupRequest result = new com.google.cloud.filestore.v1beta1.DeleteBackupRequest(this); + com.google.cloud.filestore.v1beta1.DeleteBackupRequest result = + new com.google.cloud.filestore.v1beta1.DeleteBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +358,39 @@ public com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.DeleteBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteBackupRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteBackupRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +398,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.DeleteBackupRequest other) { - if (other == com.google.cloud.filestore.v1beta1.DeleteBackupRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.DeleteBackupRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +455,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * string name = 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; @@ -438,21 +480,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * string name = 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 { @@ -460,64 +505,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * 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. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * string 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. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * 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); } @@ -527,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.DeleteBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.DeleteBackupRequest) private static final com.google.cloud.filestore.v1beta1.DeleteBackupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.DeleteBackupRequest(); } @@ -541,27 +599,27 @@ public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest getDefaultI 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.DeleteBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java new file mode 100644 index 000000000000..fae4deaa5d9c --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface DeleteBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_id}/locations/{location}/backups/{backup_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_id}/locations/{location}/backups/{backup_id}`
+   * 
+ * + * + * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java similarity index 66% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java index 81af58cb45f6..063230cacb7a 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java @@ -1,62 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * DeleteInstanceRequest deletes an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteInstanceRequest} */ -public final class DeleteInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.DeleteInstanceRequest) DeleteInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteInstanceRequest.newBuilder() to construct. private DeleteInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,12 +125,15 @@ public java.lang.String getName() { public static final int FORCE_FIELD_NUMBER = 2; private boolean force_; /** + * + * *
    * If set to true, any snapshots of the instance will also be deleted.
    * (Otherwise, the request will only work if the instance has no snapshots.)
    * 
* * bool force = 2; + * * @return The force. */ @java.lang.Override @@ -113,6 +142,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,8 +154,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -145,8 +174,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -156,17 +184,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.filestore.v1beta1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest other = (com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest other = + (com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,137 +208,143 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( - java.nio.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.filestore.v1beta1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.DeleteInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * DeleteInstanceRequest deletes an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.DeleteInstanceRequest) com.google.cloud.filestore.v1beta1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +356,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -344,7 +377,8 @@ public com.google.cloud.filestore.v1beta1.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.DeleteInstanceRequest buildPartial() { - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest result = new com.google.cloud.filestore.v1beta1.DeleteInstanceRequest(this); + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest result = + new com.google.cloud.filestore.v1beta1.DeleteInstanceRequest(this); result.name_ = name_; result.force_ = force_; onBuilt(); @@ -355,38 +389,39 @@ public com.google.cloud.filestore.v1beta1.DeleteInstanceRequest 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.filestore.v1beta1.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteInstanceRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -394,7 +429,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest other) { - if (other == com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -428,22 +464,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - force_ = input.readBool(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + force_ = input.readBool(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -456,19 +495,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string name = 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; @@ -477,21 +520,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string name = 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 { @@ -499,70 +545,86 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * 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; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * If set to true, any snapshots of the instance will also be deleted.
      * (Otherwise, the request will only work if the instance has no snapshots.)
      * 
* * bool force = 2; + * * @return The force. */ @java.lang.Override @@ -570,39 +632,45 @@ public boolean getForce() { return force_; } /** + * + * *
      * If set to true, any snapshots of the instance will also be deleted.
      * (Otherwise, the request will only work if the instance has no snapshots.)
      * 
* * bool force = 2; + * * @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 snapshots of the instance will also be deleted.
      * (Otherwise, the request will only work if the instance has no snapshots.)
      * 
* * bool force = 2; + * * @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); } @@ -612,12 +680,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.DeleteInstanceRequest) private static final com.google.cloud.filestore.v1beta1.DeleteInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.DeleteInstanceRequest(); } @@ -626,27 +694,27 @@ public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,6 +729,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java index 16096d15f7d8..2a6b8ee13512 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java @@ -1,41 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface DeleteInstanceRequestOrBuilder extends +public interface DeleteInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set to true, any snapshots of the instance will also be deleted.
    * (Otherwise, the request will only work if the instance has no snapshots.)
    * 
* * bool force = 2; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java similarity index 64% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java index f3fd2fed9f11..d08b5b49e5fe 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java @@ -1,62 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * DeleteShareRequest deletes a share.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteShareRequest} */ -public final class DeleteShareRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteShareRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.DeleteShareRequest) DeleteShareRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteShareRequest.newBuilder() to construct. private DeleteShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteShareRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, com.google.cloud.filestore.v1beta1.DeleteShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, + com.google.cloud.filestore.v1beta1.DeleteShareRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The share resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The share resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
    * 
* - * string name = 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -133,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.DeleteShareRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.DeleteShareRequest other = (com.google.cloud.filestore.v1beta1.DeleteShareRequest) obj; + com.google.cloud.filestore.v1beta1.DeleteShareRequest other = + (com.google.cloud.filestore.v1beta1.DeleteShareRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( - java.nio.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.filestore.v1beta1.DeleteShareRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.DeleteShareRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.DeleteShareRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.DeleteShareRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * DeleteShareRequest deletes a share.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteShareRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.DeleteShareRequest) com.google.cloud.filestore.v1beta1.DeleteShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, com.google.cloud.filestore.v1beta1.DeleteShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, + com.google.cloud.filestore.v1beta1.DeleteShareRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.DeleteShareRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; } @java.lang.Override @@ -314,7 +347,8 @@ public com.google.cloud.filestore.v1beta1.DeleteShareRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.DeleteShareRequest buildPartial() { - com.google.cloud.filestore.v1beta1.DeleteShareRequest result = new com.google.cloud.filestore.v1beta1.DeleteShareRequest(this); + com.google.cloud.filestore.v1beta1.DeleteShareRequest result = + new com.google.cloud.filestore.v1beta1.DeleteShareRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +358,39 @@ public com.google.cloud.filestore.v1beta1.DeleteShareRequest 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.filestore.v1beta1.DeleteShareRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteShareRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteShareRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +398,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.DeleteShareRequest other) { - if (other == com.google.cloud.filestore.v1beta1.DeleteShareRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.DeleteShareRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +455,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
      * 
* - * string name = 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; @@ -438,21 +480,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
      * 
* - * string name = 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 { @@ -460,64 +505,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
      * 
* - * 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. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
      * 
* - * string 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. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
      * 
* - * 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); } @@ -527,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.DeleteShareRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.DeleteShareRequest) private static final com.google.cloud.filestore.v1beta1.DeleteShareRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.DeleteShareRequest(); } @@ -541,27 +599,27 @@ public static com.google.cloud.filestore.v1beta1.DeleteShareRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteShareRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.DeleteShareRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java new file mode 100644 index 000000000000..17734c29beda --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface DeleteShareRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
+   * 
+ * + * + * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java similarity index 64% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java index c5a0e78ba9b7..3d893921cd50 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java @@ -1,62 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * DeleteSnapshotRequest deletes a snapshot.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteSnapshotRequest} */ -public final class DeleteSnapshotRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) DeleteSnapshotRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSnapshotRequest.newBuilder() to construct. private DeleteSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSnapshotRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSnapshotRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The snapshot resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The snapshot resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
    * 
* - * string name = 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -133,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest other = (com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest) obj; + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest other = + (com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( - java.nio.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.filestore.v1beta1.DeleteSnapshotRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.DeleteSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * DeleteSnapshotRequest deletes a snapshot.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteSnapshotRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) com.google.cloud.filestore.v1beta1.DeleteSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; } @java.lang.Override @@ -314,7 +347,8 @@ public com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest buildPartial() { - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest result = new com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest(this); + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest result = + new com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +358,39 @@ public com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest 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.filestore.v1beta1.DeleteSnapshotRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +398,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest other) { - if (other == com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +455,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * string name = 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; @@ -438,21 +480,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * string name = 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 { @@ -460,64 +505,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * 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. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * string 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. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * 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); } @@ -527,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) private static final com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest(); } @@ -541,27 +599,27 @@ public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..d43d14ab5296 --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface DeleteSnapshotRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * + * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java similarity index 73% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java index 9b3a6f9848f6..1d4be21945d2 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * File share configuration for the instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.FileShareConfig} */ -public final class FileShareConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FileShareConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.FileShareConfig) FileShareConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FileShareConfig.newBuilder() to construct. private FileShareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FileShareConfig() { name_ = ""; nfsExportOptions_ = java.util.Collections.emptyList(); @@ -26,37 +44,41 @@ private FileShareConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FileShareConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.FileShareConfig.class, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder.class); + com.google.cloud.filestore.v1beta1.FileShareConfig.class, + com.google.cloud.filestore.v1beta1.FileShareConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SOURCE_BACKUP(9), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -72,25 +94,29 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 9: return SOURCE_BACKUP; - case 0: return SOURCE_NOT_SET; - default: return null; + case 9: + return SOURCE_BACKUP; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name of the file share (must be 32 characters or less for
    * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -98,6 +124,7 @@ public int getNumber() {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -106,14 +133,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the file share (must be 32 characters or less for
    * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -121,16 +149,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -141,12 +168,15 @@ public java.lang.String getName() { public static final int CAPACITY_GB_FIELD_NUMBER = 2; private long capacityGb_; /** + * + * *
    * File share capacity in gigabytes (GB).
    * Filestore defines 1 GB as 1024^3 bytes.
    * 
* * int64 capacity_gb = 2; + * * @return The capacityGb. */ @java.lang.Override @@ -156,6 +186,8 @@ public long getCapacityGb() { public static final int SOURCE_BACKUP_FIELD_NUMBER = 9; /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -163,12 +195,15 @@ public long getCapacityGb() {
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceBackup field is set. */ public boolean hasSourceBackup() { return sourceCase_ == 9; } /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -176,6 +211,7 @@ public boolean hasSourceBackup() {
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } + * * @return The sourceBackup. */ public java.lang.String getSourceBackup() { @@ -186,8 +222,7 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (sourceCase_ == 9) { source_ = s; @@ -196,6 +231,8 @@ public java.lang.String getSourceBackup() { } } /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -203,18 +240,17 @@ public java.lang.String getSourceBackup() {
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString - getSourceBackupBytes() { + public com.google.protobuf.ByteString getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 9) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 9) { source_ = b; } @@ -227,6 +263,8 @@ public java.lang.String getSourceBackup() { public static final int NFS_EXPORT_OPTIONS_FIELD_NUMBER = 8; private java.util.List nfsExportOptions_; /** + * + * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -235,10 +273,13 @@ public java.lang.String getSourceBackup() {
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    */
   @java.lang.Override
-  public java.util.List getNfsExportOptionsList() {
+  public java.util.List
+      getNfsExportOptionsList() {
     return nfsExportOptions_;
   }
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -247,11 +288,13 @@ public java.util.List getNf
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getNfsExportOptionsOrBuilderList() {
     return nfsExportOptions_;
   }
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -264,6 +307,8 @@ public int getNfsExportOptionsCount() {
     return nfsExportOptions_.size();
   }
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -276,6 +321,8 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(i
     return nfsExportOptions_.get(index);
   }
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -290,6 +337,7 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExport
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -301,8 +349,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.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_);
     }
@@ -328,12 +375,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (capacityGb_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(2, capacityGb_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, capacityGb_);
     }
     for (int i = 0; i < nfsExportOptions_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, nfsExportOptions_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, nfsExportOptions_.get(i));
     }
     if (sourceCase_ == 9) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, source_);
@@ -346,24 +391,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.filestore.v1beta1.FileShareConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.filestore.v1beta1.FileShareConfig other = (com.google.cloud.filestore.v1beta1.FileShareConfig) obj;
+    com.google.cloud.filestore.v1beta1.FileShareConfig other =
+        (com.google.cloud.filestore.v1beta1.FileShareConfig) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (getCapacityGb()
-        != other.getCapacityGb()) return false;
-    if (!getNfsExportOptionsList()
-        .equals(other.getNfsExportOptionsList())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (getCapacityGb() != other.getCapacityGb()) return false;
+    if (!getNfsExportOptionsList().equals(other.getNfsExportOptionsList())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 9:
-        if (!getSourceBackup()
-            .equals(other.getSourceBackup())) return false;
+        if (!getSourceBackup().equals(other.getSourceBackup())) return false;
         break;
       case 0:
       default:
@@ -382,8 +424,7 @@ public int hashCode() {
     hash = (37 * hash) + NAME_FIELD_NUMBER;
     hash = (53 * hash) + getName().hashCode();
     hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getCapacityGb());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb());
     if (getNfsExportOptionsCount() > 0) {
       hash = (37 * hash) + NFS_EXPORT_OPTIONS_FIELD_NUMBER;
       hash = (53 * hash) + getNfsExportOptionsList().hashCode();
@@ -402,129 +443,135 @@ public int hashCode() {
   }
 
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
-      java.nio.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.filestore.v1beta1.FileShareConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.filestore.v1beta1.FileShareConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.filestore.v1beta1.FileShareConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.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.filestore.v1beta1.FileShareConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.filestore.v1beta1.FileShareConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * File share configuration for the instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.FileShareConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.FileShareConfig) com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.FileShareConfig.class, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder.class); + com.google.cloud.filestore.v1beta1.FileShareConfig.class, + com.google.cloud.filestore.v1beta1.FileShareConfig.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.FileShareConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -545,9 +592,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; } @java.lang.Override @@ -566,7 +613,8 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.FileShareConfig buildPartial() { - com.google.cloud.filestore.v1beta1.FileShareConfig result = new com.google.cloud.filestore.v1beta1.FileShareConfig(this); + com.google.cloud.filestore.v1beta1.FileShareConfig result = + new com.google.cloud.filestore.v1beta1.FileShareConfig(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.capacityGb_ = capacityGb_; @@ -591,38 +639,39 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig 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.filestore.v1beta1.FileShareConfig) { - return mergeFrom((com.google.cloud.filestore.v1beta1.FileShareConfig)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.FileShareConfig) other); } else { super.mergeFrom(other); return this; @@ -630,7 +679,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.FileShareConfig other) { - if (other == com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -656,24 +706,27 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.FileShareConfig othe nfsExportOptionsBuilder_ = null; nfsExportOptions_ = other.nfsExportOptions_; bitField0_ = (bitField0_ & ~0x00000001); - nfsExportOptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNfsExportOptionsFieldBuilder() : null; + nfsExportOptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNfsExportOptionsFieldBuilder() + : null; } else { nfsExportOptionsBuilder_.addAllMessages(other.nfsExportOptions_); } } } switch (other.getSourceCase()) { - case SOURCE_BACKUP: { - sourceCase_ = 9; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: { - break; - } + case SOURCE_BACKUP: + { + sourceCase_ = 9; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -701,41 +754,46 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); + case 10: + { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - capacityGb_ = input.readInt64(); + break; + } // case 10 + case 16: + { + capacityGb_ = input.readInt64(); - break; - } // case 16 - case 66: { - com.google.cloud.filestore.v1beta1.NfsExportOptions m = - input.readMessage( - com.google.cloud.filestore.v1beta1.NfsExportOptions.parser(), - extensionRegistry); - if (nfsExportOptionsBuilder_ == null) { - ensureNfsExportOptionsIsMutable(); - nfsExportOptions_.add(m); - } else { - nfsExportOptionsBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 9; - source_ = s; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 16 + case 66: + { + com.google.cloud.filestore.v1beta1.NfsExportOptions m = + input.readMessage( + com.google.cloud.filestore.v1beta1.NfsExportOptions.parser(), + extensionRegistry); + if (nfsExportOptionsBuilder_ == null) { + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.add(m); + } else { + nfsExportOptionsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 9; + source_ = s; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -745,12 +803,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -764,6 +822,8 @@ public Builder clearSource() { private java.lang.Object name_ = ""; /** + * + * *
      * The name of the file share (must be 32 characters or less for
      * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -771,13 +831,13 @@ public Builder clearSource() {
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -786,6 +846,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the file share (must be 32 characters or less for
      * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -793,15 +855,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -809,6 +870,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the file share (must be 32 characters or less for
      * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -816,20 +879,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @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 file share (must be 32 characters or less for
      * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -837,15 +902,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the file share (must be 32 characters or less for
      * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -853,29 +921,32 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @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; } - private long capacityGb_ ; + private long capacityGb_; /** + * + * *
      * File share capacity in gigabytes (GB).
      * Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; + * * @return The capacityGb. */ @java.lang.Override @@ -883,38 +954,46 @@ public long getCapacityGb() { return capacityGb_; } /** + * + * *
      * File share capacity in gigabytes (GB).
      * Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; + * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** + * + * *
      * File share capacity in gigabytes (GB).
      * Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; + * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -922,6 +1001,7 @@ public Builder clearCapacityGb() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceBackup field is set. */ @java.lang.Override @@ -929,6 +1009,8 @@ public boolean hasSourceBackup() { return sourceCase_ == 9; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -936,6 +1018,7 @@ public boolean hasSourceBackup() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } + * * @return The sourceBackup. */ @java.lang.Override @@ -945,8 +1028,7 @@ public java.lang.String getSourceBackup() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (sourceCase_ == 9) { source_ = s; @@ -957,6 +1039,8 @@ public java.lang.String getSourceBackup() { } } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -964,19 +1048,18 @@ public java.lang.String getSourceBackup() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceBackupBytes() { + public com.google.protobuf.ByteString getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 9) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 9) { source_ = b; } @@ -986,6 +1069,8 @@ public java.lang.String getSourceBackup() { } } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -993,20 +1078,22 @@ public java.lang.String getSourceBackup() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } + * * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup( - java.lang.String value) { + public Builder setSourceBackup(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 9; + throw new NullPointerException(); + } + sourceCase_ = 9; source_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -1014,6 +1101,7 @@ public Builder setSourceBackup(
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -1025,6 +1113,8 @@ public Builder clearSourceBackup() { return this; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -1032,15 +1122,15 @@ public Builder clearSourceBackup() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackupBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 9; source_ = value; onChanged(); @@ -1048,26 +1138,36 @@ public Builder setSourceBackupBytes( } private java.util.List nfsExportOptions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNfsExportOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nfsExportOptions_ = new java.util.ArrayList(nfsExportOptions_); + nfsExportOptions_ = + new java.util.ArrayList( + nfsExportOptions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> nfsExportOptionsBuilder_; + com.google.cloud.filestore.v1beta1.NfsExportOptions, + com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, + com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> + nfsExportOptionsBuilder_; /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ - public java.util.List getNfsExportOptionsList() { + public java.util.List + getNfsExportOptionsList() { if (nfsExportOptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(nfsExportOptions_); } else { @@ -1075,12 +1175,15 @@ public java.util.List getNf } } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ public int getNfsExportOptionsCount() { if (nfsExportOptionsBuilder_ == null) { @@ -1090,12 +1193,15 @@ public int getNfsExportOptionsCount() { } } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(int index) { if (nfsExportOptionsBuilder_ == null) { @@ -1105,12 +1211,15 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(i } } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ public Builder setNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions value) { @@ -1127,12 +1236,15 @@ public Builder setNfsExportOptions( return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ public Builder setNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1146,12 +1258,15 @@ public Builder setNfsExportOptions( return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ public Builder addNfsExportOptions(com.google.cloud.filestore.v1beta1.NfsExportOptions value) { if (nfsExportOptionsBuilder_ == null) { @@ -1167,12 +1282,15 @@ public Builder addNfsExportOptions(com.google.cloud.filestore.v1beta1.NfsExportO return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ public Builder addNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions value) { @@ -1189,12 +1307,15 @@ public Builder addNfsExportOptions( return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ public Builder addNfsExportOptions( com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1208,12 +1329,15 @@ public Builder addNfsExportOptions( return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ public Builder addNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1227,19 +1351,21 @@ public Builder addNfsExportOptions( return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ public Builder addAllNfsExportOptions( java.lang.Iterable values) { if (nfsExportOptionsBuilder_ == null) { ensureNfsExportOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nfsExportOptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsExportOptions_); onChanged(); } else { nfsExportOptionsBuilder_.addAllMessages(values); @@ -1247,12 +1373,15 @@ public Builder addAllNfsExportOptions( return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ public Builder clearNfsExportOptions() { if (nfsExportOptionsBuilder_ == null) { @@ -1265,12 +1394,15 @@ public Builder clearNfsExportOptions() { return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ public Builder removeNfsExportOptions(int index) { if (nfsExportOptionsBuilder_ == null) { @@ -1283,42 +1415,52 @@ public Builder removeNfsExportOptions(int index) { return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder getNfsExportOptionsBuilder( int index) { return getNfsExportOptionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ - public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder( - int index) { + public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder + getNfsExportOptionsOrBuilder(int index) { if (nfsExportOptionsBuilder_ == null) { - return nfsExportOptions_.get(index); } else { + return nfsExportOptions_.get(index); + } else { return nfsExportOptionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ - public java.util.List - getNfsExportOptionsOrBuilderList() { + public java.util.List + getNfsExportOptionsOrBuilderList() { if (nfsExportOptionsBuilder_ != null) { return nfsExportOptionsBuilder_.getMessageOrBuilderList(); } else { @@ -1326,48 +1468,65 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExport } } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ - public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportOptionsBuilder() { - return getNfsExportOptionsFieldBuilder().addBuilder( - com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); + public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder + addNfsExportOptionsBuilder() { + return getNfsExportOptionsFieldBuilder() + .addBuilder(com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportOptionsBuilder( int index) { - return getNfsExportOptionsFieldBuilder().addBuilder( - index, com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); + return getNfsExportOptionsFieldBuilder() + .addBuilder( + index, com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; + * */ - public java.util.List - getNfsExportOptionsBuilderList() { + public java.util.List + getNfsExportOptionsBuilderList() { return getNfsExportOptionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> + com.google.cloud.filestore.v1beta1.NfsExportOptions, + com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, + com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> getNfsExportOptionsFieldBuilder() { if (nfsExportOptionsBuilder_ == null) { - nfsExportOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder>( + nfsExportOptionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.NfsExportOptions, + com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, + com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder>( nfsExportOptions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1376,9 +1535,9 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportO } return nfsExportOptionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1388,12 +1547,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.FileShareConfig) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.FileShareConfig) private static final com.google.cloud.filestore.v1beta1.FileShareConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.FileShareConfig(); } @@ -1402,27 +1561,27 @@ public static com.google.cloud.filestore.v1beta1.FileShareConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FileShareConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileShareConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1437,6 +1596,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.FileShareConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java similarity index 80% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java index d73700e98095..a2968dd626bf 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface FileShareConfigOrBuilder extends +public interface FileShareConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.FileShareConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the file share (must be 32 characters or less for
    * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -15,10 +33,13 @@ public interface FileShareConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the file share (must be 32 characters or less for
    * Enterprise and High Scale SSD tiers and 16 characters or less for all other
@@ -26,23 +47,28 @@ public interface FileShareConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * File share capacity in gigabytes (GB).
    * Filestore defines 1 GB as 1024^3 bytes.
    * 
* * int64 capacity_gb = 2; + * * @return The capacityGb. */ long getCapacityGb(); /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -50,10 +76,13 @@ public interface FileShareConfigOrBuilder extends
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceBackup field is set. */ boolean hasSourceBackup(); /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -61,10 +90,13 @@ public interface FileShareConfigOrBuilder extends
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } + * * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -72,12 +104,14 @@ public interface FileShareConfigOrBuilder extends
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString - getSourceBackupBytes(); + com.google.protobuf.ByteString getSourceBackupBytes(); /** + * + * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -85,9 +119,10 @@ public interface FileShareConfigOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    */
-  java.util.List 
-      getNfsExportOptionsList();
+  java.util.List getNfsExportOptionsList();
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -97,6 +132,8 @@ public interface FileShareConfigOrBuilder extends
    */
   com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(int index);
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -106,6 +143,8 @@ public interface FileShareConfigOrBuilder extends
    */
   int getNfsExportOptionsCount();
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -113,9 +152,11 @@ public interface FileShareConfigOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    */
-  java.util.List 
+  java.util.List
       getNfsExportOptionsOrBuilderList();
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
similarity index 64%
rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
index 005a7cc4e2e8..6f586fcba132 100644
--- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
+++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
@@ -1,62 +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/filestore/v1beta1/cloud_filestore_service.proto
 
 package com.google.cloud.filestore.v1beta1;
 
 /**
+ *
+ *
  * 
  * GetBackupRequest gets the state of a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetBackupRequest.class, com.google.cloud.filestore.v1beta1.GetBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetBackupRequest.class, + com.google.cloud.filestore.v1beta1.GetBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The backup resource name, in the format
    * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The backup resource name, in the format
    * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
    * 
* - * string name = 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -133,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.GetBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.GetBackupRequest other = (com.google.cloud.filestore.v1beta1.GetBackupRequest) obj; + com.google.cloud.filestore.v1beta1.GetBackupRequest other = + (com.google.cloud.filestore.v1beta1.GetBackupRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +187,135 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom( - java.nio.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.filestore.v1beta1.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.filestore.v1beta1.GetBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.GetBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.GetBackupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.GetBackupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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; } /** + * + * *
    * GetBackupRequest gets the state of a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.GetBackupRequest) com.google.cloud.filestore.v1beta1.GetBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetBackupRequest.class, com.google.cloud.filestore.v1beta1.GetBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetBackupRequest.class, + com.google.cloud.filestore.v1beta1.GetBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.GetBackupRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; } @java.lang.Override @@ -314,7 +346,8 @@ public com.google.cloud.filestore.v1beta1.GetBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.GetBackupRequest buildPartial() { - com.google.cloud.filestore.v1beta1.GetBackupRequest result = new com.google.cloud.filestore.v1beta1.GetBackupRequest(this); + com.google.cloud.filestore.v1beta1.GetBackupRequest result = + new com.google.cloud.filestore.v1beta1.GetBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +357,39 @@ public com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.GetBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.GetBackupRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.GetBackupRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +397,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.GetBackupRequest other) { - if (other == com.google.cloud.filestore.v1beta1.GetBackupRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.GetBackupRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +454,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * string name = 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; @@ -438,21 +479,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * string name = 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 { @@ -460,64 +504,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * 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. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * string 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. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * 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); } @@ -527,12 +584,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.GetBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.GetBackupRequest) private static final com.google.cloud.filestore.v1beta1.GetBackupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.GetBackupRequest(); } @@ -541,27 +598,27 @@ public static com.google.cloud.filestore.v1beta1.GetBackupRequest getDefaultInst 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.GetBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java new file mode 100644 index 000000000000..f3dee8caed94 --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/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/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface GetBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
+   * 
+ * + * + * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java similarity index 64% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java index 61ab442b4faf..437ae7c91d16 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java @@ -1,62 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * GetInstanceRequest gets the state of an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetInstanceRequest} */ -public final class GetInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.GetInstanceRequest) GetInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, com.google.cloud.filestore.v1beta1.GetInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, + com.google.cloud.filestore.v1beta1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * string name = 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -133,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.GetInstanceRequest other = (com.google.cloud.filestore.v1beta1.GetInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.GetInstanceRequest other = + (com.google.cloud.filestore.v1beta1.GetInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( - java.nio.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.filestore.v1beta1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.GetInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * GetInstanceRequest gets the state of an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.GetInstanceRequest) com.google.cloud.filestore.v1beta1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, com.google.cloud.filestore.v1beta1.GetInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, + com.google.cloud.filestore.v1beta1.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.GetInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -314,7 +347,8 @@ public com.google.cloud.filestore.v1beta1.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.GetInstanceRequest buildPartial() { - com.google.cloud.filestore.v1beta1.GetInstanceRequest result = new com.google.cloud.filestore.v1beta1.GetInstanceRequest(this); + com.google.cloud.filestore.v1beta1.GetInstanceRequest result = + new com.google.cloud.filestore.v1beta1.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +358,39 @@ public com.google.cloud.filestore.v1beta1.GetInstanceRequest 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.filestore.v1beta1.GetInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.GetInstanceRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.GetInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +398,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.GetInstanceRequest other) { - if (other == com.google.cloud.filestore.v1beta1.GetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.GetInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +455,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string name = 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; @@ -438,21 +480,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string name = 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 { @@ -460,64 +505,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string 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. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * 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); } @@ -527,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.GetInstanceRequest) private static final com.google.cloud.filestore.v1beta1.GetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.GetInstanceRequest(); } @@ -541,27 +599,27 @@ public static com.google.cloud.filestore.v1beta1.GetInstanceRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..0e9ef0cd5a51 --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface GetInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * + * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java similarity index 64% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java index 3aac1d4a2970..2dc7237ecde9 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java @@ -1,62 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * GetShareRequest gets the state of a share.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetShareRequest} */ -public final class GetShareRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetShareRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.GetShareRequest) GetShareRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetShareRequest.newBuilder() to construct. private GetShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetShareRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetShareRequest.class, com.google.cloud.filestore.v1beta1.GetShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetShareRequest.class, + com.google.cloud.filestore.v1beta1.GetShareRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The share resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The share resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
    * 
* - * string name = 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -133,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.GetShareRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.GetShareRequest other = (com.google.cloud.filestore.v1beta1.GetShareRequest) obj; + com.google.cloud.filestore.v1beta1.GetShareRequest other = + (com.google.cloud.filestore.v1beta1.GetShareRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +187,135 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( - java.nio.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.filestore.v1beta1.GetShareRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetShareRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.GetShareRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.GetShareRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * GetShareRequest gets the state of a share.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetShareRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.GetShareRequest) com.google.cloud.filestore.v1beta1.GetShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetShareRequest.class, com.google.cloud.filestore.v1beta1.GetShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetShareRequest.class, + com.google.cloud.filestore.v1beta1.GetShareRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.GetShareRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; } @java.lang.Override @@ -314,7 +346,8 @@ public com.google.cloud.filestore.v1beta1.GetShareRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.GetShareRequest buildPartial() { - com.google.cloud.filestore.v1beta1.GetShareRequest result = new com.google.cloud.filestore.v1beta1.GetShareRequest(this); + com.google.cloud.filestore.v1beta1.GetShareRequest result = + new com.google.cloud.filestore.v1beta1.GetShareRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +357,39 @@ public com.google.cloud.filestore.v1beta1.GetShareRequest 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.filestore.v1beta1.GetShareRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.GetShareRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.GetShareRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +397,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.GetShareRequest other) { - if (other == com.google.cloud.filestore.v1beta1.GetShareRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.GetShareRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +454,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
      * 
* - * string name = 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; @@ -438,21 +479,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
      * 
* - * string name = 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 { @@ -460,64 +504,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
      * 
* - * 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. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
      * 
* - * string 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. The share resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
      * 
* - * 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); } @@ -527,12 +584,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.GetShareRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.GetShareRequest) private static final com.google.cloud.filestore.v1beta1.GetShareRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.GetShareRequest(); } @@ -541,27 +598,27 @@ public static com.google.cloud.filestore.v1beta1.GetShareRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetShareRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.GetShareRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java new file mode 100644 index 000000000000..7bb0a84a149c --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface GetShareRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
+   * 
+ * + * + * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java similarity index 64% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java index 55eda1354990..b000c73b5390 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java @@ -1,62 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * GetSnapshotRequest gets the state of a snapshot.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetSnapshotRequest} */ -public final class GetSnapshotRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.GetSnapshotRequest) GetSnapshotRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSnapshotRequest.newBuilder() to construct. private GetSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSnapshotRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSnapshotRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, com.google.cloud.filestore.v1beta1.GetSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, + com.google.cloud.filestore.v1beta1.GetSnapshotRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The snapshot resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The snapshot resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
    * 
* - * string name = 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -133,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.GetSnapshotRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.GetSnapshotRequest other = (com.google.cloud.filestore.v1beta1.GetSnapshotRequest) obj; + com.google.cloud.filestore.v1beta1.GetSnapshotRequest other = + (com.google.cloud.filestore.v1beta1.GetSnapshotRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( - java.nio.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.filestore.v1beta1.GetSnapshotRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.GetSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.GetSnapshotRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.GetSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * GetSnapshotRequest gets the state of a snapshot.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetSnapshotRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.GetSnapshotRequest) com.google.cloud.filestore.v1beta1.GetSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, com.google.cloud.filestore.v1beta1.GetSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, + com.google.cloud.filestore.v1beta1.GetSnapshotRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.GetSnapshotRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; } @java.lang.Override @@ -314,7 +347,8 @@ public com.google.cloud.filestore.v1beta1.GetSnapshotRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.GetSnapshotRequest buildPartial() { - com.google.cloud.filestore.v1beta1.GetSnapshotRequest result = new com.google.cloud.filestore.v1beta1.GetSnapshotRequest(this); + com.google.cloud.filestore.v1beta1.GetSnapshotRequest result = + new com.google.cloud.filestore.v1beta1.GetSnapshotRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +358,39 @@ public com.google.cloud.filestore.v1beta1.GetSnapshotRequest 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.filestore.v1beta1.GetSnapshotRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.GetSnapshotRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.GetSnapshotRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +398,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.GetSnapshotRequest other) { - if (other == com.google.cloud.filestore.v1beta1.GetSnapshotRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.GetSnapshotRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +455,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * string name = 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; @@ -438,21 +480,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * string name = 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 { @@ -460,64 +505,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * 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. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * string 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. The snapshot resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* - * 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); } @@ -527,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.GetSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.GetSnapshotRequest) private static final com.google.cloud.filestore.v1beta1.GetSnapshotRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.GetSnapshotRequest(); } @@ -541,27 +599,27 @@ public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.GetSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..1ce175fa576b --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface GetSnapshotRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * + * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java similarity index 72% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java index d2246f7d48a1..fb2106bcbe8c 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * A Filestore instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Instance} */ -public final class Instance extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Instance extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.Instance) InstanceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Instance() { name_ = ""; description_ = ""; @@ -34,51 +52,54 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Instance_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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Instance.class, com.google.cloud.filestore.v1beta1.Instance.Builder.class); + com.google.cloud.filestore.v1beta1.Instance.class, + com.google.cloud.filestore.v1beta1.Instance.Builder.class); } /** + * + * *
    * The instance state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Instance.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State not set.
      * 
@@ -87,6 +108,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The instance is being created.
      * 
@@ -95,6 +118,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The instance is available for use.
      * 
@@ -103,6 +128,8 @@ public enum State */ READY(2), /** + * + * *
      * Work is being done on the instance. You can get further details from the
      * `statusMessage` field of the `Instance` resource.
@@ -112,6 +139,8 @@ public enum State
      */
     REPAIRING(3),
     /**
+     *
+     *
      * 
      * The instance is shutting down.
      * 
@@ -120,6 +149,8 @@ public enum State */ DELETING(4), /** + * + * *
      * The instance is experiencing an issue and might be unusable. You can get
      * further details from the `statusMessage` field of the `Instance`
@@ -130,6 +161,8 @@ public enum State
      */
     ERROR(6),
     /**
+     *
+     *
      * 
      * The instance is restoring a snapshot or backup to an existing file share
      * and may be unusable during this time.
@@ -139,6 +172,8 @@ public enum State
      */
     RESTORING(7),
     /**
+     *
+     *
      * 
      * The instance is suspended. You can get further details from
      * the `suspension_reasons` field of the `Instance` resource.
@@ -148,6 +183,8 @@ public enum State
      */
     SUSPENDED(8),
     /**
+     *
+     *
      * 
      * The instance is reverting to a snapshot.
      * 
@@ -156,6 +193,8 @@ public enum State */ REVERTING(9), /** + * + * *
      * The instance is in the process of becoming suspended.
      * 
@@ -164,6 +203,8 @@ public enum State */ SUSPENDING(10), /** + * + * *
      * The instance is in the process of becoming active.
      * 
@@ -175,6 +216,8 @@ public enum State ; /** + * + * *
      * State not set.
      * 
@@ -183,6 +226,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The instance is being created.
      * 
@@ -191,6 +236,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The instance is available for use.
      * 
@@ -199,6 +246,8 @@ public enum State */ public static final int READY_VALUE = 2; /** + * + * *
      * Work is being done on the instance. You can get further details from the
      * `statusMessage` field of the `Instance` resource.
@@ -208,6 +257,8 @@ public enum State
      */
     public static final int REPAIRING_VALUE = 3;
     /**
+     *
+     *
      * 
      * The instance is shutting down.
      * 
@@ -216,6 +267,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
      * The instance is experiencing an issue and might be unusable. You can get
      * further details from the `statusMessage` field of the `Instance`
@@ -226,6 +279,8 @@ public enum State
      */
     public static final int ERROR_VALUE = 6;
     /**
+     *
+     *
      * 
      * The instance is restoring a snapshot or backup to an existing file share
      * and may be unusable during this time.
@@ -235,6 +290,8 @@ public enum State
      */
     public static final int RESTORING_VALUE = 7;
     /**
+     *
+     *
      * 
      * The instance is suspended. You can get further details from
      * the `suspension_reasons` field of the `Instance` resource.
@@ -244,6 +301,8 @@ public enum State
      */
     public static final int SUSPENDED_VALUE = 8;
     /**
+     *
+     *
      * 
      * The instance is reverting to a snapshot.
      * 
@@ -252,6 +311,8 @@ public enum State */ public static final int REVERTING_VALUE = 9; /** + * + * *
      * The instance is in the process of becoming suspended.
      * 
@@ -260,6 +321,8 @@ public enum State */ public static final int SUSPENDING_VALUE = 10; /** + * + * *
      * The instance is in the process of becoming active.
      * 
@@ -268,7 +331,6 @@ public enum State */ public static final int RESUMING_VALUE = 11; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -293,57 +355,65 @@ 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 READY; - case 3: return REPAIRING; - case 4: return DELETING; - case 6: return ERROR; - case 7: return RESTORING; - case 8: return SUSPENDED; - case 9: return REVERTING; - case 10: return SUSPENDING; - case 11: return RESUMING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return REPAIRING; + case 4: + return DELETING; + case 6: + return ERROR; + case 7: + return RESTORING; + case 8: + return SUSPENDED; + case 9: + return REVERTING; + case 10: + return SUSPENDING; + case 11: + return RESUMING; + 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.filestore.v1beta1.Instance.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; @@ -361,15 +431,18 @@ private State(int value) { } /** + * + * *
    * Available service tiers.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Instance.Tier} */ - public enum Tier - implements com.google.protobuf.ProtocolMessageEnum { + public enum Tier implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -378,6 +451,8 @@ public enum Tier */ TIER_UNSPECIFIED(0), /** + * + * *
      * STANDARD tier. BASIC_HDD is the preferred term for this tier.
      * 
@@ -386,6 +461,8 @@ public enum Tier */ STANDARD(1), /** + * + * *
      * PREMIUM tier. BASIC_SSD is the preferred term for this tier.
      * 
@@ -394,6 +471,8 @@ public enum Tier */ PREMIUM(2), /** + * + * *
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_HDD is an alias for STANDARD Tier, offering economical
@@ -404,6 +483,8 @@ public enum Tier
      */
     BASIC_HDD(3),
     /**
+     *
+     *
      * 
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_SSD is an alias for PREMIUM Tier, and offers improved
@@ -414,6 +495,8 @@ public enum Tier
      */
     BASIC_SSD(4),
     /**
+     *
+     *
      * 
      * HIGH_SCALE instances offer expanded capacity and performance scaling
      * capabilities.
@@ -423,6 +506,8 @@ public enum Tier
      */
     HIGH_SCALE_SSD(6),
     /**
+     *
+     *
      * 
      * ENTERPRISE instances offer the features and availability needed for
      * mission-critical workloads.
@@ -435,6 +520,8 @@ public enum Tier
     ;
 
     /**
+     *
+     *
      * 
      * Not set.
      * 
@@ -443,6 +530,8 @@ public enum Tier */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** + * + * *
      * STANDARD tier. BASIC_HDD is the preferred term for this tier.
      * 
@@ -451,6 +540,8 @@ public enum Tier */ public static final int STANDARD_VALUE = 1; /** + * + * *
      * PREMIUM tier. BASIC_SSD is the preferred term for this tier.
      * 
@@ -459,6 +550,8 @@ public enum Tier */ public static final int PREMIUM_VALUE = 2; /** + * + * *
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_HDD is an alias for STANDARD Tier, offering economical
@@ -469,6 +562,8 @@ public enum Tier
      */
     public static final int BASIC_HDD_VALUE = 3;
     /**
+     *
+     *
      * 
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_SSD is an alias for PREMIUM Tier, and offers improved
@@ -479,6 +574,8 @@ public enum Tier
      */
     public static final int BASIC_SSD_VALUE = 4;
     /**
+     *
+     *
      * 
      * HIGH_SCALE instances offer expanded capacity and performance scaling
      * capabilities.
@@ -488,6 +585,8 @@ public enum Tier
      */
     public static final int HIGH_SCALE_SSD_VALUE = 6;
     /**
+     *
+     *
      * 
      * ENTERPRISE instances offer the features and availability needed for
      * mission-critical workloads.
@@ -497,7 +596,6 @@ public enum Tier
      */
     public static final int ENTERPRISE_VALUE = 7;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -522,53 +620,57 @@ public static Tier valueOf(int value) {
      */
     public static Tier forNumber(int value) {
       switch (value) {
-        case 0: return TIER_UNSPECIFIED;
-        case 1: return STANDARD;
-        case 2: return PREMIUM;
-        case 3: return BASIC_HDD;
-        case 4: return BASIC_SSD;
-        case 6: return HIGH_SCALE_SSD;
-        case 7: return ENTERPRISE;
-        default: return null;
+        case 0:
+          return TIER_UNSPECIFIED;
+        case 1:
+          return STANDARD;
+        case 2:
+          return PREMIUM;
+        case 3:
+          return BASIC_HDD;
+        case 4:
+          return BASIC_SSD;
+        case 6:
+          return HIGH_SCALE_SSD;
+        case 7:
+          return ENTERPRISE;
+        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<
-        Tier> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Tier findValueByNumber(int number) {
-              return Tier.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 Tier findValueByNumber(int number) {
+            return Tier.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.filestore.v1beta1.Instance.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Tier[] VALUES = values();
 
-    public static Tier valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Tier 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;
@@ -586,15 +688,18 @@ private Tier(int value) {
   }
 
   /**
+   *
+   *
    * 
    * SuspensionReason contains the possible reasons for a suspension.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Instance.SuspensionReason} */ - public enum SuspensionReason - implements com.google.protobuf.ProtocolMessageEnum { + public enum SuspensionReason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not set.
      * 
@@ -603,6 +708,8 @@ public enum SuspensionReason */ SUSPENSION_REASON_UNSPECIFIED(0), /** + * + * *
      * The KMS key used by the instance is either revoked or denied access to.
      * 
@@ -614,6 +721,8 @@ public enum SuspensionReason ; /** + * + * *
      * Not set.
      * 
@@ -622,6 +731,8 @@ public enum SuspensionReason */ public static final int SUSPENSION_REASON_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The KMS key used by the instance is either revoked or denied access to.
      * 
@@ -630,7 +741,6 @@ public enum SuspensionReason */ public static final int KMS_KEY_ISSUE_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -655,38 +765,40 @@ public static SuspensionReason valueOf(int value) { */ public static SuspensionReason forNumber(int value) { switch (value) { - case 0: return SUSPENSION_REASON_UNSPECIFIED; - case 1: return KMS_KEY_ISSUE; - default: return null; + case 0: + return SUSPENSION_REASON_UNSPECIFIED; + case 1: + return KMS_KEY_ISSUE; + 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< - SuspensionReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SuspensionReason findValueByNumber(int number) { - return SuspensionReason.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 SuspensionReason findValueByNumber(int number) { + return SuspensionReason.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.filestore.v1beta1.Instance.getDescriptor().getEnumTypes().get(2); } @@ -695,8 +807,7 @@ public SuspensionReason findValueByNumber(int number) { public static SuspensionReason 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; @@ -716,12 +827,15 @@ private SuspensionReason(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -730,30 +844,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 resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -764,11 +878,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -777,29 +894,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; } } /** + * + * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; + * * @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 { @@ -810,38 +927,54 @@ public java.lang.String getDescription() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** + * + * *
    * Output only. The instance state.
    * 
* - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.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 instance state.
    * 
* - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.State getState() { + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.State result = com.google.cloud.filestore.v1beta1.Instance.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Instance.State result = + com.google.cloud.filestore.v1beta1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Instance.State.UNRECOGNIZED : result; } public static final int STATUS_MESSAGE_FIELD_NUMBER = 6; private volatile java.lang.Object statusMessage_; /** + * + * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -850,29 +983,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. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.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 { @@ -883,11 +1016,15 @@ public java.lang.String getStatusMessage() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -895,11 +1032,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -907,11 +1048,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -921,49 +1065,57 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int TIER_FIELD_NUMBER = 8; private int tier_; /** + * + * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; + * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override public int getTierValue() { + @java.lang.Override + public int getTierValue() { return tier_; } /** + * + * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; + * * @return The tier. */ - @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.Tier getTier() { + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.Tier result = com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(tier_); + com.google.cloud.filestore.v1beta1.Instance.Tier result = + com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED : result; } 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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_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.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Instance_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_; } @@ -972,28 +1124,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * 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(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -1001,11 +1155,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -1013,16 +1168,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; } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -1030,12 +1185,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(); } @@ -1045,6 +1199,8 @@ public java.lang.String getLabelsOrThrow( public static final int FILE_SHARES_FIELD_NUMBER = 10; private java.util.List fileShares_; /** + * + * *
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1057,6 +1213,8 @@ public java.util.List getFil
     return fileShares_;
   }
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1065,11 +1223,13 @@ public java.util.List getFil
    * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getFileSharesOrBuilderList() {
     return fileShares_;
   }
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1082,6 +1242,8 @@ public int getFileSharesCount() {
     return fileShares_.size();
   }
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1094,6 +1256,8 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig getFileShares(int inde
     return fileShares_.get(index);
   }
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1110,6 +1274,8 @@ public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileShares
   public static final int NETWORKS_FIELD_NUMBER = 11;
   private java.util.List networks_;
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1122,6 +1288,8 @@ public java.util.List getNetwo
     return networks_;
   }
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1130,11 +1298,13 @@ public java.util.List getNetwo
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getNetworksOrBuilderList() {
     return networks_;
   }
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1147,6 +1317,8 @@ public int getNetworksCount() {
     return networks_.size();
   }
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1159,6 +1331,8 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index) {
     return networks_.get(index);
   }
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1167,20 +1341,22 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index) {
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(
-      int index) {
+  public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(int index) {
     return networks_.get(index);
   }
 
   public static final int ETAG_FIELD_NUMBER = 12;
   private volatile java.lang.Object etag_;
   /**
+   *
+   *
    * 
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; + * * @return The etag. */ @java.lang.Override @@ -1189,30 +1365,30 @@ 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; } } /** + * + * *
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; + * * @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 { @@ -1223,11 +1399,16 @@ public java.lang.String getEtag() { public static final int SATISFIES_PZS_FIELD_NUMBER = 13; private com.google.protobuf.BoolValue satisfiesPzs_; /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the satisfiesPzs field is set. */ @java.lang.Override @@ -1235,23 +1416,34 @@ public boolean hasSatisfiesPzs() { return satisfiesPzs_ != null; } /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The satisfiesPzs. */ @java.lang.Override public com.google.protobuf.BoolValue getSatisfiesPzs() { - return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; } /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { @@ -1261,11 +1453,14 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { public static final int KMS_KEY_NAME_FIELD_NUMBER = 14; private volatile java.lang.Object kmsKeyName_; /** + * + * *
    * KMS key name used for data encryption.
    * 
* * string kms_key_name = 14; + * * @return The kmsKeyName. */ @java.lang.Override @@ -1274,29 +1469,29 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** + * + * *
    * KMS key name used for data encryption.
    * 
* * string kms_key_name = 14; + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -1307,34 +1502,51 @@ public java.lang.String getKmsKeyName() { public static final int SUSPENSION_REASONS_FIELD_NUMBER = 15; private java.util.List suspensionReasons_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason> suspensionReasons_converter_ = + java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason> + suspensionReasons_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>() { - public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason convert(java.lang.Integer from) { + public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason convert( + java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.SuspensionReason result = com.google.cloud.filestore.v1beta1.Instance.SuspensionReason.valueOf(from); - return result == null ? com.google.cloud.filestore.v1beta1.Instance.SuspensionReason.UNRECOGNIZED : result; + com.google.cloud.filestore.v1beta1.Instance.SuspensionReason result = + com.google.cloud.filestore.v1beta1.Instance.SuspensionReason.valueOf(from); + return result == null + ? com.google.cloud.filestore.v1beta1.Instance.SuspensionReason.UNRECOGNIZED + : result; } }; /** + * + * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the suspensionReasons. */ @java.lang.Override - public java.util.List getSuspensionReasonsList() { + public java.util.List + getSuspensionReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>(suspensionReasons_, suspensionReasons_converter_); + java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>( + suspensionReasons_, suspensionReasons_converter_); } /** + * + * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of suspensionReasons. */ @java.lang.Override @@ -1342,37 +1554,52 @@ public int getSuspensionReasonsCount() { return suspensionReasons_.size(); } /** + * + * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The suspensionReasons at the given index. */ @java.lang.Override - public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons(int index) { + public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons( + int index) { return suspensionReasons_converter_.convert(suspensionReasons_.get(index)); } /** + * + * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the enum numeric values on the wire for suspensionReasons. */ @java.lang.Override - public java.util.List - getSuspensionReasonsValueList() { + public java.util.List getSuspensionReasonsValueList() { return suspensionReasons_; } /** + * + * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of suspensionReasons at the given index. */ @@ -1380,16 +1607,20 @@ public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensio public int getSuspensionReasonsValue(int index) { return suspensionReasons_.get(index); } + private int suspensionReasonsMemoizedSerializedSize; public static final int MAX_CAPACITY_GB_FIELD_NUMBER = 16; private long maxCapacityGb_; /** + * + * *
    * Output only. The max capacity of the instance.
    * 
* * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The maxCapacityGb. */ @java.lang.Override @@ -1400,11 +1631,14 @@ public long getMaxCapacityGb() { public static final int CAPACITY_STEP_SIZE_GB_FIELD_NUMBER = 17; private long capacityStepSizeGb_; /** + * + * *
    * Output only. The increase/decrease capacity step size.
    * 
* * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The capacityStepSizeGb. */ @java.lang.Override @@ -1415,11 +1649,14 @@ public long getCapacityStepSizeGb() { public static final int MAX_SHARE_COUNT_FIELD_NUMBER = 18; private long maxShareCount_; /** + * + * *
    * Output only. The max number of shares allowed.
    * 
* * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The maxShareCount. */ @java.lang.Override @@ -1430,6 +1667,8 @@ public long getMaxShareCount() { public static final int CAPACITY_GB_FIELD_NUMBER = 19; private long capacityGb_; /** + * + * *
    * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
    * This capacity can be increased up to `max_capacity_gb` GB in multipliers
@@ -1437,6 +1676,7 @@ public long getMaxShareCount() {
    * 
* * int64 capacity_gb = 19; + * * @return The capacityGb. */ @java.lang.Override @@ -1447,6 +1687,8 @@ public long getCapacityGb() { public static final int MULTI_SHARE_ENABLED_FIELD_NUMBER = 20; private boolean multiShareEnabled_; /** + * + * *
    * Indicates whether this instance uses a multi-share configuration with which
    * it can have more than one file-share or none at all. File-shares are added,
@@ -1454,6 +1696,7 @@ public long getCapacityGb() {
    * 
* * bool multi_share_enabled = 20; + * * @return The multiShareEnabled. */ @java.lang.Override @@ -1462,6 +1705,7 @@ public boolean getMultiShareEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1473,8 +1717,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); @@ -1494,12 +1737,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (tier_ != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(8, tier_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 9); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); for (int i = 0; i < fileShares_.size(); i++) { output.writeMessage(10, fileShares_.get(i)); } @@ -1553,44 +1792,38 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1beta1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, statusMessage_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } if (tier_ != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, tier_); - } - 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.computeEnumSize(8, tier_); + } + 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__); } for (int i = 0; i < fileShares_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, fileShares_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, fileShares_.get(i)); } for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, networks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etag_); } if (satisfiesPzs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getSatisfiesPzs()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSatisfiesPzs()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, kmsKeyName_); @@ -1598,34 +1831,30 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < suspensionReasons_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(suspensionReasons_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(suspensionReasons_.get(i)); } size += dataSize; - if (!getSuspensionReasonsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }suspensionReasonsMemoizedSerializedSize = dataSize; + if (!getSuspensionReasonsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + suspensionReasonsMemoizedSerializedSize = dataSize; } if (maxCapacityGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(16, maxCapacityGb_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(16, maxCapacityGb_); } if (capacityStepSizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(17, capacityStepSizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(17, capacityStepSizeGb_); } if (maxShareCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(18, maxShareCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(18, maxShareCount_); } if (capacityGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(19, capacityGb_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(19, capacityGb_); } if (multiShareEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(20, multiShareEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, multiShareEnabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1635,52 +1864,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.filestore.v1beta1.Instance)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.Instance other = (com.google.cloud.filestore.v1beta1.Instance) obj; + com.google.cloud.filestore.v1beta1.Instance other = + (com.google.cloud.filestore.v1beta1.Instance) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) 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 (tier_ != other.tier_) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getFileSharesList() - .equals(other.getFileSharesList())) return false; - if (!getNetworksList() - .equals(other.getNetworksList())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getFileSharesList().equals(other.getFileSharesList())) return false; + if (!getNetworksList().equals(other.getNetworksList())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { - if (!getSatisfiesPzs() - .equals(other.getSatisfiesPzs())) return false; + if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; } - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (!suspensionReasons_.equals(other.suspensionReasons_)) return false; - if (getMaxCapacityGb() - != other.getMaxCapacityGb()) return false; - if (getCapacityStepSizeGb() - != other.getCapacityStepSizeGb()) return false; - if (getMaxShareCount() - != other.getMaxShareCount()) return false; - if (getCapacityGb() - != other.getCapacityGb()) return false; - if (getMultiShareEnabled() - != other.getMultiShareEnabled()) return false; + if (getMaxCapacityGb() != other.getMaxCapacityGb()) return false; + if (getCapacityStepSizeGb() != other.getCapacityStepSizeGb()) return false; + if (getMaxShareCount() != other.getMaxShareCount()) return false; + if (getCapacityGb() != other.getCapacityGb()) return false; + if (getMultiShareEnabled() != other.getMultiShareEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1731,171 +1946,170 @@ public int hashCode() { hash = (53 * hash) + suspensionReasons_.hashCode(); } hash = (37 * hash) + MAX_CAPACITY_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxCapacityGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxCapacityGb()); hash = (37 * hash) + CAPACITY_STEP_SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCapacityStepSizeGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityStepSizeGb()); hash = (37 * hash) + MAX_SHARE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxShareCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxShareCount()); hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCapacityGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb()); hash = (37 * hash) + MULTI_SHARE_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMultiShareEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultiShareEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1beta1.Instance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.Instance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.Instance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.Instance parseFrom(java.io.InputStream input) 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.filestore.v1beta1.Instance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Instance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.Instance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.Instance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.Instance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Filestore instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Instance} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.Instance) com.google.cloud.filestore.v1beta1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Instance_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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Instance.class, com.google.cloud.filestore.v1beta1.Instance.Builder.class); + com.google.cloud.filestore.v1beta1.Instance.class, + com.google.cloud.filestore.v1beta1.Instance.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.Instance.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1956,9 +2170,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; } @java.lang.Override @@ -1977,7 +2191,8 @@ public com.google.cloud.filestore.v1beta1.Instance build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance buildPartial() { - com.google.cloud.filestore.v1beta1.Instance result = new com.google.cloud.filestore.v1beta1.Instance(this); + com.google.cloud.filestore.v1beta1.Instance result = + new com.google.cloud.filestore.v1beta1.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -2034,38 +2249,39 @@ public com.google.cloud.filestore.v1beta1.Instance 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.filestore.v1beta1.Instance) { - return mergeFrom((com.google.cloud.filestore.v1beta1.Instance)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.Instance) other); } else { super.mergeFrom(other); return this; @@ -2095,8 +2311,7 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Instance other) { if (other.tier_ != 0) { setTierValue(other.getTierValue()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (fileSharesBuilder_ == null) { if (!other.fileShares_.isEmpty()) { if (fileShares_.isEmpty()) { @@ -2115,9 +2330,10 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Instance other) { fileSharesBuilder_ = null; fileShares_ = other.fileShares_; bitField0_ = (bitField0_ & ~0x00000002); - fileSharesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFileSharesFieldBuilder() : null; + fileSharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFileSharesFieldBuilder() + : null; } else { fileSharesBuilder_.addAllMessages(other.fileShares_); } @@ -2141,9 +2357,10 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Instance other) { networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000004); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworksFieldBuilder() : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworksFieldBuilder() + : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -2211,137 +2428,155 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 40: { - state_ = input.readEnum(); - - break; - } // case 40 - case 50: { - statusMessage_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 58 - case 64: { - tier_ = input.readEnum(); - - break; - } // case 64 - case 74: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 74 - case 82: { - com.google.cloud.filestore.v1beta1.FileShareConfig m = - input.readMessage( - com.google.cloud.filestore.v1beta1.FileShareConfig.parser(), - extensionRegistry); - if (fileSharesBuilder_ == null) { - ensureFileSharesIsMutable(); - fileShares_.add(m); - } else { - fileSharesBuilder_.addMessage(m); - } - break; - } // case 82 - case 90: { - com.google.cloud.filestore.v1beta1.NetworkConfig m = - input.readMessage( - com.google.cloud.filestore.v1beta1.NetworkConfig.parser(), - extensionRegistry); - if (networksBuilder_ == null) { - ensureNetworksIsMutable(); - networks_.add(m); - } else { - networksBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: { - input.readMessage( - getSatisfiesPzsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 106 - case 114: { - kmsKeyName_ = input.readStringRequireUtf8(); - - break; - } // case 114 - case 120: { - int tmpRaw = input.readEnum(); - ensureSuspensionReasonsIsMutable(); - suspensionReasons_.add(tmpRaw); - break; - } // case 120 - case 122: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 40: + { + state_ = input.readEnum(); + + break; + } // case 40 + case 50: + { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 64: + { + tier_ = input.readEnum(); + + break; + } // case 64 + case 74: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 74 + case 82: + { + com.google.cloud.filestore.v1beta1.FileShareConfig m = + input.readMessage( + com.google.cloud.filestore.v1beta1.FileShareConfig.parser(), + extensionRegistry); + if (fileSharesBuilder_ == null) { + ensureFileSharesIsMutable(); + fileShares_.add(m); + } else { + fileSharesBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + com.google.cloud.filestore.v1beta1.NetworkConfig m = + input.readMessage( + com.google.cloud.filestore.v1beta1.NetworkConfig.parser(), + extensionRegistry); + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.add(m); + } else { + networksBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: + { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: + { + input.readMessage(getSatisfiesPzsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 106 + case 114: + { + kmsKeyName_ = input.readStringRequireUtf8(); + + break; + } // case 114 + case 120: + { int tmpRaw = input.readEnum(); ensureSuspensionReasonsIsMutable(); suspensionReasons_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 122 - case 128: { - maxCapacityGb_ = input.readInt64(); - - break; - } // case 128 - case 136: { - capacityStepSizeGb_ = input.readInt64(); - - break; - } // case 136 - case 144: { - maxShareCount_ = input.readInt64(); - - break; - } // case 144 - case 152: { - capacityGb_ = input.readInt64(); - - break; - } // case 152 - case 160: { - multiShareEnabled_ = input.readBool(); - - break; - } // case 160 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 120 + case 122: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureSuspensionReasonsIsMutable(); + suspensionReasons_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 122 + case 128: + { + maxCapacityGb_ = input.readInt64(); + + break; + } // case 128 + case 136: + { + capacityStepSizeGb_ = input.readInt64(); + + break; + } // case 136 + case 144: + { + maxShareCount_ = input.readInt64(); + + break; + } // case 144 + case 152: + { + capacityGb_ = input.readInt64(); + + break; + } // case 152 + case 160: + { + multiShareEnabled_ = input.readBool(); + + break; + } // case 160 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2351,23 +2586,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2376,21 +2614,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2398,57 +2637,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* * 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 resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + 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; @@ -2456,18 +2702,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; + * * @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; @@ -2476,20 +2724,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; + * * @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 { @@ -2497,54 +2746,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; + * * @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; } /** + * + * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; + * * @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; @@ -2552,51 +2808,75 @@ public Builder setDescriptionBytes( private int state_ = 0; /** + * + * *
      * Output only. The instance state.
      * 
* - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.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 instance state.
      * 
* - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.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 instance state.
      * 
* - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.State result = com.google.cloud.filestore.v1beta1.Instance.State.valueOf(state_); - return result == null ? com.google.cloud.filestore.v1beta1.Instance.State.UNRECOGNIZED : result; + com.google.cloud.filestore.v1beta1.Instance.State result = + com.google.cloud.filestore.v1beta1.Instance.State.valueOf(state_); + return result == null + ? com.google.cloud.filestore.v1beta1.Instance.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The instance state.
      * 
* - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2604,21 +2884,26 @@ public Builder setState(com.google.cloud.filestore.v1beta1.Instance.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The instance state.
      * 
* - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2626,18 +2911,20 @@ public Builder clearState() { private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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; @@ -2646,20 +2933,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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 { @@ -2667,54 +2955,61 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** + * + * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.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; @@ -2722,39 +3017,58 @@ public Builder setStatusMessageBytes( 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 when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2770,14 +3084,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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(); @@ -2788,17 +3105,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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; } @@ -2810,11 +3131,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2828,48 +3153,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the instance was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -2877,51 +3218,67 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int tier_ = 0; /** + * + * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; + * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override public int getTierValue() { + @java.lang.Override + public int getTierValue() { return tier_; } /** + * + * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; + * * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** + * + * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; + * * @return The tier. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.Tier result = com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(tier_); - return result == null ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED : result; + com.google.cloud.filestore.v1beta1.Instance.Tier result = + com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(tier_); + return result == null + ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED + : result; } /** + * + * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; + * * @param value The tier to set. * @return This builder for chaining. */ @@ -2929,42 +3286,44 @@ public Builder setTier(com.google.cloud.filestore.v1beta1.Instance.Tier value) { if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; + * * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; 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(); @@ -2976,28 +3335,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * 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(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -3005,11 +3366,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -3017,16 +3379,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; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -3034,12 +3397,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(); } @@ -3047,80 +3409,85 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * 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(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * 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; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * 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.util.List fileShares_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFileSharesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fileShares_ = new java.util.ArrayList(fileShares_); + fileShares_ = + new java.util.ArrayList( + fileShares_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.FileShareConfig, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder, com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder> fileSharesBuilder_; + com.google.cloud.filestore.v1beta1.FileShareConfig, + com.google.cloud.filestore.v1beta1.FileShareConfig.Builder, + com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder> + fileSharesBuilder_; /** + * + * *
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3136,6 +3503,8 @@ public java.util.List getFil
       }
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3151,6 +3520,8 @@ public int getFileSharesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3166,6 +3537,8 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig getFileShares(int inde
       }
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3188,6 +3561,8 @@ public Builder setFileShares(
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3207,6 +3582,8 @@ public Builder setFileShares(
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3228,6 +3605,8 @@ public Builder addFileShares(com.google.cloud.filestore.v1beta1.FileShareConfig
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3250,6 +3629,8 @@ public Builder addFileShares(
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3269,6 +3650,8 @@ public Builder addFileShares(
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3288,6 +3671,8 @@ public Builder addFileShares(
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3299,8 +3684,7 @@ public Builder addAllFileShares(
         java.lang.Iterable values) {
       if (fileSharesBuilder_ == null) {
         ensureFileSharesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, fileShares_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileShares_);
         onChanged();
       } else {
         fileSharesBuilder_.addAllMessages(values);
@@ -3308,6 +3692,8 @@ public Builder addAllFileShares(
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3326,6 +3712,8 @@ public Builder clearFileShares() {
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3344,6 +3732,8 @@ public Builder removeFileShares(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3356,6 +3746,8 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder getFileSharesB
       return getFileSharesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3366,11 +3758,14 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder getFileSharesB
     public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuilder(
         int index) {
       if (fileSharesBuilder_ == null) {
-        return fileShares_.get(index);  } else {
+        return fileShares_.get(index);
+      } else {
         return fileSharesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3378,8 +3773,8 @@ public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileShares
      *
      * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
      */
-    public java.util.List 
-         getFileSharesOrBuilderList() {
+    public java.util.List
+        getFileSharesOrBuilderList() {
       if (fileSharesBuilder_ != null) {
         return fileSharesBuilder_.getMessageOrBuilderList();
       } else {
@@ -3387,6 +3782,8 @@ public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileShares
       }
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3395,10 +3792,12 @@ public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileShares
      * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
      */
     public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder addFileSharesBuilder() {
-      return getFileSharesFieldBuilder().addBuilder(
-          com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance());
+      return getFileSharesFieldBuilder()
+          .addBuilder(com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3408,10 +3807,13 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder addFileSharesB
      */
     public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder addFileSharesBuilder(
         int index) {
-      return getFileSharesFieldBuilder().addBuilder(
-          index, com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance());
+      return getFileSharesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3419,38 +3821,48 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder addFileSharesB
      *
      * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
      */
-    public java.util.List 
-         getFileSharesBuilderList() {
+    public java.util.List
+        getFileSharesBuilderList() {
       return getFileSharesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.filestore.v1beta1.FileShareConfig, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder, com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder> 
+            com.google.cloud.filestore.v1beta1.FileShareConfig,
+            com.google.cloud.filestore.v1beta1.FileShareConfig.Builder,
+            com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>
         getFileSharesFieldBuilder() {
       if (fileSharesBuilder_ == null) {
-        fileSharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1beta1.FileShareConfig, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder, com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>(
-                fileShares_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        fileSharesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.filestore.v1beta1.FileShareConfig,
+                com.google.cloud.filestore.v1beta1.FileShareConfig.Builder,
+                com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>(
+                fileShares_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         fileShares_ = null;
       }
       return fileSharesBuilder_;
     }
 
     private java.util.List networks_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureNetworksIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        networks_ = new java.util.ArrayList(networks_);
+        networks_ =
+            new java.util.ArrayList(networks_);
         bitField0_ |= 0x00000004;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.filestore.v1beta1.NetworkConfig, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder, com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder> networksBuilder_;
+            com.google.cloud.filestore.v1beta1.NetworkConfig,
+            com.google.cloud.filestore.v1beta1.NetworkConfig.Builder,
+            com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>
+        networksBuilder_;
 
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3466,6 +3878,8 @@ public java.util.List getNetwo
       }
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3481,6 +3895,8 @@ public int getNetworksCount() {
       }
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3496,6 +3912,8 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3503,8 +3921,7 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public Builder setNetworks(
-        int index, com.google.cloud.filestore.v1beta1.NetworkConfig value) {
+    public Builder setNetworks(int index, com.google.cloud.filestore.v1beta1.NetworkConfig value) {
       if (networksBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3518,6 +3935,8 @@ public Builder setNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3537,6 +3956,8 @@ public Builder setNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3558,6 +3979,8 @@ public Builder addNetworks(com.google.cloud.filestore.v1beta1.NetworkConfig valu
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3565,8 +3988,7 @@ public Builder addNetworks(com.google.cloud.filestore.v1beta1.NetworkConfig valu
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public Builder addNetworks(
-        int index, com.google.cloud.filestore.v1beta1.NetworkConfig value) {
+    public Builder addNetworks(int index, com.google.cloud.filestore.v1beta1.NetworkConfig value) {
       if (networksBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3580,6 +4002,8 @@ public Builder addNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3599,6 +4023,8 @@ public Builder addNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3618,6 +4044,8 @@ public Builder addNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3629,8 +4057,7 @@ public Builder addAllNetworks(
         java.lang.Iterable values) {
       if (networksBuilder_ == null) {
         ensureNetworksIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, networks_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_);
         onChanged();
       } else {
         networksBuilder_.addAllMessages(values);
@@ -3638,6 +4065,8 @@ public Builder addAllNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3656,6 +4085,8 @@ public Builder clearNetworks() {
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3674,6 +4105,8 @@ public Builder removeNetworks(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3681,11 +4114,12 @@ public Builder removeNetworks(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder getNetworksBuilder(
-        int index) {
+    public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder getNetworksBuilder(int index) {
       return getNetworksFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3696,11 +4130,14 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder getNetworksBuild
     public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(
         int index) {
       if (networksBuilder_ == null) {
-        return networks_.get(index);  } else {
+        return networks_.get(index);
+      } else {
         return networksBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3708,8 +4145,8 @@ public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBu
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public java.util.List 
-         getNetworksOrBuilderList() {
+    public java.util.List
+        getNetworksOrBuilderList() {
       if (networksBuilder_ != null) {
         return networksBuilder_.getMessageOrBuilderList();
       } else {
@@ -3717,6 +4154,8 @@ public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBu
       }
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3725,10 +4164,12 @@ public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBu
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
     public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuilder() {
-      return getNetworksFieldBuilder().addBuilder(
-          com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance());
+      return getNetworksFieldBuilder()
+          .addBuilder(com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3736,12 +4177,13 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuild
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuilder(
-        int index) {
-      return getNetworksFieldBuilder().addBuilder(
-          index, com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance());
+    public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuilder(int index) {
+      return getNetworksFieldBuilder()
+          .addBuilder(index, com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3749,20 +4191,23 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuild
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public java.util.List 
-         getNetworksBuilderList() {
+    public java.util.List
+        getNetworksBuilderList() {
       return getNetworksFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.filestore.v1beta1.NetworkConfig, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder, com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder> 
+            com.google.cloud.filestore.v1beta1.NetworkConfig,
+            com.google.cloud.filestore.v1beta1.NetworkConfig.Builder,
+            com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>
         getNetworksFieldBuilder() {
       if (networksBuilder_ == null) {
-        networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1beta1.NetworkConfig, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder, com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>(
-                networks_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        networksBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.filestore.v1beta1.NetworkConfig,
+                com.google.cloud.filestore.v1beta1.NetworkConfig.Builder,
+                com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>(
+                networks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
         networks_ = null;
       }
       return networksBuilder_;
@@ -3770,19 +4215,21 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuild
 
     private java.lang.Object etag_ = "";
     /**
+     *
+     *
      * 
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; + * * @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; @@ -3791,21 +4238,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; + * * @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 { @@ -3813,57 +4261,64 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; + * * @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; } /** + * + * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; + * * @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; @@ -3871,39 +4326,58 @@ public Builder setEtagBytes( private com.google.protobuf.BoolValue satisfiesPzs_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> satisfiesPzsBuilder_; + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + satisfiesPzsBuilder_; /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the satisfiesPzs field is set. */ public boolean hasSatisfiesPzs() { return satisfiesPzsBuilder_ != null || satisfiesPzs_ != null; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The satisfiesPzs. */ public com.google.protobuf.BoolValue getSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { - return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; } else { return satisfiesPzsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { @@ -3919,14 +4393,17 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSatisfiesPzs( - com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue) { if (satisfiesPzsBuilder_ == null) { satisfiesPzs_ = builderForValue.build(); onChanged(); @@ -3937,17 +4414,23 @@ public Builder setSatisfiesPzs( return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { if (satisfiesPzs_ != null) { satisfiesPzs_ = - com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_).mergeFrom(value).buildPartial(); + com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_) + .mergeFrom(value) + .buildPartial(); } else { satisfiesPzs_ = value; } @@ -3959,11 +4442,15 @@ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { @@ -3977,48 +4464,64 @@ public Builder clearSatisfiesPzs() { return this; } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder() { - + onChanged(); return getSatisfiesPzsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { if (satisfiesPzsBuilder_ != null) { return satisfiesPzsBuilder_.getMessageOrBuilder(); } else { - return satisfiesPzs_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; } } /** + * + * *
      * Output only. Reserved for future use.
      * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> getSatisfiesPzsFieldBuilder() { if (satisfiesPzsBuilder_ == null) { - satisfiesPzsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getSatisfiesPzs(), - getParentForChildren(), - isClean()); + satisfiesPzsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getSatisfiesPzs(), getParentForChildren(), isClean()); satisfiesPzs_ = null; } return satisfiesPzsBuilder_; @@ -4026,18 +4529,20 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * KMS key name used for data encryption.
      * 
* * string kms_key_name = 14; + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -4046,20 +4551,21 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * KMS key name used for data encryption.
      * 
* * string kms_key_name = 14; + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -4067,61 +4573,69 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * KMS key name used for data encryption.
      * 
* * string kms_key_name = 14; + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { + public Builder setKmsKeyName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** + * + * *
      * KMS key name used for data encryption.
      * 
* * string kms_key_name = 14; + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** + * + * *
      * KMS key name used for data encryption.
      * 
* * string kms_key_name = 14; + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; } private java.util.List suspensionReasons_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSuspensionReasonsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { suspensionReasons_ = new java.util.ArrayList(suspensionReasons_); @@ -4129,46 +4643,69 @@ private void ensureSuspensionReasonsIsMutable() { } } /** + * + * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the suspensionReasons. */ - public java.util.List getSuspensionReasonsList() { + public java.util.List + getSuspensionReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>(suspensionReasons_, suspensionReasons_converter_); + java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>( + suspensionReasons_, suspensionReasons_converter_); } /** + * + * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of suspensionReasons. */ public int getSuspensionReasonsCount() { return suspensionReasons_.size(); } /** + * + * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The suspensionReasons at the given index. */ - public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons(int index) { + public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons( + int index) { return suspensionReasons_converter_.convert(suspensionReasons_.get(index)); } /** + * + * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The suspensionReasons to set. * @return This builder for chaining. @@ -4184,15 +4721,21 @@ public Builder setSuspensionReasons( return this; } /** + * + * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The suspensionReasons to add. * @return This builder for chaining. */ - public Builder addSuspensionReasons(com.google.cloud.filestore.v1beta1.Instance.SuspensionReason value) { + public Builder addSuspensionReasons( + com.google.cloud.filestore.v1beta1.Instance.SuspensionReason value) { if (value == null) { throw new NullPointerException(); } @@ -4202,16 +4745,22 @@ public Builder addSuspensionReasons(com.google.cloud.filestore.v1beta1.Instance. return this; } /** + * + * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The suspensionReasons to add. * @return This builder for chaining. */ public Builder addAllSuspensionReasons( - java.lang.Iterable values) { + java.lang.Iterable + values) { ensureSuspensionReasonsIsMutable(); for (com.google.cloud.filestore.v1beta1.Instance.SuspensionReason value : values) { suspensionReasons_.add(value.getNumber()); @@ -4220,11 +4769,16 @@ public Builder addAllSuspensionReasons( return this; } /** + * + * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearSuspensionReasons() { @@ -4234,23 +4788,32 @@ public Builder clearSuspensionReasons() { return this; } /** + * + * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the enum numeric values on the wire for suspensionReasons. */ - public java.util.List - getSuspensionReasonsValueList() { + public java.util.List getSuspensionReasonsValueList() { return java.util.Collections.unmodifiableList(suspensionReasons_); } /** + * + * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of suspensionReasons at the given index. */ @@ -4258,28 +4821,37 @@ public int getSuspensionReasonsValue(int index) { return suspensionReasons_.get(index); } /** + * + * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for suspensionReasons to set. * @return This builder for chaining. */ - public Builder setSuspensionReasonsValue( - int index, int value) { + public Builder setSuspensionReasonsValue(int index, int value) { ensureSuspensionReasonsIsMutable(); suspensionReasons_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for suspensionReasons to add. * @return This builder for chaining. */ @@ -4290,16 +4862,20 @@ public Builder addSuspensionReasonsValue(int value) { return this; } /** + * + * *
      * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
      * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The enum numeric values on the wire for suspensionReasons to add. * @return This builder for chaining. */ - public Builder addAllSuspensionReasonsValue( - java.lang.Iterable values) { + public Builder addAllSuspensionReasonsValue(java.lang.Iterable values) { ensureSuspensionReasonsIsMutable(); for (int value : values) { suspensionReasons_.add(value); @@ -4308,13 +4884,16 @@ public Builder addAllSuspensionReasonsValue( return this; } - private long maxCapacityGb_ ; + private long maxCapacityGb_; /** + * + * *
      * Output only. The max capacity of the instance.
      * 
* * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The maxCapacityGb. */ @java.lang.Override @@ -4322,42 +4901,51 @@ public long getMaxCapacityGb() { return maxCapacityGb_; } /** + * + * *
      * Output only. The max capacity of the instance.
      * 
* * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The maxCapacityGb to set. * @return This builder for chaining. */ public Builder setMaxCapacityGb(long value) { - + maxCapacityGb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The max capacity of the instance.
      * 
* * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMaxCapacityGb() { - + maxCapacityGb_ = 0L; onChanged(); return this; } - private long capacityStepSizeGb_ ; + private long capacityStepSizeGb_; /** + * + * *
      * Output only. The increase/decrease capacity step size.
      * 
* * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The capacityStepSizeGb. */ @java.lang.Override @@ -4365,42 +4953,51 @@ public long getCapacityStepSizeGb() { return capacityStepSizeGb_; } /** + * + * *
      * Output only. The increase/decrease capacity step size.
      * 
* * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The capacityStepSizeGb to set. * @return This builder for chaining. */ public Builder setCapacityStepSizeGb(long value) { - + capacityStepSizeGb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The increase/decrease capacity step size.
      * 
* * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCapacityStepSizeGb() { - + capacityStepSizeGb_ = 0L; onChanged(); return this; } - private long maxShareCount_ ; + private long maxShareCount_; /** + * + * *
      * Output only. The max number of shares allowed.
      * 
* * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The maxShareCount. */ @java.lang.Override @@ -4408,37 +5005,45 @@ public long getMaxShareCount() { return maxShareCount_; } /** + * + * *
      * Output only. The max number of shares allowed.
      * 
* * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The maxShareCount to set. * @return This builder for chaining. */ public Builder setMaxShareCount(long value) { - + maxShareCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The max number of shares allowed.
      * 
* * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMaxShareCount() { - + maxShareCount_ = 0L; onChanged(); return this; } - private long capacityGb_ ; + private long capacityGb_; /** + * + * *
      * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
      * This capacity can be increased up to `max_capacity_gb` GB in multipliers
@@ -4446,6 +5051,7 @@ public Builder clearMaxShareCount() {
      * 
* * int64 capacity_gb = 19; + * * @return The capacityGb. */ @java.lang.Override @@ -4453,6 +5059,8 @@ public long getCapacityGb() { return capacityGb_; } /** + * + * *
      * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
      * This capacity can be increased up to `max_capacity_gb` GB in multipliers
@@ -4460,16 +5068,19 @@ public long getCapacityGb() {
      * 
* * int64 capacity_gb = 19; + * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** + * + * *
      * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
      * This capacity can be increased up to `max_capacity_gb` GB in multipliers
@@ -4477,17 +5088,20 @@ public Builder setCapacityGb(long value) {
      * 
* * int64 capacity_gb = 19; + * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } - private boolean multiShareEnabled_ ; + private boolean multiShareEnabled_; /** + * + * *
      * Indicates whether this instance uses a multi-share configuration with which
      * it can have more than one file-share or none at all. File-shares are added,
@@ -4495,6 +5109,7 @@ public Builder clearCapacityGb() {
      * 
* * bool multi_share_enabled = 20; + * * @return The multiShareEnabled. */ @java.lang.Override @@ -4502,6 +5117,8 @@ public boolean getMultiShareEnabled() { return multiShareEnabled_; } /** + * + * *
      * Indicates whether this instance uses a multi-share configuration with which
      * it can have more than one file-share or none at all. File-shares are added,
@@ -4509,16 +5126,19 @@ public boolean getMultiShareEnabled() {
      * 
* * bool multi_share_enabled = 20; + * * @param value The multiShareEnabled to set. * @return This builder for chaining. */ public Builder setMultiShareEnabled(boolean value) { - + multiShareEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Indicates whether this instance uses a multi-share configuration with which
      * it can have more than one file-share or none at all. File-shares are added,
@@ -4526,17 +5146,18 @@ public Builder setMultiShareEnabled(boolean value) {
      * 
* * bool multi_share_enabled = 20; + * * @return This builder for chaining. */ public Builder clearMultiShareEnabled() { - + multiShareEnabled_ = 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); } @@ -4546,12 +5167,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.Instance) private static final com.google.cloud.filestore.v1beta1.Instance DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.Instance(); } @@ -4560,27 +5181,27 @@ public static com.google.cloud.filestore.v1beta1.Instance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4595,6 +5216,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java similarity index 75% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java index 4b21246d63cd..21f10c8d2f83 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java @@ -1,140 +1,200 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface InstanceOrBuilder extends +public interface InstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.Instance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The instance state.
    * 
* - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The instance state.
    * 
* - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.filestore.v1beta1.Instance.State getState(); /** + * + * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; + * * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** + * + * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; + * * @return The tier. */ com.google.cloud.filestore.v1beta1.Instance.Tier getTier(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -143,30 +203,31 @@ public interface InstanceOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * 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(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -175,22 +236,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); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -198,9 +261,10 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
    */
-  java.util.List 
-      getFileSharesList();
+  java.util.List getFileSharesList();
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -210,6 +274,8 @@ java.lang.String getLabelsOrThrow(
    */
   com.google.cloud.filestore.v1beta1.FileShareConfig getFileShares(int index);
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -219,6 +285,8 @@ java.lang.String getLabelsOrThrow(
    */
   int getFileSharesCount();
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -226,9 +294,11 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
    */
-  java.util.List 
+  java.util.List
       getFileSharesOrBuilderList();
   /**
+   *
+   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -236,10 +306,11 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
    */
-  com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuilder(
-      int index);
+  com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -247,9 +318,10 @@ com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuild
    *
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
-  java.util.List 
-      getNetworksList();
+  java.util.List getNetworksList();
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -259,6 +331,8 @@ com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuild
    */
   com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index);
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -268,6 +342,8 @@ com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuild
    */
   int getNetworksCount();
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -275,9 +351,11 @@ com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuild
    *
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
-  java.util.List 
+  java.util.List
       getNetworksOrBuilderList();
   /**
+   *
+   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -285,158 +363,217 @@ com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuild
    *
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
-  com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(
-      int index);
+  com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the satisfiesPzs field is set. */ boolean hasSatisfiesPzs(); /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The satisfiesPzs. */ com.google.protobuf.BoolValue getSatisfiesPzs(); /** + * + * *
    * Output only. Reserved for future use.
    * 
* - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); /** + * + * *
    * KMS key name used for data encryption.
    * 
* * string kms_key_name = 14; + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * KMS key name used for data encryption.
    * 
* * string kms_key_name = 14; + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the suspensionReasons. */ - java.util.List getSuspensionReasonsList(); + java.util.List + getSuspensionReasonsList(); /** + * + * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of suspensionReasons. */ int getSuspensionReasonsCount(); /** + * + * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The suspensionReasons at the given index. */ com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons(int index); /** + * + * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the enum numeric values on the wire for suspensionReasons. */ - java.util.List - getSuspensionReasonsValueList(); + java.util.List getSuspensionReasonsValueList(); /** + * + * *
    * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of suspensionReasons at the given index. */ int getSuspensionReasonsValue(int index); /** + * + * *
    * Output only. The max capacity of the instance.
    * 
* * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The maxCapacityGb. */ long getMaxCapacityGb(); /** + * + * *
    * Output only. The increase/decrease capacity step size.
    * 
* * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The capacityStepSizeGb. */ long getCapacityStepSizeGb(); /** + * + * *
    * Output only. The max number of shares allowed.
    * 
* * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The maxShareCount. */ long getMaxShareCount(); /** + * + * *
    * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
    * This capacity can be increased up to `max_capacity_gb` GB in multipliers
@@ -444,11 +581,14 @@ com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(
    * 
* * int64 capacity_gb = 19; + * * @return The capacityGb. */ long getCapacityGb(); /** + * + * *
    * Indicates whether this instance uses a multi-share configuration with which
    * it can have more than one file-share or none at all. File-shares are added,
@@ -456,6 +596,7 @@ com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(
    * 
* * bool multi_share_enabled = 20; + * * @return The multiShareEnabled. */ boolean getMultiShareEnabled(); diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java similarity index 70% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java index aa3c5e864482..ba515e238595 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * ListBackupsRequest lists backups.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.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,32 +46,35 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, com.google.cloud.filestore.v1beta1.ListBackupsRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, + com.google.cloud.filestore.v1beta1.ListBackupsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project and location for which to retrieve backup information,
    * in the format `projects/{project_id}/locations/{location}`.
@@ -63,7 +84,10 @@ protected java.lang.Object newInstance(
    * `{location}` value.
    * 
* - * string parent = 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 @@ -72,14 +96,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project and location for which to retrieve backup information,
    * in the format `projects/{project_id}/locations/{location}`.
@@ -89,17 +114,18 @@ public java.lang.String getParent() {
    * `{location}` value.
    * 
* - * string parent = 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 { @@ -110,11 +136,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -125,12 +154,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -139,30 +171,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * 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 { @@ -173,11 +205,14 @@ public java.lang.String getPageToken() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The orderBy. */ @java.lang.Override @@ -186,29 +221,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; } } /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @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 { @@ -219,11 +254,14 @@ public java.lang.String getOrderBy() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -232,29 +270,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; } } /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @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 { @@ -263,6 +301,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +313,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -304,8 +342,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_); @@ -324,23 +361,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.ListBackupsRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListBackupsRequest other = (com.google.cloud.filestore.v1beta1.ListBackupsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.filestore.v1beta1.ListBackupsRequest other = + (com.google.cloud.filestore.v1beta1.ListBackupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -368,129 +401,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom( - java.nio.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.filestore.v1beta1.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.filestore.v1beta1.ListBackupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.ListBackupsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.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; } /** + * + * *
    * ListBackupsRequest lists backups.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsRequest) com.google.cloud.filestore.v1beta1.ListBackupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, com.google.cloud.filestore.v1beta1.ListBackupsRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, + com.google.cloud.filestore.v1beta1.ListBackupsRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListBackupsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -508,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; } @java.lang.Override @@ -529,7 +569,8 @@ public com.google.cloud.filestore.v1beta1.ListBackupsRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListBackupsRequest buildPartial() { - com.google.cloud.filestore.v1beta1.ListBackupsRequest result = new com.google.cloud.filestore.v1beta1.ListBackupsRequest(this); + com.google.cloud.filestore.v1beta1.ListBackupsRequest result = + new com.google.cloud.filestore.v1beta1.ListBackupsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -543,38 +584,39 @@ public com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListBackupsRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListBackupsRequest) other); } else { super.mergeFrom(other); return this; @@ -582,7 +624,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListBackupsRequest other) { - if (other == com.google.cloud.filestore.v1beta1.ListBackupsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.ListBackupsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -628,37 +671,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -671,6 +720,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
@@ -680,14 +731,16 @@ public Builder mergeFrom(
      * `{location}` value.
      * 
* - * string parent = 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; @@ -696,6 +749,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
@@ -705,16 +760,17 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * string parent = 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,6 +778,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
@@ -731,21 +789,25 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * 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 project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
@@ -755,16 +817,21 @@ public Builder setParent(
      * `{location}` value.
      * 
* - * string 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 project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
@@ -774,29 +841,34 @@ public Builder clearParent() {
      * `{location}` value.
      * 
* - * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -804,30 +876,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -835,19 +913,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -856,21 +936,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 { @@ -878,57 +959,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -936,18 +1024,20 @@ public Builder setPageTokenBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; @@ -956,20 +1046,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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 { @@ -977,54 +1068,61 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; @@ -1032,18 +1130,20 @@ public Builder setOrderByBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; @@ -1052,20 +1152,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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 { @@ -1073,61 +1174,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1137,12 +1245,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListBackupsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListBackupsRequest) private static final com.google.cloud.filestore.v1beta1.ListBackupsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListBackupsRequest(); } @@ -1151,27 +1259,27 @@ public static com.google.cloud.filestore.v1beta1.ListBackupsRequest getDefaultIn 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1186,6 +1294,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListBackupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java index 74c5675cd860..95d9fa16c81f 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListBackupsRequestOrBuilder extends +public interface ListBackupsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListBackupsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and location for which to retrieve backup information,
    * in the format `projects/{project_id}/locations/{location}`.
@@ -17,11 +35,16 @@ public interface ListBackupsRequestOrBuilder extends
    * `{location}` value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project and location for which to retrieve backup information,
    * in the format `projects/{project_id}/locations/{location}`.
@@ -31,81 +54,101 @@ public interface ListBackupsRequestOrBuilder extends
    * `{location}` value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java similarity index 77% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java index adb7efe41b30..d01bcdb4d4f8 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * ListBackupsResponse is the result of ListBackupsRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.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_ = ""; @@ -27,32 +45,35 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, com.google.cloud.filestore.v1beta1.ListBackupsResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, + com.google.cloud.filestore.v1beta1.ListBackupsResponse.Builder.class); } public static final int BACKUPS_FIELD_NUMBER = 1; private java.util.List backups_; /** + * + * *
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -69,6 +90,8 @@ public java.util.List getBackupsList(
     return backups_;
   }
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -81,11 +104,13 @@ public java.util.List getBackupsList(
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getBackupsOrBuilderList() {
     return backups_;
   }
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -102,6 +127,8 @@ public int getBackupsCount() {
     return backups_.size();
   }
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -118,6 +145,8 @@ public com.google.cloud.filestore.v1beta1.Backup getBackups(int index) {
     return backups_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -130,20 +159,22 @@ public com.google.cloud.filestore.v1beta1.Backup getBackups(int index) {
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(
-      int index) {
+  public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(int index) {
     return backups_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
+   *
+   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -152,30 +183,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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 { @@ -186,34 +217,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. */ @@ -221,20 +260,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; @@ -246,8 +288,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -267,8 +308,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_); @@ -289,19 +329,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.filestore.v1beta1.ListBackupsResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListBackupsResponse other = (com.google.cloud.filestore.v1beta1.ListBackupsResponse) obj; + com.google.cloud.filestore.v1beta1.ListBackupsResponse other = + (com.google.cloud.filestore.v1beta1.ListBackupsResponse) obj; - if (!getBackupsList() - .equals(other.getBackupsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getBackupsList().equals(other.getBackupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -329,129 +367,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.ListBackupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.ListBackupsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.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; } /** + * + * *
    * ListBackupsResponse is the result of ListBackupsRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsResponse) com.google.cloud.filestore.v1beta1.ListBackupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, com.google.cloud.filestore.v1beta1.ListBackupsResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, + com.google.cloud.filestore.v1beta1.ListBackupsResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListBackupsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -470,9 +515,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; } @java.lang.Override @@ -491,7 +536,8 @@ public com.google.cloud.filestore.v1beta1.ListBackupsResponse build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListBackupsResponse buildPartial() { - com.google.cloud.filestore.v1beta1.ListBackupsResponse result = new com.google.cloud.filestore.v1beta1.ListBackupsResponse(this); + com.google.cloud.filestore.v1beta1.ListBackupsResponse result = + new com.google.cloud.filestore.v1beta1.ListBackupsResponse(this); int from_bitField0_ = bitField0_; if (backupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -516,38 +562,39 @@ public com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.ListBackupsResponse) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListBackupsResponse)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListBackupsResponse) other); } else { super.mergeFrom(other); return this; @@ -555,7 +602,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListBackupsResponse other) { - if (other == com.google.cloud.filestore.v1beta1.ListBackupsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.ListBackupsResponse.getDefaultInstance()) + return this; if (backupsBuilder_ == null) { if (!other.backups_.isEmpty()) { if (backups_.isEmpty()) { @@ -574,9 +622,10 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListBackupsResponse 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_); } @@ -622,36 +671,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.filestore.v1beta1.Backup m = - input.readMessage( - com.google.cloud.filestore.v1beta1.Backup.parser(), - extensionRegistry); - if (backupsBuilder_ == null) { - ensureBackupsIsMutable(); - backups_.add(m); - } else { - backupsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.filestore.v1beta1.Backup m = + input.readMessage( + com.google.cloud.filestore.v1beta1.Backup.parser(), extensionRegistry); + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(m); + } else { + backupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -661,21 +713,28 @@ public Builder mergeFrom( } // finally 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.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> backupsBuilder_; + com.google.cloud.filestore.v1beta1.Backup, + com.google.cloud.filestore.v1beta1.Backup.Builder, + com.google.cloud.filestore.v1beta1.BackupOrBuilder> + backupsBuilder_; /** + * + * *
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -695,6 +754,8 @@ public java.util.List getBackupsList(
       }
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -714,6 +775,8 @@ public int getBackupsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -733,6 +796,8 @@ public com.google.cloud.filestore.v1beta1.Backup getBackups(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -744,8 +809,7 @@ public com.google.cloud.filestore.v1beta1.Backup getBackups(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public Builder setBackups(
-        int index, com.google.cloud.filestore.v1beta1.Backup value) {
+    public Builder setBackups(int index, com.google.cloud.filestore.v1beta1.Backup value) {
       if (backupsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -759,6 +823,8 @@ public Builder setBackups(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -782,6 +848,8 @@ public Builder setBackups(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -807,6 +875,8 @@ public Builder addBackups(com.google.cloud.filestore.v1beta1.Backup value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -818,8 +888,7 @@ public Builder addBackups(com.google.cloud.filestore.v1beta1.Backup value) {
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public Builder addBackups(
-        int index, com.google.cloud.filestore.v1beta1.Backup value) {
+    public Builder addBackups(int index, com.google.cloud.filestore.v1beta1.Backup value) {
       if (backupsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -833,6 +902,8 @@ public Builder addBackups(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -844,8 +915,7 @@ public Builder addBackups(
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public Builder addBackups(
-        com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) {
+    public Builder addBackups(com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) {
       if (backupsBuilder_ == null) {
         ensureBackupsIsMutable();
         backups_.add(builderForValue.build());
@@ -856,6 +926,8 @@ public Builder addBackups(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -879,6 +951,8 @@ public Builder addBackups(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -894,8 +968,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);
@@ -903,6 +976,8 @@ public Builder addAllBackups(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -925,6 +1000,8 @@ public Builder clearBackups() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -947,6 +1024,8 @@ public Builder removeBackups(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -958,11 +1037,12 @@ public Builder removeBackups(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupsBuilder(
-        int index) {
+    public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupsBuilder(int index) {
       return getBackupsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -974,14 +1054,16 @@ public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupsBuilder(
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(
-        int index) {
+    public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(int index) {
       if (backupsBuilder_ == null) {
-        return backups_.get(index);  } else {
+        return backups_.get(index);
+      } else {
         return backupsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -993,8 +1075,8 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public java.util.List 
-         getBackupsOrBuilderList() {
+    public java.util.List
+        getBackupsOrBuilderList() {
       if (backupsBuilder_ != null) {
         return backupsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1002,6 +1084,8 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1014,10 +1098,12 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
     public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder() {
-      return getBackupsFieldBuilder().addBuilder(
-          com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance());
+      return getBackupsFieldBuilder()
+          .addBuilder(com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1029,12 +1115,13 @@ public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder() {
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder(
-        int index) {
-      return getBackupsFieldBuilder().addBuilder(
-          index, com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance());
+    public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder(int index) {
+      return getBackupsFieldBuilder()
+          .addBuilder(index, com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1046,20 +1133,23 @@ public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder(
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public java.util.List 
-         getBackupsBuilderList() {
+    public java.util.List
+        getBackupsBuilderList() {
       return getBackupsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> 
+            com.google.cloud.filestore.v1beta1.Backup,
+            com.google.cloud.filestore.v1beta1.Backup.Builder,
+            com.google.cloud.filestore.v1beta1.BackupOrBuilder>
         getBackupsFieldBuilder() {
       if (backupsBuilder_ == null) {
-        backupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder>(
-                backups_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        backupsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.filestore.v1beta1.Backup,
+                com.google.cloud.filestore.v1beta1.Backup.Builder,
+                com.google.cloud.filestore.v1beta1.BackupOrBuilder>(
+                backups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         backups_ = null;
       }
       return backupsBuilder_;
@@ -1067,19 +1157,21 @@ public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder(
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; @@ -1088,21 +1180,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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 { @@ -1110,98 +1203,115 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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. */ @@ -1209,80 +1319,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() { @@ -1292,28 +1412,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); } @@ -1323,12 +1445,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListBackupsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListBackupsResponse) private static final com.google.cloud.filestore.v1beta1.ListBackupsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListBackupsResponse(); } @@ -1337,27 +1459,27 @@ public static com.google.cloud.filestore.v1beta1.ListBackupsResponse getDefaultI 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1372,6 +1494,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListBackupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java similarity index 80% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java index affd6d463f13..4dee374efbbd 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListBackupsResponseOrBuilder extends +public interface ListBackupsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListBackupsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -19,9 +37,10 @@ public interface ListBackupsResponseOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
-  java.util.List 
-      getBackupsList();
+  java.util.List getBackupsList();
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -35,6 +54,8 @@ public interface ListBackupsResponseOrBuilder extends
    */
   com.google.cloud.filestore.v1beta1.Backup getBackups(int index);
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -48,6 +69,8 @@ public interface ListBackupsResponseOrBuilder extends
    */
   int getBackupsCount();
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -59,9 +82,11 @@ public interface ListBackupsResponseOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
-  java.util.List 
+  java.util.List
       getBackupsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -73,69 +98,83 @@ public interface ListBackupsResponseOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
-  com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(
-      int index);
+  com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java similarity index 70% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java index dad0a237fd41..2340d2777677 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * ListInstancesRequest lists instances.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListInstancesRequest} */ -public final class ListInstancesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListInstancesRequest) ListInstancesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,32 +46,35 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, com.google.cloud.filestore.v1beta1.ListInstancesRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, + com.google.cloud.filestore.v1beta1.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project and location for which to retrieve instance information,
    * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -62,7 +83,10 @@ protected java.lang.Object newInstance(
    * `{location}` value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -71,14 +95,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project and location for which to retrieve instance information,
    * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -87,17 +112,18 @@ public java.lang.String getParent() {
    * `{location}` value.
    * 
* - * string parent = 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 { @@ -108,11 +134,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -123,12 +152,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -137,30 +169,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * 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 { @@ -171,11 +203,14 @@ public java.lang.String getPageToken() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The orderBy. */ @java.lang.Override @@ -184,29 +219,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; } } /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @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 { @@ -217,11 +252,14 @@ public java.lang.String getOrderBy() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -230,29 +268,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; } } /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @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 { @@ -261,6 +299,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,8 +311,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -302,8 +340,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_); @@ -322,23 +359,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.filestore.v1beta1.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListInstancesRequest other = (com.google.cloud.filestore.v1beta1.ListInstancesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.filestore.v1beta1.ListInstancesRequest other = + (com.google.cloud.filestore.v1beta1.ListInstancesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -366,129 +399,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( - java.nio.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.filestore.v1beta1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListInstancesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ListInstancesRequest lists instances.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListInstancesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListInstancesRequest) com.google.cloud.filestore.v1beta1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, com.google.cloud.filestore.v1beta1.ListInstancesRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, + com.google.cloud.filestore.v1beta1.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListInstancesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -506,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -527,7 +567,8 @@ public com.google.cloud.filestore.v1beta1.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListInstancesRequest buildPartial() { - com.google.cloud.filestore.v1beta1.ListInstancesRequest result = new com.google.cloud.filestore.v1beta1.ListInstancesRequest(this); + com.google.cloud.filestore.v1beta1.ListInstancesRequest result = + new com.google.cloud.filestore.v1beta1.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -541,38 +582,39 @@ public com.google.cloud.filestore.v1beta1.ListInstancesRequest 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.filestore.v1beta1.ListInstancesRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListInstancesRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListInstancesRequest) other); } else { super.mergeFrom(other); return this; @@ -580,7 +622,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListInstancesRequest other) { - if (other == com.google.cloud.filestore.v1beta1.ListInstancesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.ListInstancesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -626,37 +669,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -669,6 +718,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -677,14 +728,16 @@ public Builder mergeFrom(
      * `{location}` value.
      * 
* - * string parent = 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; @@ -693,6 +746,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -701,16 +756,17 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * string parent = 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 { @@ -718,6 +774,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -726,21 +784,25 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * 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 project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -749,16 +811,21 @@ public Builder setParent(
      * `{location}` value.
      * 
* - * string 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 project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -767,29 +834,34 @@ public Builder clearParent() {
      * `{location}` value.
      * 
* - * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -797,30 +869,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -828,19 +906,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -849,21 +929,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 { @@ -871,57 +952,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -929,18 +1017,20 @@ public Builder setPageTokenBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; @@ -949,20 +1039,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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 { @@ -970,54 +1061,61 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; @@ -1025,18 +1123,20 @@ public Builder setOrderByBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; @@ -1045,20 +1145,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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 { @@ -1066,61 +1167,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1130,12 +1238,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListInstancesRequest) private static final com.google.cloud.filestore.v1beta1.ListInstancesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListInstancesRequest(); } @@ -1144,27 +1252,27 @@ public static com.google.cloud.filestore.v1beta1.ListInstancesRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1179,6 +1287,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java index 6e6567c49c2a..648d4ecc7726 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListInstancesRequestOrBuilder extends +public interface ListInstancesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and location for which to retrieve instance information,
    * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -16,11 +34,16 @@ public interface ListInstancesRequestOrBuilder extends
    * `{location}` value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project and location for which to retrieve instance information,
    * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -29,81 +52,101 @@ public interface ListInstancesRequestOrBuilder extends
    * `{location}` value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java similarity index 77% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java index a723180f1a77..aa5d74c78ad1 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * ListInstancesResponse is the result of ListInstancesRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListInstancesResponse} */ -public final class ListInstancesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListInstancesResponse) ListInstancesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, com.google.cloud.filestore.v1beta1.ListInstancesResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, + com.google.cloud.filestore.v1beta1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** + * + * *
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -68,6 +89,8 @@ public java.util.List getInstancesL
     return instances_;
   }
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -79,11 +102,13 @@ public java.util.List getInstancesL
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getInstancesOrBuilderList() {
     return instances_;
   }
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -99,6 +124,8 @@ public int getInstancesCount() {
     return instances_.size();
   }
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -114,6 +141,8 @@ public com.google.cloud.filestore.v1beta1.Instance getInstances(int index) {
     return instances_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -125,20 +154,22 @@ public com.google.cloud.filestore.v1beta1.Instance getInstances(int index) {
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
-      int index) {
+  public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index) {
     return instances_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
+   *
+   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -147,30 +178,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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 { @@ -181,34 +212,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. */ @@ -216,20 +255,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; @@ -241,8 +283,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -262,8 +303,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -284,19 +324,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.filestore.v1beta1.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListInstancesResponse other = (com.google.cloud.filestore.v1beta1.ListInstancesResponse) obj; + com.google.cloud.filestore.v1beta1.ListInstancesResponse other = + (com.google.cloud.filestore.v1beta1.ListInstancesResponse) obj; - if (!getInstancesList() - .equals(other.getInstancesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getInstancesList().equals(other.getInstancesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,129 +362,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( - java.nio.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.filestore.v1beta1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListInstancesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ListInstancesResponse is the result of ListInstancesRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListInstancesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListInstancesResponse) com.google.cloud.filestore.v1beta1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, com.google.cloud.filestore.v1beta1.ListInstancesResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, + com.google.cloud.filestore.v1beta1.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListInstancesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -465,9 +510,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -486,7 +531,8 @@ public com.google.cloud.filestore.v1beta1.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListInstancesResponse buildPartial() { - com.google.cloud.filestore.v1beta1.ListInstancesResponse result = new com.google.cloud.filestore.v1beta1.ListInstancesResponse(this); + com.google.cloud.filestore.v1beta1.ListInstancesResponse result = + new com.google.cloud.filestore.v1beta1.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -511,38 +557,39 @@ public com.google.cloud.filestore.v1beta1.ListInstancesResponse 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.filestore.v1beta1.ListInstancesResponse) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListInstancesResponse)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListInstancesResponse) other); } else { super.mergeFrom(other); return this; @@ -550,7 +597,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListInstancesResponse other) { - if (other == com.google.cloud.filestore.v1beta1.ListInstancesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.ListInstancesResponse.getDefaultInstance()) + return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -569,9 +617,10 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListInstancesRespons instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInstancesFieldBuilder() : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -617,36 +666,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.filestore.v1beta1.Instance m = - input.readMessage( - com.google.cloud.filestore.v1beta1.Instance.parser(), - extensionRegistry); - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.add(m); - } else { - instancesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.filestore.v1beta1.Instance m = + input.readMessage( + com.google.cloud.filestore.v1beta1.Instance.parser(), extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -656,21 +708,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - instances_ = new java.util.ArrayList(instances_); + instances_ = + new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> instancesBuilder_; + com.google.cloud.filestore.v1beta1.Instance, + com.google.cloud.filestore.v1beta1.Instance.Builder, + com.google.cloud.filestore.v1beta1.InstanceOrBuilder> + instancesBuilder_; /** + * + * *
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -689,6 +749,8 @@ public java.util.List getInstancesL
       }
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -707,6 +769,8 @@ public int getInstancesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -725,6 +789,8 @@ public com.google.cloud.filestore.v1beta1.Instance getInstances(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -735,8 +801,7 @@ public com.google.cloud.filestore.v1beta1.Instance getInstances(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public Builder setInstances(
-        int index, com.google.cloud.filestore.v1beta1.Instance value) {
+    public Builder setInstances(int index, com.google.cloud.filestore.v1beta1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -750,6 +815,8 @@ public Builder setInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -772,6 +839,8 @@ public Builder setInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -796,6 +865,8 @@ public Builder addInstances(com.google.cloud.filestore.v1beta1.Instance value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -806,8 +877,7 @@ public Builder addInstances(com.google.cloud.filestore.v1beta1.Instance value) {
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public Builder addInstances(
-        int index, com.google.cloud.filestore.v1beta1.Instance value) {
+    public Builder addInstances(int index, com.google.cloud.filestore.v1beta1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -821,6 +891,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -843,6 +915,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -865,6 +939,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -879,8 +955,7 @@ public Builder addAllInstances(
         java.lang.Iterable values) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, instances_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_);
         onChanged();
       } else {
         instancesBuilder_.addAllMessages(values);
@@ -888,6 +963,8 @@ public Builder addAllInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -909,6 +986,8 @@ public Builder clearInstances() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -930,6 +1009,8 @@ public Builder removeInstances(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -940,11 +1021,12 @@ public Builder removeInstances(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1beta1.Instance.Builder getInstancesBuilder(
-        int index) {
+    public com.google.cloud.filestore.v1beta1.Instance.Builder getInstancesBuilder(int index) {
       return getInstancesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -955,14 +1037,16 @@ public com.google.cloud.filestore.v1beta1.Instance.Builder getInstancesBuilder(
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
-        int index) {
+    public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index) {
       if (instancesBuilder_ == null) {
-        return instances_.get(index);  } else {
+        return instances_.get(index);
+      } else {
         return instancesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -973,8 +1057,8 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilde
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public java.util.List 
-         getInstancesOrBuilderList() {
+    public java.util.List
+        getInstancesOrBuilderList() {
       if (instancesBuilder_ != null) {
         return instancesBuilder_.getMessageOrBuilderList();
       } else {
@@ -982,6 +1066,8 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -993,10 +1079,12 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilde
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
     public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder() {
-      return getInstancesFieldBuilder().addBuilder(
-          com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance());
+      return getInstancesFieldBuilder()
+          .addBuilder(com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1007,12 +1095,13 @@ public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder()
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder(
-        int index) {
-      return getInstancesFieldBuilder().addBuilder(
-          index, com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance());
+    public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder(int index) {
+      return getInstancesFieldBuilder()
+          .addBuilder(index, com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1023,20 +1112,23 @@ public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder(
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public java.util.List 
-         getInstancesBuilderList() {
+    public java.util.List
+        getInstancesBuilderList() {
       return getInstancesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> 
+            com.google.cloud.filestore.v1beta1.Instance,
+            com.google.cloud.filestore.v1beta1.Instance.Builder,
+            com.google.cloud.filestore.v1beta1.InstanceOrBuilder>
         getInstancesFieldBuilder() {
       if (instancesBuilder_ == null) {
-        instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder>(
-                instances_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        instancesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.filestore.v1beta1.Instance,
+                com.google.cloud.filestore.v1beta1.Instance.Builder,
+                com.google.cloud.filestore.v1beta1.InstanceOrBuilder>(
+                instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         instances_ = null;
       }
       return instancesBuilder_;
@@ -1044,19 +1136,21 @@ public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder(
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; @@ -1065,21 +1159,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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 { @@ -1087,98 +1182,115 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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. */ @@ -1186,80 +1298,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() { @@ -1269,28 +1391,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); } @@ -1300,12 +1424,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListInstancesResponse) private static final com.google.cloud.filestore.v1beta1.ListInstancesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListInstancesResponse(); } @@ -1314,27 +1438,27 @@ public static com.google.cloud.filestore.v1beta1.ListInstancesResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1349,6 +1473,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java similarity index 80% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java index 40cd0d466af8..0d245132d892 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListInstancesResponseOrBuilder extends +public interface ListInstancesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -18,9 +36,10 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
-  java.util.List 
-      getInstancesList();
+  java.util.List getInstancesList();
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -33,6 +52,8 @@ public interface ListInstancesResponseOrBuilder extends
    */
   com.google.cloud.filestore.v1beta1.Instance getInstances(int index);
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -45,6 +66,8 @@ public interface ListInstancesResponseOrBuilder extends
    */
   int getInstancesCount();
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -55,9 +78,11 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
-  java.util.List 
+  java.util.List
       getInstancesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -68,69 +93,83 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
-  com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
-      int index);
+  com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java similarity index 69% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java index 4ba08ff8f544..0d521aa473bf 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * ListSharesRequest lists shares.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSharesRequest} */ -public final class ListSharesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSharesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListSharesRequest) ListSharesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSharesRequest.newBuilder() to construct. private ListSharesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSharesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,39 +46,45 @@ private ListSharesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSharesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSharesRequest.class, com.google.cloud.filestore.v1beta1.ListSharesRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListSharesRequest.class, + com.google.cloud.filestore.v1beta1.ListSharesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The instance for which to retrieve share information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -69,31 +93,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The instance for which to retrieve share information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -104,11 +130,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -119,12 +148,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -133,30 +165,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -167,11 +199,14 @@ public java.lang.String getPageToken() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The orderBy. */ @java.lang.Override @@ -180,29 +215,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; } } /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @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 { @@ -213,11 +248,14 @@ public java.lang.String getOrderBy() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -226,29 +264,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; } } /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @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 { @@ -257,6 +295,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,8 +307,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -298,8 +336,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_); @@ -318,23 +355,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.filestore.v1beta1.ListSharesRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListSharesRequest other = (com.google.cloud.filestore.v1beta1.ListSharesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.filestore.v1beta1.ListSharesRequest other = + (com.google.cloud.filestore.v1beta1.ListSharesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -362,129 +395,135 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( - java.nio.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.filestore.v1beta1.ListSharesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.ListSharesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListSharesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ListSharesRequest lists shares.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSharesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListSharesRequest) com.google.cloud.filestore.v1beta1.ListSharesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSharesRequest.class, com.google.cloud.filestore.v1beta1.ListSharesRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListSharesRequest.class, + com.google.cloud.filestore.v1beta1.ListSharesRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListSharesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -502,9 +541,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; } @java.lang.Override @@ -523,7 +562,8 @@ public com.google.cloud.filestore.v1beta1.ListSharesRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListSharesRequest buildPartial() { - com.google.cloud.filestore.v1beta1.ListSharesRequest result = new com.google.cloud.filestore.v1beta1.ListSharesRequest(this); + com.google.cloud.filestore.v1beta1.ListSharesRequest result = + new com.google.cloud.filestore.v1beta1.ListSharesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -537,38 +577,39 @@ public com.google.cloud.filestore.v1beta1.ListSharesRequest 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.filestore.v1beta1.ListSharesRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListSharesRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListSharesRequest) other); } else { super.mergeFrom(other); return this; @@ -576,7 +617,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSharesRequest other) { - if (other == com.google.cloud.filestore.v1beta1.ListSharesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.ListSharesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -622,37 +664,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -665,20 +713,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The instance for which to retrieve share information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -687,22 +739,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The instance for which to retrieve share information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -710,72 +765,88 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The instance for which to retrieve share information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The instance for which to retrieve share information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The instance for which to retrieve share information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + 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 maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -783,30 +854,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -814,19 +891,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -835,21 +914,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 { @@ -857,57 +937,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -915,18 +1002,20 @@ public Builder setPageTokenBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; @@ -935,20 +1024,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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 { @@ -956,54 +1046,61 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; @@ -1011,18 +1108,20 @@ public Builder setOrderByBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; @@ -1031,20 +1130,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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 { @@ -1052,61 +1152,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1116,12 +1223,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListSharesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListSharesRequest) private static final com.google.cloud.filestore.v1beta1.ListSharesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListSharesRequest(); } @@ -1130,27 +1237,27 @@ public static com.google.cloud.filestore.v1beta1.ListSharesRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSharesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSharesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1165,6 +1272,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListSharesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java index 0cc9956e9f5a..4e596590c46b 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java @@ -1,105 +1,148 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListSharesRequestOrBuilder extends +public interface ListSharesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListSharesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The instance for which to retrieve share information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The instance for which to retrieve share information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java similarity index 73% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java index 846d1d9a5f5f..bfea69284a61 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * ListSharesResponse is the result of ListSharesRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSharesResponse} */ -public final class ListSharesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSharesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListSharesResponse) ListSharesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSharesResponse.newBuilder() to construct. private ListSharesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSharesResponse() { shares_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListSharesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSharesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSharesResponse.class, com.google.cloud.filestore.v1beta1.ListSharesResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListSharesResponse.class, + com.google.cloud.filestore.v1beta1.ListSharesResponse.Builder.class); } public static final int SHARES_FIELD_NUMBER = 1; private java.util.List shares_; /** + * + * *
    * A list of shares in the project for the specified instance.
    * 
@@ -64,6 +85,8 @@ public java.util.List getSharesList() return shares_; } /** + * + * *
    * A list of shares in the project for the specified instance.
    * 
@@ -71,11 +94,13 @@ public java.util.List getSharesList() * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSharesOrBuilderList() { return shares_; } /** + * + * *
    * A list of shares in the project for the specified instance.
    * 
@@ -87,6 +112,8 @@ public int getSharesCount() { return shares_.size(); } /** + * + * *
    * A list of shares in the project for the specified instance.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.filestore.v1beta1.Share getShares(int index) { return shares_.get(index); } /** + * + * *
    * A list of shares in the project for the specified instance.
    * 
@@ -105,20 +134,22 @@ public com.google.cloud.filestore.v1beta1.Share getShares(int index) { * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ @java.lang.Override - public com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder( - int index) { + public com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder(int index) { return shares_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,30 +158,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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 { @@ -161,34 +192,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. */ @@ -196,20 +235,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; @@ -221,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < shares_.size(); i++) { output.writeMessage(1, shares_.get(i)); } @@ -242,8 +283,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < shares_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, shares_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, shares_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -264,19 +304,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.filestore.v1beta1.ListSharesResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListSharesResponse other = (com.google.cloud.filestore.v1beta1.ListSharesResponse) obj; + com.google.cloud.filestore.v1beta1.ListSharesResponse other = + (com.google.cloud.filestore.v1beta1.ListSharesResponse) obj; - if (!getSharesList() - .equals(other.getSharesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getSharesList().equals(other.getSharesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,129 +342,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( - java.nio.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.filestore.v1beta1.ListSharesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.ListSharesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListSharesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.ListSharesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ListSharesResponse is the result of ListSharesRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSharesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListSharesResponse) com.google.cloud.filestore.v1beta1.ListSharesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSharesResponse.class, com.google.cloud.filestore.v1beta1.ListSharesResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListSharesResponse.class, + com.google.cloud.filestore.v1beta1.ListSharesResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListSharesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; } @java.lang.Override @@ -466,7 +511,8 @@ public com.google.cloud.filestore.v1beta1.ListSharesResponse build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListSharesResponse buildPartial() { - com.google.cloud.filestore.v1beta1.ListSharesResponse result = new com.google.cloud.filestore.v1beta1.ListSharesResponse(this); + com.google.cloud.filestore.v1beta1.ListSharesResponse result = + new com.google.cloud.filestore.v1beta1.ListSharesResponse(this); int from_bitField0_ = bitField0_; if (sharesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -491,38 +537,39 @@ public com.google.cloud.filestore.v1beta1.ListSharesResponse 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.filestore.v1beta1.ListSharesResponse) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListSharesResponse)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListSharesResponse) other); } else { super.mergeFrom(other); return this; @@ -530,7 +577,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSharesResponse other) { - if (other == com.google.cloud.filestore.v1beta1.ListSharesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.ListSharesResponse.getDefaultInstance()) + return this; if (sharesBuilder_ == null) { if (!other.shares_.isEmpty()) { if (shares_.isEmpty()) { @@ -549,9 +597,10 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSharesResponse o sharesBuilder_ = null; shares_ = other.shares_; bitField0_ = (bitField0_ & ~0x00000001); - sharesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSharesFieldBuilder() : null; + sharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSharesFieldBuilder() + : null; } else { sharesBuilder_.addAllMessages(other.shares_); } @@ -597,36 +646,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.filestore.v1beta1.Share m = - input.readMessage( - com.google.cloud.filestore.v1beta1.Share.parser(), - extensionRegistry); - if (sharesBuilder_ == null) { - ensureSharesIsMutable(); - shares_.add(m); - } else { - sharesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.filestore.v1beta1.Share m = + input.readMessage( + com.google.cloud.filestore.v1beta1.Share.parser(), extensionRegistry); + if (sharesBuilder_ == null) { + ensureSharesIsMutable(); + shares_.add(m); + } else { + sharesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -636,21 +688,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List shares_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSharesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { shares_ = new java.util.ArrayList(shares_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> sharesBuilder_; + com.google.cloud.filestore.v1beta1.Share, + com.google.cloud.filestore.v1beta1.Share.Builder, + com.google.cloud.filestore.v1beta1.ShareOrBuilder> + sharesBuilder_; /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
@@ -665,6 +724,8 @@ public java.util.List getSharesList() } } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
@@ -679,6 +740,8 @@ public int getSharesCount() { } } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
@@ -693,14 +756,15 @@ public com.google.cloud.filestore.v1beta1.Share getShares(int index) { } } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public Builder setShares( - int index, com.google.cloud.filestore.v1beta1.Share value) { + public Builder setShares(int index, com.google.cloud.filestore.v1beta1.Share value) { if (sharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -714,6 +778,8 @@ public Builder setShares( return this; } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
@@ -732,6 +798,8 @@ public Builder setShares( return this; } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
@@ -752,14 +820,15 @@ public Builder addShares(com.google.cloud.filestore.v1beta1.Share value) { return this; } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public Builder addShares( - int index, com.google.cloud.filestore.v1beta1.Share value) { + public Builder addShares(int index, com.google.cloud.filestore.v1beta1.Share value) { if (sharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -773,14 +842,15 @@ public Builder addShares( return this; } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public Builder addShares( - com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { + public Builder addShares(com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { if (sharesBuilder_ == null) { ensureSharesIsMutable(); shares_.add(builderForValue.build()); @@ -791,6 +861,8 @@ public Builder addShares( return this; } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
@@ -809,6 +881,8 @@ public Builder addShares( return this; } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
@@ -819,8 +893,7 @@ public Builder addAllShares( java.lang.Iterable values) { if (sharesBuilder_ == null) { ensureSharesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, shares_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shares_); onChanged(); } else { sharesBuilder_.addAllMessages(values); @@ -828,6 +901,8 @@ public Builder addAllShares( return this; } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
@@ -845,6 +920,8 @@ public Builder clearShares() { return this; } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
@@ -862,39 +939,44 @@ public Builder removeShares(int index) { return this; } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public com.google.cloud.filestore.v1beta1.Share.Builder getSharesBuilder( - int index) { + public com.google.cloud.filestore.v1beta1.Share.Builder getSharesBuilder(int index) { return getSharesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder( - int index) { + public com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder(int index) { if (sharesBuilder_ == null) { - return shares_.get(index); } else { + return shares_.get(index); + } else { return sharesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public java.util.List - getSharesOrBuilderList() { + public java.util.List + getSharesOrBuilderList() { if (sharesBuilder_ != null) { return sharesBuilder_.getMessageOrBuilderList(); } else { @@ -902,6 +984,8 @@ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder( } } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
@@ -909,42 +993,47 @@ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder( * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ public com.google.cloud.filestore.v1beta1.Share.Builder addSharesBuilder() { - return getSharesFieldBuilder().addBuilder( - com.google.cloud.filestore.v1beta1.Share.getDefaultInstance()); + return getSharesFieldBuilder() + .addBuilder(com.google.cloud.filestore.v1beta1.Share.getDefaultInstance()); } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public com.google.cloud.filestore.v1beta1.Share.Builder addSharesBuilder( - int index) { - return getSharesFieldBuilder().addBuilder( - index, com.google.cloud.filestore.v1beta1.Share.getDefaultInstance()); + public com.google.cloud.filestore.v1beta1.Share.Builder addSharesBuilder(int index) { + return getSharesFieldBuilder() + .addBuilder(index, com.google.cloud.filestore.v1beta1.Share.getDefaultInstance()); } /** + * + * *
      * A list of shares in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - public java.util.List - getSharesBuilderList() { + public java.util.List getSharesBuilderList() { return getSharesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> + com.google.cloud.filestore.v1beta1.Share, + com.google.cloud.filestore.v1beta1.Share.Builder, + com.google.cloud.filestore.v1beta1.ShareOrBuilder> getSharesFieldBuilder() { if (sharesBuilder_ == null) { - sharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder>( - shares_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + sharesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, + com.google.cloud.filestore.v1beta1.Share.Builder, + com.google.cloud.filestore.v1beta1.ShareOrBuilder>( + shares_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); shares_ = null; } return sharesBuilder_; @@ -952,19 +1041,21 @@ public com.google.cloud.filestore.v1beta1.Share.Builder addSharesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -973,21 +1064,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -995,98 +1087,115 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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. */ @@ -1094,80 +1203,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() { @@ -1177,28 +1296,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); } @@ -1208,12 +1329,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListSharesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListSharesResponse) private static final com.google.cloud.filestore.v1beta1.ListSharesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListSharesResponse(); } @@ -1222,27 +1343,27 @@ public static com.google.cloud.filestore.v1beta1.ListSharesResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSharesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSharesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1257,6 +1378,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListSharesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java index f459e4466939..fe07abad95f3 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListSharesResponseOrBuilder extends +public interface ListSharesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListSharesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of shares in the project for the specified instance.
    * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - java.util.List - getSharesList(); + java.util.List getSharesList(); /** + * + * *
    * A list of shares in the project for the specified instance.
    * 
@@ -25,6 +44,8 @@ public interface ListSharesResponseOrBuilder extends */ com.google.cloud.filestore.v1beta1.Share getShares(int index); /** + * + * *
    * A list of shares in the project for the specified instance.
    * 
@@ -33,84 +54,102 @@ public interface ListSharesResponseOrBuilder extends */ int getSharesCount(); /** + * + * *
    * A list of shares in the project for the specified instance.
    * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - java.util.List + java.util.List getSharesOrBuilderList(); /** + * + * *
    * A list of shares in the project for the specified instance.
    * 
* * repeated .google.cloud.filestore.v1beta1.Share shares = 1; */ - com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder( - int index); + com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder(int index); /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java similarity index 69% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java index 2b50752b737f..24db3c1a663a 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * ListSnapshotsRequest lists snapshots.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSnapshotsRequest} */ -public final class ListSnapshotsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSnapshotsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListSnapshotsRequest) ListSnapshotsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSnapshotsRequest.newBuilder() to construct. private ListSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSnapshotsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,39 +46,45 @@ private ListSnapshotsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSnapshotsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The instance for which to retrieve snapshot information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -69,31 +93,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The instance for which to retrieve snapshot information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -104,11 +130,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -119,12 +148,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -133,30 +165,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -167,11 +199,14 @@ public java.lang.String getPageToken() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The orderBy. */ @java.lang.Override @@ -180,29 +215,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; } } /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @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 { @@ -213,11 +248,14 @@ public java.lang.String getOrderBy() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -226,29 +264,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; } } /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @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 { @@ -257,6 +295,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,8 +307,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -298,8 +336,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_); @@ -318,23 +355,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.filestore.v1beta1.ListSnapshotsRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest other = (com.google.cloud.filestore.v1beta1.ListSnapshotsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest other = + (com.google.cloud.filestore.v1beta1.ListSnapshotsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -362,129 +395,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( - java.nio.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.filestore.v1beta1.ListSnapshotsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.ListSnapshotsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ListSnapshotsRequest lists snapshots.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSnapshotsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListSnapshotsRequest) com.google.cloud.filestore.v1beta1.ListSnapshotsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -502,9 +542,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; } @java.lang.Override @@ -523,7 +563,8 @@ public com.google.cloud.filestore.v1beta1.ListSnapshotsRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListSnapshotsRequest buildPartial() { - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest result = new com.google.cloud.filestore.v1beta1.ListSnapshotsRequest(this); + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest result = + new com.google.cloud.filestore.v1beta1.ListSnapshotsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -537,38 +578,39 @@ public com.google.cloud.filestore.v1beta1.ListSnapshotsRequest 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.filestore.v1beta1.ListSnapshotsRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListSnapshotsRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListSnapshotsRequest) other); } else { super.mergeFrom(other); return this; @@ -576,7 +618,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest other) { - if (other == com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -622,37 +665,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -665,20 +714,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The instance for which to retrieve snapshot information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -687,22 +740,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The instance for which to retrieve snapshot information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -710,72 +766,88 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The instance for which to retrieve snapshot information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The instance for which to retrieve snapshot information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The instance for which to retrieve snapshot information,
      * in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + 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 maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -783,30 +855,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return.
      * 
* * 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 maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -814,19 +892,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -835,21 +915,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 { @@ -857,57 +938,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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 next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * 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; @@ -915,18 +1003,20 @@ public Builder setPageTokenBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; @@ -935,20 +1025,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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 { @@ -956,54 +1047,61 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; + * * @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; @@ -1011,18 +1109,20 @@ public Builder setOrderByBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; @@ -1031,20 +1131,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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 { @@ -1052,61 +1153,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 5; + * * @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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1116,12 +1224,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListSnapshotsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListSnapshotsRequest) private static final com.google.cloud.filestore.v1beta1.ListSnapshotsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListSnapshotsRequest(); } @@ -1130,27 +1238,27 @@ public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSnapshotsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSnapshotsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1165,6 +1273,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java index 870bb448da11..cbbec8ba3a1b 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java @@ -1,105 +1,148 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListSnapshotsRequestOrBuilder extends +public interface ListSnapshotsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListSnapshotsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The instance for which to retrieve snapshot information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The instance for which to retrieve snapshot information,
    * in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java similarity index 73% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java index ccc374a716cc..983affd8dee3 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * ListSnapshotsResponse is the result of ListSnapshotsRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSnapshotsResponse} */ -public final class ListSnapshotsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSnapshotsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListSnapshotsResponse) ListSnapshotsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSnapshotsResponse.newBuilder() to construct. private ListSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSnapshotsResponse() { snapshots_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,32 +44,35 @@ private ListSnapshotsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSnapshotsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.Builder.class); } public static final int SNAPSHOTS_FIELD_NUMBER = 1; private java.util.List snapshots_; /** + * + * *
    * A list of snapshots in the project for the specified instance.
    * 
@@ -63,6 +84,8 @@ public java.util.List getSnapshotsL return snapshots_; } /** + * + * *
    * A list of snapshots in the project for the specified instance.
    * 
@@ -70,11 +93,13 @@ public java.util.List getSnapshotsL * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSnapshotsOrBuilderList() { return snapshots_; } /** + * + * *
    * A list of snapshots in the project for the specified instance.
    * 
@@ -86,6 +111,8 @@ public int getSnapshotsCount() { return snapshots_.size(); } /** + * + * *
    * A list of snapshots in the project for the specified instance.
    * 
@@ -97,6 +124,8 @@ public com.google.cloud.filestore.v1beta1.Snapshot getSnapshots(int index) { return snapshots_.get(index); } /** + * + * *
    * A list of snapshots in the project for the specified instance.
    * 
@@ -104,20 +133,22 @@ public com.google.cloud.filestore.v1beta1.Snapshot getSnapshots(int index) { * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ @java.lang.Override - public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder( - int index) { + public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { return snapshots_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,30 +157,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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 { @@ -158,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < snapshots_.size(); i++) { output.writeMessage(1, snapshots_.get(i)); } @@ -187,8 +218,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < snapshots_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, snapshots_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snapshots_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.ListSnapshotsResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse other = (com.google.cloud.filestore.v1beta1.ListSnapshotsResponse) obj; + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse other = + (com.google.cloud.filestore.v1beta1.ListSnapshotsResponse) obj; - if (!getSnapshotsList() - .equals(other.getSnapshotsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSnapshotsList().equals(other.getSnapshotsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,129 +264,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( - java.nio.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.filestore.v1beta1.ListSnapshotsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.ListSnapshotsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListSnapshotsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ListSnapshotsResponse is the result of ListSnapshotsRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListSnapshotsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListSnapshotsResponse) com.google.cloud.filestore.v1beta1.ListSnapshotsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; } @java.lang.Override @@ -395,7 +431,8 @@ public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse buildPartial() { - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse result = new com.google.cloud.filestore.v1beta1.ListSnapshotsResponse(this); + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse result = + new com.google.cloud.filestore.v1beta1.ListSnapshotsResponse(this); int from_bitField0_ = bitField0_; if (snapshotsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +452,39 @@ public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse 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.filestore.v1beta1.ListSnapshotsResponse) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListSnapshotsResponse)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListSnapshotsResponse) other); } else { super.mergeFrom(other); return this; @@ -454,7 +492,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSnapshotsResponse other) { - if (other == com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.getDefaultInstance()) + return this; if (snapshotsBuilder_ == null) { if (!other.snapshots_.isEmpty()) { if (snapshots_.isEmpty()) { @@ -473,9 +512,10 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSnapshotsRespons snapshotsBuilder_ = null; snapshots_ = other.snapshots_; bitField0_ = (bitField0_ & ~0x00000001); - snapshotsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSnapshotsFieldBuilder() : null; + snapshotsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSnapshotsFieldBuilder() + : null; } else { snapshotsBuilder_.addAllMessages(other.snapshots_); } @@ -511,30 +551,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.filestore.v1beta1.Snapshot m = - input.readMessage( - com.google.cloud.filestore.v1beta1.Snapshot.parser(), - extensionRegistry); - if (snapshotsBuilder_ == null) { - ensureSnapshotsIsMutable(); - snapshots_.add(m); - } else { - snapshotsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.filestore.v1beta1.Snapshot m = + input.readMessage( + com.google.cloud.filestore.v1beta1.Snapshot.parser(), extensionRegistry); + if (snapshotsBuilder_ == null) { + ensureSnapshotsIsMutable(); + snapshots_.add(m); + } else { + snapshotsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,21 +586,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List snapshots_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSnapshotsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - snapshots_ = new java.util.ArrayList(snapshots_); + snapshots_ = + new java.util.ArrayList(snapshots_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> snapshotsBuilder_; + com.google.cloud.filestore.v1beta1.Snapshot, + com.google.cloud.filestore.v1beta1.Snapshot.Builder, + com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> + snapshotsBuilder_; /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -573,6 +623,8 @@ public java.util.List getSnapshotsL } } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -587,6 +639,8 @@ public int getSnapshotsCount() { } } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -601,14 +655,15 @@ public com.google.cloud.filestore.v1beta1.Snapshot getSnapshots(int index) { } } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - public Builder setSnapshots( - int index, com.google.cloud.filestore.v1beta1.Snapshot value) { + public Builder setSnapshots(int index, com.google.cloud.filestore.v1beta1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -622,6 +677,8 @@ public Builder setSnapshots( return this; } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -640,6 +697,8 @@ public Builder setSnapshots( return this; } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -660,14 +719,15 @@ public Builder addSnapshots(com.google.cloud.filestore.v1beta1.Snapshot value) { return this; } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - public Builder addSnapshots( - int index, com.google.cloud.filestore.v1beta1.Snapshot value) { + public Builder addSnapshots(int index, com.google.cloud.filestore.v1beta1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -681,6 +741,8 @@ public Builder addSnapshots( return this; } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -699,6 +761,8 @@ public Builder addSnapshots( return this; } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -717,6 +781,8 @@ public Builder addSnapshots( return this; } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -727,8 +793,7 @@ public Builder addAllSnapshots( java.lang.Iterable values) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, snapshots_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snapshots_); onChanged(); } else { snapshotsBuilder_.addAllMessages(values); @@ -736,6 +801,8 @@ public Builder addAllSnapshots( return this; } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -753,6 +820,8 @@ public Builder clearSnapshots() { return this; } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -770,39 +839,44 @@ public Builder removeSnapshots(int index) { return this; } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - public com.google.cloud.filestore.v1beta1.Snapshot.Builder getSnapshotsBuilder( - int index) { + public com.google.cloud.filestore.v1beta1.Snapshot.Builder getSnapshotsBuilder(int index) { return getSnapshotsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder( - int index) { + public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { if (snapshotsBuilder_ == null) { - return snapshots_.get(index); } else { + return snapshots_.get(index); + } else { return snapshotsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - public java.util.List - getSnapshotsOrBuilderList() { + public java.util.List + getSnapshotsOrBuilderList() { if (snapshotsBuilder_ != null) { return snapshotsBuilder_.getMessageOrBuilderList(); } else { @@ -810,6 +884,8 @@ public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilde } } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
@@ -817,42 +893,48 @@ public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilde * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ public com.google.cloud.filestore.v1beta1.Snapshot.Builder addSnapshotsBuilder() { - return getSnapshotsFieldBuilder().addBuilder( - com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance()); + return getSnapshotsFieldBuilder() + .addBuilder(com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance()); } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - public com.google.cloud.filestore.v1beta1.Snapshot.Builder addSnapshotsBuilder( - int index) { - return getSnapshotsFieldBuilder().addBuilder( - index, com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance()); + public com.google.cloud.filestore.v1beta1.Snapshot.Builder addSnapshotsBuilder(int index) { + return getSnapshotsFieldBuilder() + .addBuilder(index, com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance()); } /** + * + * *
      * A list of snapshots in the project for the specified instance.
      * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - public java.util.List - getSnapshotsBuilderList() { + public java.util.List + getSnapshotsBuilderList() { return getSnapshotsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> + com.google.cloud.filestore.v1beta1.Snapshot, + com.google.cloud.filestore.v1beta1.Snapshot.Builder, + com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> getSnapshotsFieldBuilder() { if (snapshotsBuilder_ == null) { - snapshotsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( - snapshots_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + snapshotsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, + com.google.cloud.filestore.v1beta1.Snapshot.Builder, + com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( + snapshots_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); snapshots_ = null; } return snapshotsBuilder_; @@ -860,19 +942,21 @@ public com.google.cloud.filestore.v1beta1.Snapshot.Builder addSnapshotsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; @@ -881,21 +965,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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 { @@ -903,64 +988,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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; } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * 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); } @@ -970,12 +1062,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListSnapshotsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListSnapshotsResponse) private static final com.google.cloud.filestore.v1beta1.ListSnapshotsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListSnapshotsResponse(); } @@ -984,27 +1076,27 @@ public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSnapshotsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSnapshotsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,6 +1111,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java index db2f8f67e48c..fd0791ac8e51 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListSnapshotsResponseOrBuilder extends +public interface ListSnapshotsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListSnapshotsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of snapshots in the project for the specified instance.
    * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - java.util.List - getSnapshotsList(); + java.util.List getSnapshotsList(); /** + * + * *
    * A list of snapshots in the project for the specified instance.
    * 
@@ -25,6 +44,8 @@ public interface ListSnapshotsResponseOrBuilder extends */ com.google.cloud.filestore.v1beta1.Snapshot getSnapshots(int index); /** + * + * *
    * A list of snapshots in the project for the specified instance.
    * 
@@ -33,43 +54,51 @@ public interface ListSnapshotsResponseOrBuilder extends */ int getSnapshotsCount(); /** + * + * *
    * A list of snapshots in the project for the specified instance.
    * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - java.util.List + java.util.List getSnapshotsOrBuilderList(); /** + * + * *
    * A list of snapshots in the project for the specified instance.
    * 
* * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; */ - com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder( - int index); + com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder(int index); /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java similarity index 78% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java index a18f34a9c251..7b03697de6da 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * Network configuration for the instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.NetworkConfig} */ -public final class NetworkConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.NetworkConfig) NetworkConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkConfig.newBuilder() to construct. private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NetworkConfig() { network_ = ""; modes_ = java.util.Collections.emptyList(); @@ -29,39 +47,43 @@ private NetworkConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetworkConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.NetworkConfig.class, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder.class); + com.google.cloud.filestore.v1beta1.NetworkConfig.class, + com.google.cloud.filestore.v1beta1.NetworkConfig.Builder.class); } /** + * + * *
    * Internet protocol versions supported by Filestore.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.NetworkConfig.AddressMode} */ - public enum AddressMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Internet protocol not set.
      * 
@@ -70,6 +92,8 @@ public enum AddressMode */ ADDRESS_MODE_UNSPECIFIED(0), /** + * + * *
      * Use the IPv4 internet protocol.
      * 
@@ -81,6 +105,8 @@ public enum AddressMode ; /** + * + * *
      * Internet protocol not set.
      * 
@@ -89,6 +115,8 @@ public enum AddressMode */ public static final int ADDRESS_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Use the IPv4 internet protocol.
      * 
@@ -97,7 +125,6 @@ public enum AddressMode */ public static final int MODE_IPV4_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -122,48 +149,47 @@ public static AddressMode valueOf(int value) { */ public static AddressMode forNumber(int value) { switch (value) { - case 0: return ADDRESS_MODE_UNSPECIFIED; - case 1: return MODE_IPV4; - default: return null; + case 0: + return ADDRESS_MODE_UNSPECIFIED; + case 1: + return MODE_IPV4; + 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< - AddressMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AddressMode findValueByNumber(int number) { - return AddressMode.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 AddressMode findValueByNumber(int number) { + return AddressMode.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.filestore.v1beta1.NetworkConfig.getDescriptor().getEnumTypes().get(0); } private static final AddressMode[] VALUES = values(); - public static AddressMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AddressMode 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; @@ -181,15 +207,18 @@ private AddressMode(int value) { } /** + * + * *
    * Available connection modes.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode} */ - public enum ConnectMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * ConnectMode not set.
      * 
@@ -198,6 +227,8 @@ public enum ConnectMode */ CONNECT_MODE_UNSPECIFIED(0), /** + * + * *
      * Connect via direct peering to the Filestore service.
      * 
@@ -206,6 +237,8 @@ public enum ConnectMode */ DIRECT_PEERING(1), /** + * + * *
      * Connect to your Filestore instance using Private Service
      * Access. Private services access provides an IP address range for multiple
@@ -219,6 +252,8 @@ public enum ConnectMode
     ;
 
     /**
+     *
+     *
      * 
      * ConnectMode not set.
      * 
@@ -227,6 +262,8 @@ public enum ConnectMode */ public static final int CONNECT_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Connect via direct peering to the Filestore service.
      * 
@@ -235,6 +272,8 @@ public enum ConnectMode */ public static final int DIRECT_PEERING_VALUE = 1; /** + * + * *
      * Connect to your Filestore instance using Private Service
      * Access. Private services access provides an IP address range for multiple
@@ -245,7 +284,6 @@ public enum ConnectMode
      */
     public static final int PRIVATE_SERVICE_ACCESS_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -270,49 +308,49 @@ public static ConnectMode valueOf(int value) {
      */
     public static ConnectMode forNumber(int value) {
       switch (value) {
-        case 0: return CONNECT_MODE_UNSPECIFIED;
-        case 1: return DIRECT_PEERING;
-        case 2: return PRIVATE_SERVICE_ACCESS;
-        default: return null;
+        case 0:
+          return CONNECT_MODE_UNSPECIFIED;
+        case 1:
+          return DIRECT_PEERING;
+        case 2:
+          return PRIVATE_SERVICE_ACCESS;
+        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<
-        ConnectMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ConnectMode findValueByNumber(int number) {
-              return ConnectMode.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 ConnectMode findValueByNumber(int number) {
+            return ConnectMode.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.filestore.v1beta1.NetworkConfig.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final ConnectMode[] VALUES = values();
 
-    public static ConnectMode valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static ConnectMode 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;
@@ -332,6 +370,8 @@ private ConnectMode(int value) {
   public static final int NETWORK_FIELD_NUMBER = 1;
   private volatile java.lang.Object network_;
   /**
+   *
+   *
    * 
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -339,6 +379,7 @@ private ConnectMode(int value) {
    * 
* * string network = 1; + * * @return The network. */ @java.lang.Override @@ -347,14 +388,15 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -362,16 +404,15 @@ public java.lang.String getNetwork() {
    * 
* * string network = 1; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -382,36 +423,49 @@ public java.lang.String getNetwork() { public static final int MODES_FIELD_NUMBER = 3; private java.util.List modes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode> modes_converter_ = + java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode> + modes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>() { - public com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode convert(java.lang.Integer from) { + public com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode convert( + java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode result = com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode.valueOf(from); - return result == null ? com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode.UNRECOGNIZED : result; + com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode result = + com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode.valueOf(from); + return result == null + ? com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode.UNRECOGNIZED + : result; } }; /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @return A list containing the modes. */ @java.lang.Override - public java.util.List getModesList() { + public java.util.List + getModesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>(modes_, modes_converter_); + java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>( + modes_, modes_converter_); } /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @return The count of modes. */ @java.lang.Override @@ -419,12 +473,15 @@ public int getModesCount() { return modes_.size(); } /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @param index The index of the element to return. * @return The modes at the given index. */ @@ -433,26 +490,31 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode getModes(int return modes_converter_.convert(modes_.get(index)); } /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @return A list containing the enum numeric values on the wire for modes. */ @java.lang.Override - public java.util.List - getModesValueList() { + public java.util.List getModesValueList() { return modes_; } /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ @@ -460,11 +522,14 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode getModes(int public int getModesValue(int index) { return modes_.get(index); } + private int modesMemoizedSerializedSize; public static final int RESERVED_IP_RANGE_FIELD_NUMBER = 4; private volatile java.lang.Object reservedIpRange_; /** + * + * *
    * Optional, reserved_ip_range can have one of the following two types of
    * values.
@@ -486,6 +551,7 @@ public int getModesValue(int index) {
    * 
* * string reserved_ip_range = 4; + * * @return The reservedIpRange. */ @java.lang.Override @@ -494,14 +560,15 @@ public java.lang.String getReservedIpRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; } } /** + * + * *
    * Optional, reserved_ip_range can have one of the following two types of
    * values.
@@ -523,16 +590,15 @@ public java.lang.String getReservedIpRange() {
    * 
* * string reserved_ip_range = 4; + * * @return The bytes for reservedIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString - getReservedIpRangeBytes() { + public com.google.protobuf.ByteString getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -543,6 +609,8 @@ public java.lang.String getReservedIpRange() { public static final int IP_ADDRESSES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList ipAddresses_; /** + * + * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -550,13 +618,15 @@ public java.lang.String getReservedIpRange() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList - getIpAddressesList() { + public com.google.protobuf.ProtocolStringList getIpAddressesList() { return ipAddresses_; } /** + * + * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -564,12 +634,15 @@ public java.lang.String getReservedIpRange() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** + * + * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -577,6 +650,7 @@ public int getIpAddressesCount() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -584,6 +658,8 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** + * + * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -591,44 +667,56 @@ public java.lang.String getIpAddresses(int index) {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString - getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } public static final int CONNECT_MODE_FIELD_NUMBER = 6; private int connectMode_; /** + * + * *
    * The network connect mode of the Filestore instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * * @return The enum numeric value on the wire for connectMode. */ - @java.lang.Override public int getConnectModeValue() { + @java.lang.Override + public int getConnectModeValue() { return connectMode_; } /** + * + * *
    * The network connect mode of the Filestore instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * * @return The connectMode. */ - @java.lang.Override public com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode getConnectMode() { + @java.lang.Override + public com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode getConnectMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode result = com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.valueOf(connectMode_); - return result == null ? com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.UNRECOGNIZED : result; + com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode result = + com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.valueOf(connectMode_); + return result == null + ? com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -640,8 +728,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); @@ -659,7 +746,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < ipAddresses_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ipAddresses_.getRaw(i)); } - if (connectMode_ != com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { + if (connectMode_ + != com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.CONNECT_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, connectMode_); } getUnknownFields().writeTo(output); @@ -677,14 +766,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < modes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(modes_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(modes_.get(i)); } size += dataSize; - if (!getModesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }modesMemoizedSerializedSize = dataSize; + if (!getModesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + modesMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservedIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reservedIpRange_); @@ -697,9 +786,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getIpAddressesList().size(); } - if (connectMode_ != com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, connectMode_); + if (connectMode_ + != com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.CONNECT_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, connectMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -709,20 +799,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.NetworkConfig)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.NetworkConfig other = (com.google.cloud.filestore.v1beta1.NetworkConfig) obj; + com.google.cloud.filestore.v1beta1.NetworkConfig other = + (com.google.cloud.filestore.v1beta1.NetworkConfig) obj; - if (!getNetwork() - .equals(other.getNetwork())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; if (!modes_.equals(other.modes_)) return false; - if (!getReservedIpRange() - .equals(other.getReservedIpRange())) return false; - if (!getIpAddressesList() - .equals(other.getIpAddressesList())) return false; + if (!getReservedIpRange().equals(other.getReservedIpRange())) return false; + if (!getIpAddressesList().equals(other.getIpAddressesList())) return false; if (connectMode_ != other.connectMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -754,130 +842,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.NetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.NetworkConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Network configuration for the instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.NetworkConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.NetworkConfig) com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.NetworkConfig.class, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder.class); + com.google.cloud.filestore.v1beta1.NetworkConfig.class, + com.google.cloud.filestore.v1beta1.NetworkConfig.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.NetworkConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -895,9 +989,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; } @java.lang.Override @@ -916,7 +1010,8 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.NetworkConfig buildPartial() { - com.google.cloud.filestore.v1beta1.NetworkConfig result = new com.google.cloud.filestore.v1beta1.NetworkConfig(this); + com.google.cloud.filestore.v1beta1.NetworkConfig result = + new com.google.cloud.filestore.v1beta1.NetworkConfig(this); int from_bitField0_ = bitField0_; result.network_ = network_; if (((bitField0_ & 0x00000001) != 0)) { @@ -939,38 +1034,39 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig 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.filestore.v1beta1.NetworkConfig) { - return mergeFrom((com.google.cloud.filestore.v1beta1.NetworkConfig)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.NetworkConfig) other); } else { super.mergeFrom(other); return this; @@ -978,7 +1074,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.NetworkConfig other) { - if (other == com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance()) + return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); @@ -1036,50 +1133,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - network_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 24: { - int tmpRaw = input.readEnum(); - ensureModesIsMutable(); - modes_.add(tmpRaw); - break; - } // case 24 - case 26: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 10: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 24: + { int tmpRaw = input.readEnum(); ensureModesIsMutable(); modes_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 34: { - reservedIpRange_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpAddressesIsMutable(); - ipAddresses_.add(s); - break; - } // case 42 - case 48: { - connectMode_ = input.readEnum(); - - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureModesIsMutable(); + modes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 26 + case 34: + { + reservedIpRange_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIpAddressesIsMutable(); + ipAddresses_.add(s); + break; + } // case 42 + case 48: + { + connectMode_ = input.readEnum(); + + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1089,10 +1193,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object network_ = ""; /** + * + * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1100,13 +1207,13 @@ public Builder mergeFrom(
      * 
* * string network = 1; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -1115,6 +1222,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1122,15 +1231,14 @@ public java.lang.String getNetwork() {
      * 
* * string network = 1; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -1138,6 +1246,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1145,20 +1255,22 @@ public java.lang.String getNetwork() {
      * 
* * string network = 1; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1166,15 +1278,18 @@ public Builder setNetwork(
      * 
* * string network = 1; + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1182,23 +1297,23 @@ public Builder clearNetwork() {
      * 
* * string network = 1; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; } - private java.util.List modes_ = - java.util.Collections.emptyList(); + private java.util.List modes_ = java.util.Collections.emptyList(); + private void ensureModesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { modes_ = new java.util.ArrayList(modes_); @@ -1206,37 +1321,48 @@ private void ensureModesIsMutable() { } } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @return A list containing the modes. */ - public java.util.List getModesList() { + public java.util.List + getModesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>(modes_, modes_converter_); + java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>( + modes_, modes_converter_); } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @return The count of modes. */ public int getModesCount() { return modes_.size(); } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @param index The index of the element to return. * @return The modes at the given index. */ @@ -1244,12 +1370,15 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode getModes(int return modes_converter_.convert(modes_.get(index)); } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @param index The index to set the value at. * @param value The modes to set. * @return This builder for chaining. @@ -1265,12 +1394,15 @@ public Builder setModes( return this; } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @param value The modes to add. * @return This builder for chaining. */ @@ -1284,17 +1416,21 @@ public Builder addModes(com.google.cloud.filestore.v1beta1.NetworkConfig.Address return this; } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @param values The modes to add. * @return This builder for chaining. */ public Builder addAllModes( - java.lang.Iterable values) { + java.lang.Iterable + values) { ensureModesIsMutable(); for (com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode value : values) { modes_.add(value.getNumber()); @@ -1303,12 +1439,15 @@ public Builder addAllModes( return this; } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @return This builder for chaining. */ public Builder clearModes() { @@ -1318,25 +1457,30 @@ public Builder clearModes() { return this; } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @return A list containing the enum numeric values on the wire for modes. */ - public java.util.List - getModesValueList() { + public java.util.List getModesValueList() { return java.util.Collections.unmodifiableList(modes_); } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ @@ -1344,30 +1488,35 @@ public int getModesValue(int index) { return modes_.get(index); } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for modes to set. * @return This builder for chaining. */ - public Builder setModesValue( - int index, int value) { + public Builder setModesValue(int index, int value) { ensureModesIsMutable(); modes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @param value The enum numeric value on the wire for modes to add. * @return This builder for chaining. */ @@ -1378,17 +1527,19 @@ public Builder addModesValue(int value) { return this; } /** + * + * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @param values The enum numeric values on the wire for modes to add. * @return This builder for chaining. */ - public Builder addAllModesValue( - java.lang.Iterable values) { + public Builder addAllModesValue(java.lang.Iterable values) { ensureModesIsMutable(); for (int value : values) { modes_.add(value); @@ -1399,6 +1550,8 @@ public Builder addAllModesValue( private java.lang.Object reservedIpRange_ = ""; /** + * + * *
      * Optional, reserved_ip_range can have one of the following two types of
      * values.
@@ -1420,13 +1573,13 @@ public Builder addAllModesValue(
      * 
* * string reserved_ip_range = 4; + * * @return The reservedIpRange. */ public java.lang.String getReservedIpRange() { java.lang.Object ref = reservedIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; @@ -1435,6 +1588,8 @@ public java.lang.String getReservedIpRange() { } } /** + * + * *
      * Optional, reserved_ip_range can have one of the following two types of
      * values.
@@ -1456,15 +1611,14 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 4; + * * @return The bytes for reservedIpRange. */ - public com.google.protobuf.ByteString - getReservedIpRangeBytes() { + public com.google.protobuf.ByteString getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -1472,6 +1626,8 @@ public java.lang.String getReservedIpRange() { } } /** + * + * *
      * Optional, reserved_ip_range can have one of the following two types of
      * values.
@@ -1493,20 +1649,22 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 4; + * * @param value The reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRange( - java.lang.String value) { + public Builder setReservedIpRange(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reservedIpRange_ = value; onChanged(); return this; } /** + * + * *
      * Optional, reserved_ip_range can have one of the following two types of
      * values.
@@ -1528,15 +1686,18 @@ public Builder setReservedIpRange(
      * 
* * string reserved_ip_range = 4; + * * @return This builder for chaining. */ public Builder clearReservedIpRange() { - + reservedIpRange_ = getDefaultInstance().getReservedIpRange(); onChanged(); return this; } /** + * + * *
      * Optional, reserved_ip_range can have one of the following two types of
      * values.
@@ -1558,29 +1719,33 @@ public Builder clearReservedIpRange() {
      * 
* * string reserved_ip_range = 4; + * * @param value The bytes for reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRangeBytes( - com.google.protobuf.ByteString value) { + public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reservedIpRange_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList ipAddresses_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIpAddressesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ipAddresses_ = new com.google.protobuf.LazyStringArrayList(ipAddresses_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1588,13 +1753,15 @@ private void ensureIpAddressesIsMutable() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList - getIpAddressesList() { + public com.google.protobuf.ProtocolStringList getIpAddressesList() { return ipAddresses_.getUnmodifiableView(); } /** + * + * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1602,12 +1769,15 @@ private void ensureIpAddressesIsMutable() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** + * + * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1615,6 +1785,7 @@ public int getIpAddressesCount() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -1622,6 +1793,8 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** + * + * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1629,14 +1802,16 @@ public java.lang.String getIpAddresses(int index) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString - getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } /** + * + * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1644,21 +1819,23 @@ public java.lang.String getIpAddresses(int index) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index to set the value at. * @param value The ipAddresses to set. * @return This builder for chaining. */ - public Builder setIpAddresses( - int index, java.lang.String value) { + public Builder setIpAddresses(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1666,20 +1843,22 @@ public Builder setIpAddresses(
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddresses( - java.lang.String value) { + public Builder addIpAddresses(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1687,18 +1866,19 @@ public Builder addIpAddresses(
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param values The ipAddresses to add. * @return This builder for chaining. */ - public Builder addAllIpAddresses( - java.lang.Iterable values) { + public Builder addAllIpAddresses(java.lang.Iterable values) { ensureIpAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ipAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipAddresses_); onChanged(); return this; } /** + * + * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1706,6 +1886,7 @@ public Builder addAllIpAddresses(
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearIpAddresses() { @@ -1715,6 +1896,8 @@ public Builder clearIpAddresses() { return this; } /** + * + * *
      * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
      * IPv6 addresses in the format
@@ -1722,15 +1905,15 @@ public Builder clearIpAddresses() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes of the ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddressesBytes( - com.google.protobuf.ByteString value) { + public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); @@ -1739,85 +1922,105 @@ public Builder addIpAddressesBytes( private int connectMode_ = 0; /** + * + * *
      * The network connect mode of the Filestore instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * * @return The enum numeric value on the wire for connectMode. */ - @java.lang.Override public int getConnectModeValue() { + @java.lang.Override + public int getConnectModeValue() { return connectMode_; } /** + * + * *
      * The network connect mode of the Filestore instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * * @param value The enum numeric value on the wire for connectMode to set. * @return This builder for chaining. */ public Builder setConnectModeValue(int value) { - + connectMode_ = value; onChanged(); return this; } /** + * + * *
      * The network connect mode of the Filestore instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * * @return The connectMode. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode getConnectMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode result = com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.valueOf(connectMode_); - return result == null ? com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.UNRECOGNIZED : result; + com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode result = + com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.valueOf(connectMode_); + return result == null + ? com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.UNRECOGNIZED + : result; } /** + * + * *
      * The network connect mode of the Filestore instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * * @param value The connectMode to set. * @return This builder for chaining. */ - public Builder setConnectMode(com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode value) { + public Builder setConnectMode( + com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode value) { if (value == null) { throw new NullPointerException(); } - + connectMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The network connect mode of the Filestore instance.
      * If not provided, the connect mode defaults to DIRECT_PEERING.
      * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * * @return This builder for chaining. */ public Builder clearConnectMode() { - + connectMode_ = 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); } @@ -1827,12 +2030,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.NetworkConfig) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.NetworkConfig) private static final com.google.cloud.filestore.v1beta1.NetworkConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.NetworkConfig(); } @@ -1841,27 +2044,27 @@ public static com.google.cloud.filestore.v1beta1.NetworkConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1876,6 +2079,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.NetworkConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java similarity index 87% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java index ad43b3781bbe..a923cb8ed67d 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface NetworkConfigOrBuilder extends +public interface NetworkConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.NetworkConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -15,10 +33,13 @@ public interface NetworkConfigOrBuilder extends
    * 
* * string network = 1; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -26,66 +47,82 @@ public interface NetworkConfigOrBuilder extends
    * 
* * string network = 1; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @return A list containing the modes. */ java.util.List getModesList(); /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @return The count of modes. */ int getModesCount(); /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @param index The index of the element to return. * @return The modes at the given index. */ com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode getModes(int index); /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @return A list containing the enum numeric values on the wire for modes. */ - java.util.List - getModesValueList(); + java.util.List getModesValueList(); /** + * + * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ int getModesValue(int index); /** + * + * *
    * Optional, reserved_ip_range can have one of the following two types of
    * values.
@@ -107,10 +144,13 @@ public interface NetworkConfigOrBuilder extends
    * 
* * string reserved_ip_range = 4; + * * @return The reservedIpRange. */ java.lang.String getReservedIpRange(); /** + * + * *
    * Optional, reserved_ip_range can have one of the following two types of
    * values.
@@ -132,12 +172,14 @@ public interface NetworkConfigOrBuilder extends
    * 
* * string reserved_ip_range = 4; + * * @return The bytes for reservedIpRange. */ - com.google.protobuf.ByteString - getReservedIpRangeBytes(); + com.google.protobuf.ByteString getReservedIpRangeBytes(); /** + * + * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -145,11 +187,13 @@ public interface NetworkConfigOrBuilder extends
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the ipAddresses. */ - java.util.List - getIpAddressesList(); + java.util.List getIpAddressesList(); /** + * + * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -157,10 +201,13 @@ public interface NetworkConfigOrBuilder extends
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of ipAddresses. */ int getIpAddressesCount(); /** + * + * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -168,11 +215,14 @@ public interface NetworkConfigOrBuilder extends
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ java.lang.String getIpAddresses(int index); /** + * + * *
    * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
    * IPv6 addresses in the format
@@ -180,29 +230,35 @@ public interface NetworkConfigOrBuilder extends
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - com.google.protobuf.ByteString - getIpAddressesBytes(int index); + com.google.protobuf.ByteString getIpAddressesBytes(int index); /** + * + * *
    * The network connect mode of the Filestore instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * * @return The enum numeric value on the wire for connectMode. */ int getConnectModeValue(); /** + * + * *
    * The network connect mode of the Filestore instance.
    * If not provided, the connect mode defaults to DIRECT_PEERING.
    * 
* * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * * @return The connectMode. */ com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode getConnectMode(); diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java similarity index 75% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java index cb1fee60c8e2..945d52887e71 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * NFS export options specifications.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.NfsExportOptions} */ -public final class NfsExportOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NfsExportOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.NfsExportOptions) NfsExportOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NfsExportOptions.newBuilder() to construct. private NfsExportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NfsExportOptions() { ipRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; accessMode_ = 0; @@ -27,39 +45,43 @@ private NfsExportOptions() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NfsExportOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.NfsExportOptions.class, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder.class); + com.google.cloud.filestore.v1beta1.NfsExportOptions.class, + com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder.class); } /** + * + * *
    * The access mode.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode} */ - public enum AccessMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * AccessMode not set.
      * 
@@ -68,6 +90,8 @@ public enum AccessMode */ ACCESS_MODE_UNSPECIFIED(0), /** + * + * *
      * The client can only read the file share.
      * 
@@ -76,6 +100,8 @@ public enum AccessMode */ READ_ONLY(1), /** + * + * *
      * The client can read and write the file share (default).
      * 
@@ -87,6 +113,8 @@ public enum AccessMode ; /** + * + * *
      * AccessMode not set.
      * 
@@ -95,6 +123,8 @@ public enum AccessMode */ public static final int ACCESS_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The client can only read the file share.
      * 
@@ -103,6 +133,8 @@ public enum AccessMode */ public static final int READ_ONLY_VALUE = 1; /** + * + * *
      * The client can read and write the file share (default).
      * 
@@ -111,7 +143,6 @@ public enum AccessMode */ public static final int READ_WRITE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,49 +167,51 @@ public static AccessMode valueOf(int value) { */ public static AccessMode forNumber(int value) { switch (value) { - case 0: return ACCESS_MODE_UNSPECIFIED; - case 1: return READ_ONLY; - case 2: return READ_WRITE; - default: return null; + case 0: + return ACCESS_MODE_UNSPECIFIED; + case 1: + return READ_ONLY; + case 2: + return READ_WRITE; + 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< - AccessMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AccessMode findValueByNumber(int number) { - return AccessMode.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 AccessMode findValueByNumber(int number) { + return AccessMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.NfsExportOptions.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.NfsExportOptions.getDescriptor() + .getEnumTypes() + .get(0); } private static final AccessMode[] VALUES = values(); - public static AccessMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AccessMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -196,15 +229,18 @@ private AccessMode(int value) { } /** + * + * *
    * The squash mode.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode} */ - public enum SquashMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * SquashMode not set.
      * 
@@ -213,6 +249,8 @@ public enum SquashMode */ SQUASH_MODE_UNSPECIFIED(0), /** + * + * *
      * The Root user has root access to the file share (default).
      * 
@@ -221,6 +259,8 @@ public enum SquashMode */ NO_ROOT_SQUASH(1), /** + * + * *
      * The Root user has squashed access to the anonymous uid/gid.
      * 
@@ -232,6 +272,8 @@ public enum SquashMode ; /** + * + * *
      * SquashMode not set.
      * 
@@ -240,6 +282,8 @@ public enum SquashMode */ public static final int SQUASH_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Root user has root access to the file share (default).
      * 
@@ -248,6 +292,8 @@ public enum SquashMode */ public static final int NO_ROOT_SQUASH_VALUE = 1; /** + * + * *
      * The Root user has squashed access to the anonymous uid/gid.
      * 
@@ -256,7 +302,6 @@ public enum SquashMode */ public static final int ROOT_SQUASH_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -281,49 +326,51 @@ public static SquashMode valueOf(int value) { */ public static SquashMode forNumber(int value) { switch (value) { - case 0: return SQUASH_MODE_UNSPECIFIED; - case 1: return NO_ROOT_SQUASH; - case 2: return ROOT_SQUASH; - default: return null; + case 0: + return SQUASH_MODE_UNSPECIFIED; + case 1: + return NO_ROOT_SQUASH; + case 2: + return ROOT_SQUASH; + 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< - SquashMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SquashMode findValueByNumber(int number) { - return SquashMode.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 SquashMode findValueByNumber(int number) { + return SquashMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.NfsExportOptions.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.NfsExportOptions.getDescriptor() + .getEnumTypes() + .get(1); } private static final SquashMode[] VALUES = values(); - public static SquashMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SquashMode 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 +390,8 @@ private SquashMode(int value) { public static final int IP_RANGES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList ipRanges_; /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -355,13 +404,15 @@ private SquashMode(int value) {
    * 
* * repeated string ip_ranges = 1; + * * @return A list containing the ipRanges. */ - public com.google.protobuf.ProtocolStringList - getIpRangesList() { + public com.google.protobuf.ProtocolStringList getIpRangesList() { return ipRanges_; } /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -374,12 +425,15 @@ private SquashMode(int value) {
    * 
* * repeated string ip_ranges = 1; + * * @return The count of ipRanges. */ public int getIpRangesCount() { return ipRanges_.size(); } /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -392,6 +446,7 @@ public int getIpRangesCount() {
    * 
* * repeated string ip_ranges = 1; + * * @param index The index of the element to return. * @return The ipRanges at the given index. */ @@ -399,6 +454,8 @@ public java.lang.String getIpRanges(int index) { return ipRanges_.get(index); } /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -411,17 +468,19 @@ public java.lang.String getIpRanges(int index) {
    * 
* * repeated string ip_ranges = 1; + * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - public com.google.protobuf.ByteString - getIpRangesBytes(int index) { + public com.google.protobuf.ByteString getIpRangesBytes(int index) { return ipRanges_.getByteString(index); } public static final int ACCESS_MODE_FIELD_NUMBER = 2; private int accessMode_; /** + * + * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -429,12 +488,16 @@ public java.lang.String getIpRanges(int index) {
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; + * * @return The enum numeric value on the wire for accessMode. */ - @java.lang.Override public int getAccessModeValue() { + @java.lang.Override + public int getAccessModeValue() { return accessMode_; } /** + * + * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -442,17 +505,24 @@ public java.lang.String getIpRanges(int index) {
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; + * * @return The accessMode. */ - @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessMode() { + @java.lang.Override + public com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode result = com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.valueOf(accessMode_); - return result == null ? com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.UNRECOGNIZED : result; + com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode result = + com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.valueOf(accessMode_); + return result == null + ? com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.UNRECOGNIZED + : result; } public static final int SQUASH_MODE_FIELD_NUMBER = 3; private int squashMode_; /** + * + * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -460,12 +530,16 @@ public java.lang.String getIpRanges(int index) {
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; + * * @return The enum numeric value on the wire for squashMode. */ - @java.lang.Override public int getSquashModeValue() { + @java.lang.Override + public int getSquashModeValue() { return squashMode_; } /** + * + * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -473,17 +547,24 @@ public java.lang.String getIpRanges(int index) {
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; + * * @return The squashMode. */ - @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashMode() { + @java.lang.Override + public com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode result = com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.valueOf(squashMode_); - return result == null ? com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.UNRECOGNIZED : result; + com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode result = + com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.valueOf(squashMode_); + return result == null + ? com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.UNRECOGNIZED + : result; } public static final int ANON_UID_FIELD_NUMBER = 4; private long anonUid_; /** + * + * *
    * An integer representing the anonymous user id with a default value of
    * 65534.
@@ -492,6 +573,7 @@ public java.lang.String getIpRanges(int index) {
    * 
* * int64 anon_uid = 4; + * * @return The anonUid. */ @java.lang.Override @@ -502,6 +584,8 @@ public long getAnonUid() { public static final int ANON_GID_FIELD_NUMBER = 5; private long anonGid_; /** + * + * *
    * An integer representing the anonymous group id with a default value of
    * 65534.
@@ -510,6 +594,7 @@ public long getAnonUid() {
    * 
* * int64 anon_gid = 5; + * * @return The anonGid. */ @java.lang.Override @@ -518,6 +603,7 @@ public long getAnonGid() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -529,15 +615,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < ipRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipRanges_.getRaw(i)); } - if (accessMode_ != com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED.getNumber()) { + if (accessMode_ + != com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, accessMode_); } - if (squashMode_ != com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED.getNumber()) { + if (squashMode_ + != com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, squashMode_); } if (anonUid_ != 0L) { @@ -563,21 +652,21 @@ public int getSerializedSize() { size += dataSize; size += 1 * getIpRangesList().size(); } - if (accessMode_ != com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, accessMode_); + if (accessMode_ + != com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, accessMode_); } - if (squashMode_ != com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, squashMode_); + if (squashMode_ + != com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, squashMode_); } if (anonUid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, anonUid_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, anonUid_); } if (anonGid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, anonGid_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, anonGid_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -587,21 +676,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.filestore.v1beta1.NfsExportOptions)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.NfsExportOptions other = (com.google.cloud.filestore.v1beta1.NfsExportOptions) obj; + com.google.cloud.filestore.v1beta1.NfsExportOptions other = + (com.google.cloud.filestore.v1beta1.NfsExportOptions) obj; - if (!getIpRangesList() - .equals(other.getIpRangesList())) return false; + if (!getIpRangesList().equals(other.getIpRangesList())) return false; if (accessMode_ != other.accessMode_) return false; if (squashMode_ != other.squashMode_) return false; - if (getAnonUid() - != other.getAnonUid()) return false; - if (getAnonGid() - != other.getAnonGid()) return false; + if (getAnonUid() != other.getAnonUid()) return false; + if (getAnonGid() != other.getAnonGid()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -622,140 +709,144 @@ public int hashCode() { hash = (37 * hash) + SQUASH_MODE_FIELD_NUMBER; hash = (53 * hash) + squashMode_; hash = (37 * hash) + ANON_UID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAnonUid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAnonUid()); hash = (37 * hash) + ANON_GID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAnonGid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAnonGid()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( - java.nio.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.filestore.v1beta1.NfsExportOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.NfsExportOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.NfsExportOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * NFS export options specifications.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.NfsExportOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.NfsExportOptions) com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.NfsExportOptions.class, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder.class); + com.google.cloud.filestore.v1beta1.NfsExportOptions.class, + com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.NfsExportOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -773,9 +864,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; } @java.lang.Override @@ -794,7 +885,8 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions buildPartial() { - com.google.cloud.filestore.v1beta1.NfsExportOptions result = new com.google.cloud.filestore.v1beta1.NfsExportOptions(this); + com.google.cloud.filestore.v1beta1.NfsExportOptions result = + new com.google.cloud.filestore.v1beta1.NfsExportOptions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { ipRanges_ = ipRanges_.getUnmodifiableView(); @@ -813,38 +905,39 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions 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.filestore.v1beta1.NfsExportOptions) { - return mergeFrom((com.google.cloud.filestore.v1beta1.NfsExportOptions)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.NfsExportOptions) other); } else { super.mergeFrom(other); return this; @@ -852,7 +945,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.NfsExportOptions other) { - if (other == com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()) + return this; if (!other.ipRanges_.isEmpty()) { if (ipRanges_.isEmpty()) { ipRanges_ = other.ipRanges_; @@ -901,38 +995,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpRangesIsMutable(); - ipRanges_.add(s); - break; - } // case 10 - case 16: { - accessMode_ = input.readEnum(); - - break; - } // case 16 - case 24: { - squashMode_ = input.readEnum(); - - break; - } // case 24 - case 32: { - anonUid_ = input.readInt64(); - - break; - } // case 32 - case 40: { - anonGid_ = input.readInt64(); - - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIpRangesIsMutable(); + ipRanges_.add(s); + break; + } // case 10 + case 16: + { + accessMode_ = input.readEnum(); + + break; + } // case 16 + case 24: + { + squashMode_ = input.readEnum(); + + break; + } // case 24 + case 32: + { + anonUid_ = input.readInt64(); + + break; + } // case 32 + case 40: + { + anonGid_ = input.readInt64(); + + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -942,16 +1042,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList ipRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList ipRanges_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIpRangesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ipRanges_ = new com.google.protobuf.LazyStringArrayList(ipRanges_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -964,13 +1069,15 @@ private void ensureIpRangesIsMutable() {
      * 
* * repeated string ip_ranges = 1; + * * @return A list containing the ipRanges. */ - public com.google.protobuf.ProtocolStringList - getIpRangesList() { + public com.google.protobuf.ProtocolStringList getIpRangesList() { return ipRanges_.getUnmodifiableView(); } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -983,12 +1090,15 @@ private void ensureIpRangesIsMutable() {
      * 
* * repeated string ip_ranges = 1; + * * @return The count of ipRanges. */ public int getIpRangesCount() { return ipRanges_.size(); } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1001,6 +1111,7 @@ public int getIpRangesCount() {
      * 
* * repeated string ip_ranges = 1; + * * @param index The index of the element to return. * @return The ipRanges at the given index. */ @@ -1008,6 +1119,8 @@ public java.lang.String getIpRanges(int index) { return ipRanges_.get(index); } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1020,14 +1133,16 @@ public java.lang.String getIpRanges(int index) {
      * 
* * repeated string ip_ranges = 1; + * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - public com.google.protobuf.ByteString - getIpRangesBytes(int index) { + public com.google.protobuf.ByteString getIpRangesBytes(int index) { return ipRanges_.getByteString(index); } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1040,21 +1155,23 @@ public java.lang.String getIpRanges(int index) {
      * 
* * repeated string ip_ranges = 1; + * * @param index The index to set the value at. * @param value The ipRanges to set. * @return This builder for chaining. */ - public Builder setIpRanges( - int index, java.lang.String value) { + public Builder setIpRanges(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpRangesIsMutable(); + throw new NullPointerException(); + } + ensureIpRangesIsMutable(); ipRanges_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1067,20 +1184,22 @@ public Builder setIpRanges(
      * 
* * repeated string ip_ranges = 1; + * * @param value The ipRanges to add. * @return This builder for chaining. */ - public Builder addIpRanges( - java.lang.String value) { + public Builder addIpRanges(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpRangesIsMutable(); + throw new NullPointerException(); + } + ensureIpRangesIsMutable(); ipRanges_.add(value); onChanged(); return this; } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1093,18 +1212,19 @@ public Builder addIpRanges(
      * 
* * repeated string ip_ranges = 1; + * * @param values The ipRanges to add. * @return This builder for chaining. */ - public Builder addAllIpRanges( - java.lang.Iterable values) { + public Builder addAllIpRanges(java.lang.Iterable values) { ensureIpRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ipRanges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipRanges_); onChanged(); return this; } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1117,6 +1237,7 @@ public Builder addAllIpRanges(
      * 
* * repeated string ip_ranges = 1; + * * @return This builder for chaining. */ public Builder clearIpRanges() { @@ -1126,6 +1247,8 @@ public Builder clearIpRanges() { return this; } /** + * + * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1138,15 +1261,15 @@ public Builder clearIpRanges() {
      * 
* * repeated string ip_ranges = 1; + * * @param value The bytes of the ipRanges to add. * @return This builder for chaining. */ - public Builder addIpRangesBytes( - com.google.protobuf.ByteString value) { + public Builder addIpRangesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpRangesIsMutable(); ipRanges_.add(value); onChanged(); @@ -1155,6 +1278,8 @@ public Builder addIpRangesBytes( private int accessMode_ = 0; /** + * + * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1162,12 +1287,16 @@ public Builder addIpRangesBytes(
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; + * * @return The enum numeric value on the wire for accessMode. */ - @java.lang.Override public int getAccessModeValue() { + @java.lang.Override + public int getAccessModeValue() { return accessMode_; } /** + * + * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1175,16 +1304,19 @@ public Builder addIpRangesBytes(
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; + * * @param value The enum numeric value on the wire for accessMode to set. * @return This builder for chaining. */ public Builder setAccessModeValue(int value) { - + accessMode_ = value; onChanged(); return this; } /** + * + * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1192,15 +1324,21 @@ public Builder setAccessModeValue(int value) {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; + * * @return The accessMode. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode result = com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.valueOf(accessMode_); - return result == null ? com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.UNRECOGNIZED : result; + com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode result = + com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.valueOf(accessMode_); + return result == null + ? com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.UNRECOGNIZED + : result; } /** + * + * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1208,19 +1346,23 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessM
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; + * * @param value The accessMode to set. * @return This builder for chaining. */ - public Builder setAccessMode(com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode value) { + public Builder setAccessMode( + com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode value) { if (value == null) { throw new NullPointerException(); } - + accessMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1228,10 +1370,11 @@ public Builder setAccessMode(com.google.cloud.filestore.v1beta1.NfsExportOptions
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; + * * @return This builder for chaining. */ public Builder clearAccessMode() { - + accessMode_ = 0; onChanged(); return this; @@ -1239,6 +1382,8 @@ public Builder clearAccessMode() { private int squashMode_ = 0; /** + * + * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1246,12 +1391,16 @@ public Builder clearAccessMode() {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; + * * @return The enum numeric value on the wire for squashMode. */ - @java.lang.Override public int getSquashModeValue() { + @java.lang.Override + public int getSquashModeValue() { return squashMode_; } /** + * + * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1259,16 +1408,19 @@ public Builder clearAccessMode() {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; + * * @param value The enum numeric value on the wire for squashMode to set. * @return This builder for chaining. */ public Builder setSquashModeValue(int value) { - + squashMode_ = value; onChanged(); return this; } /** + * + * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1276,15 +1428,21 @@ public Builder setSquashModeValue(int value) {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; + * * @return The squashMode. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode result = com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.valueOf(squashMode_); - return result == null ? com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.UNRECOGNIZED : result; + com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode result = + com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.valueOf(squashMode_); + return result == null + ? com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.UNRECOGNIZED + : result; } /** + * + * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1292,19 +1450,23 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashM
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; + * * @param value The squashMode to set. * @return This builder for chaining. */ - public Builder setSquashMode(com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode value) { + public Builder setSquashMode( + com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode value) { if (value == null) { throw new NullPointerException(); } - + squashMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1312,17 +1474,20 @@ public Builder setSquashMode(com.google.cloud.filestore.v1beta1.NfsExportOptions
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; + * * @return This builder for chaining. */ public Builder clearSquashMode() { - + squashMode_ = 0; onChanged(); return this; } - private long anonUid_ ; + private long anonUid_; /** + * + * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1331,6 +1496,7 @@ public Builder clearSquashMode() {
      * 
* * int64 anon_uid = 4; + * * @return The anonUid. */ @java.lang.Override @@ -1338,6 +1504,8 @@ public long getAnonUid() { return anonUid_; } /** + * + * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1346,16 +1514,19 @@ public long getAnonUid() {
      * 
* * int64 anon_uid = 4; + * * @param value The anonUid to set. * @return This builder for chaining. */ public Builder setAnonUid(long value) { - + anonUid_ = value; onChanged(); return this; } /** + * + * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1364,17 +1535,20 @@ public Builder setAnonUid(long value) {
      * 
* * int64 anon_uid = 4; + * * @return This builder for chaining. */ public Builder clearAnonUid() { - + anonUid_ = 0L; onChanged(); return this; } - private long anonGid_ ; + private long anonGid_; /** + * + * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1383,6 +1557,7 @@ public Builder clearAnonUid() {
      * 
* * int64 anon_gid = 5; + * * @return The anonGid. */ @java.lang.Override @@ -1390,6 +1565,8 @@ public long getAnonGid() { return anonGid_; } /** + * + * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1398,16 +1575,19 @@ public long getAnonGid() {
      * 
* * int64 anon_gid = 5; + * * @param value The anonGid to set. * @return This builder for chaining. */ public Builder setAnonGid(long value) { - + anonGid_ = value; onChanged(); return this; } /** + * + * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1416,17 +1596,18 @@ public Builder setAnonGid(long value) {
      * 
* * int64 anon_gid = 5; + * * @return This builder for chaining. */ public Builder clearAnonGid() { - + anonGid_ = 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); } @@ -1436,12 +1617,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.NfsExportOptions) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.NfsExportOptions) private static final com.google.cloud.filestore.v1beta1.NfsExportOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.NfsExportOptions(); } @@ -1450,27 +1631,27 @@ public static com.google.cloud.filestore.v1beta1.NfsExportOptions getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NfsExportOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NfsExportOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1485,6 +1666,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.NfsExportOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java similarity index 84% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java index 785eea1ec756..26e0487d1284 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface NfsExportOptionsOrBuilder extends +public interface NfsExportOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.NfsExportOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -20,11 +38,13 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * repeated string ip_ranges = 1; + * * @return A list containing the ipRanges. */ - java.util.List - getIpRangesList(); + java.util.List getIpRangesList(); /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -37,10 +57,13 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * repeated string ip_ranges = 1; + * * @return The count of ipRanges. */ int getIpRangesCount(); /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -53,11 +76,14 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * repeated string ip_ranges = 1; + * * @param index The index of the element to return. * @return The ipRanges at the given index. */ java.lang.String getIpRanges(int index); /** + * + * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -70,13 +96,15 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * repeated string ip_ranges = 1; + * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - com.google.protobuf.ByteString - getIpRangesBytes(int index); + com.google.protobuf.ByteString getIpRangesBytes(int index); /** + * + * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -84,10 +112,13 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; + * * @return The enum numeric value on the wire for accessMode. */ int getAccessModeValue(); /** + * + * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -95,11 +126,14 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; + * * @return The accessMode. */ com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessMode(); /** + * + * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -107,10 +141,13 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; + * * @return The enum numeric value on the wire for squashMode. */ int getSquashModeValue(); /** + * + * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -118,11 +155,14 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; + * * @return The squashMode. */ com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashMode(); /** + * + * *
    * An integer representing the anonymous user id with a default value of
    * 65534.
@@ -131,11 +171,14 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * int64 anon_uid = 4; + * * @return The anonUid. */ long getAnonUid(); /** + * + * *
    * An integer representing the anonymous group id with a default value of
    * 65534.
@@ -144,6 +187,7 @@ public interface NfsExportOptionsOrBuilder extends
    * 
* * int64 anon_gid = 5; + * * @return The anonGid. */ long getAnonGid(); diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java similarity index 71% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java index c8be597fab01..7865aca5d513 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * RestoreInstanceRequest restores an existing instance's file share from a
  * snapshot or backup.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.filestore.v1beta1.RestoreInstanceRequest}
  */
-public final class RestoreInstanceRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RestoreInstanceRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.RestoreInstanceRequest)
     RestoreInstanceRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RestoreInstanceRequest.newBuilder() to construct.
   private RestoreInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RestoreInstanceRequest() {
     name_ = "";
     fileShare_ = "";
@@ -27,38 +45,42 @@ private RestoreInstanceRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RestoreInstanceRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
+        .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable
+    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
+        .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class, com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.Builder.class);
+            com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class,
+            com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.Builder.class);
   }
 
   private int sourceCase_ = 0;
   private java.lang.Object source_;
+
   public enum SourceCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     SOURCE_SNAPSHOT(3),
     SOURCE_BACKUP(4),
     SOURCE_NOT_SET(0);
     private final int value;
+
     private SourceCase(int value) {
       this.value = value;
     }
@@ -74,32 +96,40 @@ public static SourceCase valueOf(int value) {
 
     public static SourceCase forNumber(int value) {
       switch (value) {
-        case 3: return SOURCE_SNAPSHOT;
-        case 4: return SOURCE_BACKUP;
-        case 0: return SOURCE_NOT_SET;
-        default: return null;
+        case 3:
+          return SOURCE_SNAPSHOT;
+        case 4:
+          return SOURCE_BACKUP;
+        case 0:
+          return SOURCE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public SourceCase
-  getSourceCase() {
-    return SourceCase.forNumber(
-        sourceCase_);
+  public SourceCase getSourceCase() {
+    return SourceCase.forNumber(sourceCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * string name = 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 @@ -108,30 +138,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * string name = 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,12 +174,15 @@ public java.lang.String getName() { public static final int FILE_SHARE_FIELD_NUMBER = 2; private volatile java.lang.Object fileShare_; /** + * + * *
    * Required. Name of the file share in the Filestore instance that the snapshot
    * is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fileShare. */ @java.lang.Override @@ -156,30 +191,30 @@ public java.lang.String getFileShare() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileShare_ = s; return s; } } /** + * + * *
    * Required. Name of the file share in the Filestore instance that the snapshot
    * is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fileShare. */ @java.lang.Override - public com.google.protobuf.ByteString - getFileShareBytes() { + public com.google.protobuf.ByteString getFileShareBytes() { java.lang.Object ref = fileShare_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fileShare_ = b; return b; } else { @@ -189,24 +224,30 @@ public java.lang.String getFileShare() { public static final int SOURCE_SNAPSHOT_FIELD_NUMBER = 3; /** + * + * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceSnapshot field is set. */ public boolean hasSourceSnapshot() { return sourceCase_ == 3; } /** + * + * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return The sourceSnapshot. */ public java.lang.String getSourceSnapshot() { @@ -217,8 +258,7 @@ public java.lang.String getSourceSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (sourceCase_ == 3) { source_ = s; @@ -227,24 +267,25 @@ public java.lang.String getSourceSnapshot() { } } /** + * + * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceSnapshot. */ - public com.google.protobuf.ByteString - getSourceSnapshotBytes() { + public com.google.protobuf.ByteString getSourceSnapshotBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 3) { source_ = b; } @@ -256,24 +297,30 @@ public java.lang.String getSourceSnapshot() { public static final int SOURCE_BACKUP_FIELD_NUMBER = 4; /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceBackup field is set. */ public boolean hasSourceBackup() { return sourceCase_ == 4; } /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } + * * @return The sourceBackup. */ public java.lang.String getSourceBackup() { @@ -284,8 +331,7 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (sourceCase_ == 4) { source_ = s; @@ -294,24 +340,25 @@ public java.lang.String getSourceBackup() { } } /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString - getSourceBackupBytes() { + public com.google.protobuf.ByteString getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 4) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 4) { source_ = b; } @@ -322,6 +369,7 @@ public java.lang.String getSourceBackup() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,8 +381,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -376,26 +423,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.filestore.v1beta1.RestoreInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest other = (com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest other = + (com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getFileShare() - .equals(other.getFileShare())) return false; + if (!getName().equals(other.getName())) return false; + if (!getFileShare().equals(other.getFileShare())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 3: - if (!getSourceSnapshot() - .equals(other.getSourceSnapshot())) return false; + if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false; break; case 4: - if (!getSourceBackup() - .equals(other.getSourceBackup())) return false; + if (!getSourceBackup().equals(other.getSourceBackup())) return false; break; case 0: default: @@ -433,96 +477,104 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( - java.nio.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.filestore.v1beta1.RestoreInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.RestoreInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.RestoreInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * RestoreInstanceRequest restores an existing instance's file share from a
    * snapshot or backup.
@@ -530,33 +582,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.filestore.v1beta1.RestoreInstanceRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.RestoreInstanceRequest)
       com.google.cloud.filestore.v1beta1.RestoreInstanceRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
+          .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable
+      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
+          .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class, com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.Builder.class);
+              com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class,
+              com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -570,9 +621,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
+          .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor;
     }
 
     @java.lang.Override
@@ -591,7 +642,8 @@ public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest build() {
 
     @java.lang.Override
     public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest buildPartial() {
-      com.google.cloud.filestore.v1beta1.RestoreInstanceRequest result = new com.google.cloud.filestore.v1beta1.RestoreInstanceRequest(this);
+      com.google.cloud.filestore.v1beta1.RestoreInstanceRequest result =
+          new com.google.cloud.filestore.v1beta1.RestoreInstanceRequest(this);
       result.name_ = name_;
       result.fileShare_ = fileShare_;
       if (sourceCase_ == 3) {
@@ -609,38 +661,39 @@ public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest 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.filestore.v1beta1.RestoreInstanceRequest) {
-        return mergeFrom((com.google.cloud.filestore.v1beta1.RestoreInstanceRequest)other);
+        return mergeFrom((com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -648,7 +701,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.filestore.v1beta1.RestoreInstanceRequest other) {
-      if (other == com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -658,21 +712,24 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.RestoreInstanceReque
         onChanged();
       }
       switch (other.getSourceCase()) {
-        case SOURCE_SNAPSHOT: {
-          sourceCase_ = 3;
-          source_ = other.source_;
-          onChanged();
-          break;
-        }
-        case SOURCE_BACKUP: {
-          sourceCase_ = 4;
-          source_ = other.source_;
-          onChanged();
-          break;
-        }
-        case SOURCE_NOT_SET: {
-          break;
-        }
+        case SOURCE_SNAPSHOT:
+          {
+            sourceCase_ = 3;
+            source_ = other.source_;
+            onChanged();
+            break;
+          }
+        case SOURCE_BACKUP:
+          {
+            sourceCase_ = 4;
+            source_ = other.source_;
+            onChanged();
+            break;
+          }
+        case SOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -700,34 +757,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              fileShare_ = input.readStringRequireUtf8();
+                break;
+              } // case 10
+            case 18:
+              {
+                fileShare_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              sourceCase_ = 3;
-              source_ = s;
-              break;
-            } // case 26
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              sourceCase_ = 4;
-              source_ = s;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                sourceCase_ = 3;
+                source_ = s;
+                break;
+              } // case 26
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                sourceCase_ = 4;
+                source_ = s;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -737,12 +799,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-    public SourceCase
-        getSourceCase() {
-      return SourceCase.forNumber(
-          sourceCase_);
+
+    public SourceCase getSourceCase() {
+      return SourceCase.forNumber(sourceCase_);
     }
 
     public Builder clearSource() {
@@ -752,22 +814,25 @@ public Builder clearSource() {
       return this;
     }
 
-
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * string name = 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; @@ -776,21 +841,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * string name = 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 { @@ -798,57 +866,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * 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. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * string 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. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * 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; @@ -856,19 +937,21 @@ public Builder setNameBytes( private java.lang.Object fileShare_ = ""; /** + * + * *
      * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fileShare. */ public java.lang.String getFileShare() { java.lang.Object ref = fileShare_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileShare_ = s; return s; @@ -877,21 +960,22 @@ public java.lang.String getFileShare() { } } /** + * + * *
      * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fileShare. */ - public com.google.protobuf.ByteString - getFileShareBytes() { + public com.google.protobuf.ByteString getFileShareBytes() { java.lang.Object ref = fileShare_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fileShare_ = b; return b; } else { @@ -899,69 +983,79 @@ public java.lang.String getFileShare() { } } /** + * + * *
      * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The fileShare to set. * @return This builder for chaining. */ - public Builder setFileShare( - java.lang.String value) { + public Builder setFileShare(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fileShare_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFileShare() { - + fileShare_ = getDefaultInstance().getFileShare(); onChanged(); return this; } /** + * + * *
      * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for fileShare to set. * @return This builder for chaining. */ - public Builder setFileShareBytes( - com.google.protobuf.ByteString value) { + public Builder setFileShareBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fileShare_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceSnapshot field is set. */ @java.lang.Override @@ -969,12 +1063,15 @@ public boolean hasSourceSnapshot() { return sourceCase_ == 3; } /** + * + * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return The sourceSnapshot. */ @java.lang.Override @@ -984,8 +1081,7 @@ public java.lang.String getSourceSnapshot() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (sourceCase_ == 3) { source_ = s; @@ -996,25 +1092,26 @@ public java.lang.String getSourceSnapshot() { } } /** + * + * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceSnapshot. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceSnapshotBytes() { + public com.google.protobuf.ByteString getSourceSnapshotBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 3) { source_ = b; } @@ -1024,32 +1121,37 @@ public java.lang.String getSourceSnapshot() { } } /** + * + * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @param value The sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshot( - java.lang.String value) { + public Builder setSourceSnapshot(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 3; + throw new NullPointerException(); + } + sourceCase_ = 3; source_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearSourceSnapshot() { @@ -1061,21 +1163,23 @@ public Builder clearSourceSnapshot() { return this; } /** + * + * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshotBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 3; source_ = value; onChanged(); @@ -1083,12 +1187,15 @@ public Builder setSourceSnapshotBytes( } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceBackup field is set. */ @java.lang.Override @@ -1096,12 +1203,15 @@ public boolean hasSourceBackup() { return sourceCase_ == 4; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } + * * @return The sourceBackup. */ @java.lang.Override @@ -1111,8 +1221,7 @@ public java.lang.String getSourceBackup() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (sourceCase_ == 4) { source_ = s; @@ -1123,25 +1232,26 @@ public java.lang.String getSourceBackup() { } } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceBackupBytes() { + public com.google.protobuf.ByteString getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 4) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (sourceCase_ == 4) { source_ = b; } @@ -1151,32 +1261,37 @@ public java.lang.String getSourceBackup() { } } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } + * * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup( - java.lang.String value) { + public Builder setSourceBackup(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 4; + throw new NullPointerException(); + } + sourceCase_ = 4; source_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -1188,29 +1303,31 @@ public Builder clearSourceBackup() { return this; } /** + * + * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackupBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 4; source_ = 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); } @@ -1220,12 +1337,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.RestoreInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.RestoreInstanceRequest) private static final com.google.cloud.filestore.v1beta1.RestoreInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.RestoreInstanceRequest(); } @@ -1234,27 +1351,27 @@ public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1269,6 +1386,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java index 55810b5d72b0..6e7c543b97f7 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java @@ -1,119 +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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface RestoreInstanceRequestOrBuilder extends +public interface RestoreInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.RestoreInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * string name = 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(); /** + * + * *
    * Required. Name of the file share in the Filestore instance that the snapshot
    * is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fileShare. */ java.lang.String getFileShare(); /** + * + * *
    * Required. Name of the file share in the Filestore instance that the snapshot
    * is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fileShare. */ - com.google.protobuf.ByteString - getFileShareBytes(); + com.google.protobuf.ByteString getFileShareBytes(); /** + * + * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceSnapshot field is set. */ boolean hasSourceSnapshot(); /** + * + * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return The sourceSnapshot. */ java.lang.String getSourceSnapshot(); /** + * + * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceSnapshot. */ - com.google.protobuf.ByteString - getSourceSnapshotBytes(); + com.google.protobuf.ByteString getSourceSnapshotBytes(); /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } + * * @return Whether the sourceBackup field is set. */ boolean hasSourceBackup(); /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } + * * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** + * + * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString - getSourceBackupBytes(); + com.google.protobuf.ByteString getSourceBackupBytes(); public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.SourceCase getSourceCase(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java similarity index 68% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java index 7b1b4af04b90..30430fc3c8e3 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * RevertInstanceRequest reverts the given instance's file share to the
  * specified snapshot.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.filestore.v1beta1.RevertInstanceRequest}
  */
-public final class RevertInstanceRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RevertInstanceRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.RevertInstanceRequest)
     RevertInstanceRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RevertInstanceRequest.newBuilder() to construct.
   private RevertInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RevertInstanceRequest() {
     name_ = "";
     targetSnapshotId_ = "";
@@ -27,38 +45,44 @@ private RevertInstanceRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RevertInstanceRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
+        .internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable
+    return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
+        .internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class, com.google.cloud.filestore.v1beta1.RevertInstanceRequest.Builder.class);
+            com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class,
+            com.google.cloud.filestore.v1beta1.RevertInstanceRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
    * The resource name of the instance, in the format
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,30 +91,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
    * The resource name of the instance, in the format
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -101,6 +127,8 @@ public java.lang.String getName() { public static final int TARGET_SNAPSHOT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object targetSnapshotId_; /** + * + * *
    * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
    * ID is the {snapshot_id} of the fully qualified name like
@@ -108,6 +136,7 @@ public java.lang.String getName() {
    * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetSnapshotId. */ @java.lang.Override @@ -116,14 +145,15 @@ public java.lang.String getTargetSnapshotId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetSnapshotId_ = s; return s; } } /** + * + * *
    * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
    * ID is the {snapshot_id} of the fully qualified name like
@@ -131,16 +161,15 @@ public java.lang.String getTargetSnapshotId() {
    * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetSnapshotId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetSnapshotIdBytes() { + public com.google.protobuf.ByteString getTargetSnapshotIdBytes() { java.lang.Object ref = targetSnapshotId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetSnapshotId_ = b; return b; } else { @@ -149,6 +178,7 @@ public java.lang.String getTargetSnapshotId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -160,8 +190,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -191,17 +220,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.filestore.v1beta1.RevertInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.RevertInstanceRequest other = (com.google.cloud.filestore.v1beta1.RevertInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.RevertInstanceRequest other = + (com.google.cloud.filestore.v1beta1.RevertInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getTargetSnapshotId() - .equals(other.getTargetSnapshotId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getTargetSnapshotId().equals(other.getTargetSnapshotId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,96 +251,104 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( - java.nio.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.filestore.v1beta1.RevertInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.RevertInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.RevertInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.RevertInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * RevertInstanceRequest reverts the given instance's file share to the
    * specified snapshot.
@@ -320,33 +356,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.filestore.v1beta1.RevertInstanceRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.RevertInstanceRequest)
       com.google.cloud.filestore.v1beta1.RevertInstanceRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
+          .internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable
+      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
+          .internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class, com.google.cloud.filestore.v1beta1.RevertInstanceRequest.Builder.class);
+              com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class,
+              com.google.cloud.filestore.v1beta1.RevertInstanceRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.filestore.v1beta1.RevertInstanceRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -358,9 +393,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
+          .internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor;
     }
 
     @java.lang.Override
@@ -379,7 +414,8 @@ public com.google.cloud.filestore.v1beta1.RevertInstanceRequest build() {
 
     @java.lang.Override
     public com.google.cloud.filestore.v1beta1.RevertInstanceRequest buildPartial() {
-      com.google.cloud.filestore.v1beta1.RevertInstanceRequest result = new com.google.cloud.filestore.v1beta1.RevertInstanceRequest(this);
+      com.google.cloud.filestore.v1beta1.RevertInstanceRequest result =
+          new com.google.cloud.filestore.v1beta1.RevertInstanceRequest(this);
       result.name_ = name_;
       result.targetSnapshotId_ = targetSnapshotId_;
       onBuilt();
@@ -390,38 +426,39 @@ public com.google.cloud.filestore.v1beta1.RevertInstanceRequest 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.filestore.v1beta1.RevertInstanceRequest) {
-        return mergeFrom((com.google.cloud.filestore.v1beta1.RevertInstanceRequest)other);
+        return mergeFrom((com.google.cloud.filestore.v1beta1.RevertInstanceRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -429,7 +466,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.filestore.v1beta1.RevertInstanceRequest other) {
-      if (other == com.google.cloud.filestore.v1beta1.RevertInstanceRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.filestore.v1beta1.RevertInstanceRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -464,22 +502,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              targetSnapshotId_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                targetSnapshotId_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -492,19 +533,23 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
      * The resource name of the instance, in the format
      * 
* - * string name = 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,21 +558,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
      * The resource name of the instance, in the format
      * 
* - * string name = 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 { @@ -535,57 +583,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
      * The resource name of the instance, in the format
      * 
* - * 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. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
      * The resource name of the instance, in the format
      * 
* - * string 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. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
      * The resource name of the instance, in the format
      * 
* - * 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; @@ -593,6 +654,8 @@ public Builder setNameBytes( private java.lang.Object targetSnapshotId_ = ""; /** + * + * *
      * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
      * ID is the {snapshot_id} of the fully qualified name like
@@ -600,13 +663,13 @@ public Builder setNameBytes(
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetSnapshotId. */ public java.lang.String getTargetSnapshotId() { java.lang.Object ref = targetSnapshotId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetSnapshotId_ = s; return s; @@ -615,6 +678,8 @@ public java.lang.String getTargetSnapshotId() { } } /** + * + * *
      * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
      * ID is the {snapshot_id} of the fully qualified name like
@@ -622,15 +687,14 @@ public java.lang.String getTargetSnapshotId() {
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetSnapshotId. */ - public com.google.protobuf.ByteString - getTargetSnapshotIdBytes() { + public com.google.protobuf.ByteString getTargetSnapshotIdBytes() { java.lang.Object ref = targetSnapshotId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetSnapshotId_ = b; return b; } else { @@ -638,6 +702,8 @@ public java.lang.String getTargetSnapshotId() { } } /** + * + * *
      * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
      * ID is the {snapshot_id} of the fully qualified name like
@@ -645,20 +711,22 @@ public java.lang.String getTargetSnapshotId() {
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The targetSnapshotId to set. * @return This builder for chaining. */ - public Builder setTargetSnapshotId( - java.lang.String value) { + public Builder setTargetSnapshotId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetSnapshotId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
      * ID is the {snapshot_id} of the fully qualified name like
@@ -666,15 +734,18 @@ public Builder setTargetSnapshotId(
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTargetSnapshotId() { - + targetSnapshotId_ = getDefaultInstance().getTargetSnapshotId(); onChanged(); return this; } /** + * + * *
      * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
      * ID is the {snapshot_id} of the fully qualified name like
@@ -682,23 +753,23 @@ public Builder clearTargetSnapshotId() {
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for targetSnapshotId to set. * @return This builder for chaining. */ - public Builder setTargetSnapshotIdBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetSnapshotIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetSnapshotId_ = 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); } @@ -708,12 +779,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.RevertInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.RevertInstanceRequest) private static final com.google.cloud.filestore.v1beta1.RevertInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.RevertInstanceRequest(); } @@ -722,27 +793,27 @@ public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevertInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevertInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -757,6 +828,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.RevertInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java index d2183850d8a0..305641a18e48 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface RevertInstanceRequestOrBuilder extends +public interface RevertInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.RevertInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
    * The resource name of the instance, in the format
    * 
* - * string name = 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. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
    * The resource name of the instance, in the format
    * 
* - * string name = 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(); /** + * + * *
    * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
    * ID is the {snapshot_id} of the fully qualified name like
@@ -37,10 +64,13 @@ public interface RevertInstanceRequestOrBuilder extends
    * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetSnapshotId. */ java.lang.String getTargetSnapshotId(); /** + * + * *
    * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
    * ID is the {snapshot_id} of the fully qualified name like
@@ -48,8 +78,8 @@ public interface RevertInstanceRequestOrBuilder extends
    * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetSnapshotId. */ - com.google.protobuf.ByteString - getTargetSnapshotIdBytes(); + com.google.protobuf.ByteString getTargetSnapshotIdBytes(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java similarity index 69% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java index 4a954547aea1..7a2e3d9d2abd 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * A Filestore share.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Share} */ -public final class Share extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Share extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.Share) ShareOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Share.newBuilder() to construct. private Share(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Share() { name_ = ""; mountName_ = ""; @@ -29,51 +47,54 @@ private Share() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Share(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Share_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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Share.class, com.google.cloud.filestore.v1beta1.Share.Builder.class); + com.google.cloud.filestore.v1beta1.Share.class, + com.google.cloud.filestore.v1beta1.Share.Builder.class); } /** + * + * *
    * The share state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Share.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State not set.
      * 
@@ -82,6 +103,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Share is being created.
      * 
@@ -90,6 +113,8 @@ public enum State */ CREATING(1), /** + * + * *
      * Share is ready for use.
      * 
@@ -98,6 +123,8 @@ public enum State */ READY(3), /** + * + * *
      * Share is being deleted.
      * 
@@ -109,6 +136,8 @@ public enum State ; /** + * + * *
      * State not set.
      * 
@@ -117,6 +146,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Share is being created.
      * 
@@ -125,6 +156,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * Share is ready for use.
      * 
@@ -133,6 +166,8 @@ public enum State */ public static final int READY_VALUE = 3; /** + * + * *
      * Share is being deleted.
      * 
@@ -141,7 +176,6 @@ public enum State */ public static final int DELETING_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -166,50 +200,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 3: return READY; - case 4: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 3: + return READY; + case 4: + 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.filestore.v1beta1.Share.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; @@ -229,12 +264,15 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the share, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -243,30 +281,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 resource name of the share, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -277,12 +315,15 @@ public java.lang.String getName() { public static final int MOUNT_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object mountName_; /** + * + * *
    * The mount name of the share. Must be 63 characters or less and consist of
    * uppercase or lowercase letters, numbers, and underscores.
    * 
* * string mount_name = 2; + * * @return The mountName. */ @java.lang.Override @@ -291,30 +332,30 @@ public java.lang.String getMountName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountName_ = s; return s; } } /** + * + * *
    * The mount name of the share. Must be 63 characters or less and consist of
    * uppercase or lowercase letters, numbers, and underscores.
    * 
* * string mount_name = 2; + * * @return The bytes for mountName. */ @java.lang.Override - public com.google.protobuf.ByteString - getMountNameBytes() { + public com.google.protobuf.ByteString getMountNameBytes() { java.lang.Object ref = mountName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountName_ = b; return b; } else { @@ -325,12 +366,15 @@ public java.lang.String getMountName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * A description of the share with 2048 characters or less. Requests with
    * longer descriptions will be rejected.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -339,30 +383,30 @@ 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; } } /** + * + * *
    * A description of the share with 2048 characters or less. Requests with
    * longer descriptions will be rejected.
    * 
* * string description = 3; + * * @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 { @@ -373,12 +417,15 @@ public java.lang.String getDescription() { public static final int CAPACITY_GB_FIELD_NUMBER = 4; private long capacityGb_; /** + * + * *
    * File share capacity in gigabytes (GB). Filestore defines 1 GB as
    * 1024^3 bytes. Must be greater than 0.
    * 
* * int64 capacity_gb = 4; + * * @return The capacityGb. */ @java.lang.Override @@ -389,6 +436,8 @@ public long getCapacityGb() { public static final int NFS_EXPORT_OPTIONS_FIELD_NUMBER = 5; private java.util.List nfsExportOptions_; /** + * + * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -397,10 +446,13 @@ public long getCapacityGb() {
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
    */
   @java.lang.Override
-  public java.util.List getNfsExportOptionsList() {
+  public java.util.List
+      getNfsExportOptionsList() {
     return nfsExportOptions_;
   }
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -409,11 +461,13 @@ public java.util.List getNf
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getNfsExportOptionsOrBuilderList() {
     return nfsExportOptions_;
   }
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -426,6 +480,8 @@ public int getNfsExportOptionsCount() {
     return nfsExportOptions_.size();
   }
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -438,6 +494,8 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(i
     return nfsExportOptions_.get(index);
   }
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -454,38 +512,55 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExport
   public static final int STATE_FIELD_NUMBER = 6;
   private int state_;
   /**
+   *
+   *
    * 
    * Output only. The share state.
    * 
* - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.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 share state.
    * 
* - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.filestore.v1beta1.Share.State getState() { + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Share.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Share.State result = com.google.cloud.filestore.v1beta1.Share.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Share.State result = + com.google.cloud.filestore.v1beta1.Share.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Share.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the share was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -493,11 +568,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the share was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -505,11 +584,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the share was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -517,24 +599,23 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } 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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_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.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Share_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_; } @@ -543,28 +624,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * 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(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -572,11 +655,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -584,16 +668,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; } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -601,12 +685,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(); } @@ -614,6 +697,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -625,8 +709,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -648,12 +731,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (createTime_ != null) { output.writeMessage(7, getCreateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 8); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); getUnknownFields().writeTo(output); } @@ -673,30 +752,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (capacityGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, capacityGb_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, capacityGb_); } for (int i = 0; i < nfsExportOptions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, nfsExportOptions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, nfsExportOptions_.get(i)); } if (state_ != com.google.cloud.filestore.v1beta1.Share.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); - } - 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, getCreateTime()); + } + 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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -706,31 +781,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.Share)) { return super.equals(obj); } com.google.cloud.filestore.v1beta1.Share other = (com.google.cloud.filestore.v1beta1.Share) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getMountName() - .equals(other.getMountName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (getCapacityGb() - != other.getCapacityGb()) return false; - if (!getNfsExportOptionsList() - .equals(other.getNfsExportOptionsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getMountName().equals(other.getMountName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getCapacityGb() != other.getCapacityGb()) return false; + if (!getNfsExportOptionsList().equals(other.getNfsExportOptionsList())) return false; if (state_ != other.state_) 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 (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -749,8 +817,7 @@ public int hashCode() { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCapacityGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb()); if (getNfsExportOptionsCount() > 0) { hash = (37 * hash) + NFS_EXPORT_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getNfsExportOptionsList().hashCode(); @@ -770,152 +837,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1beta1.Share parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1beta1.Share parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.Share parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.Share parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.Share parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.Share parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.Share parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.Share parseFrom(java.io.InputStream input) 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.filestore.v1beta1.Share parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Share parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.Share parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.Share parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.Share parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.Share parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.Share prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Filestore share.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Share} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.Share) com.google.cloud.filestore.v1beta1.ShareOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Share_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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Share.class, com.google.cloud.filestore.v1beta1.Share.Builder.class); + com.google.cloud.filestore.v1beta1.Share.class, + com.google.cloud.filestore.v1beta1.Share.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.Share.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -947,9 +1018,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Share_descriptor; } @java.lang.Override @@ -968,7 +1039,8 @@ public com.google.cloud.filestore.v1beta1.Share build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.Share buildPartial() { - com.google.cloud.filestore.v1beta1.Share result = new com.google.cloud.filestore.v1beta1.Share(this); + com.google.cloud.filestore.v1beta1.Share result = + new com.google.cloud.filestore.v1beta1.Share(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.mountName_ = mountName_; @@ -999,38 +1071,39 @@ public com.google.cloud.filestore.v1beta1.Share 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.filestore.v1beta1.Share) { - return mergeFrom((com.google.cloud.filestore.v1beta1.Share)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.Share) other); } else { super.mergeFrom(other); return this; @@ -1072,9 +1145,10 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Share other) { nfsExportOptionsBuilder_ = null; nfsExportOptions_ = other.nfsExportOptions_; bitField0_ = (bitField0_ & ~0x00000001); - nfsExportOptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNfsExportOptionsFieldBuilder() : null; + nfsExportOptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNfsExportOptionsFieldBuilder() + : null; } else { nfsExportOptionsBuilder_.addAllMessages(other.nfsExportOptions_); } @@ -1086,8 +1160,7 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Share other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1114,65 +1187,74 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - mountName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - capacityGb_ = input.readInt64(); - - break; - } // case 32 - case 42: { - com.google.cloud.filestore.v1beta1.NfsExportOptions m = - input.readMessage( - com.google.cloud.filestore.v1beta1.NfsExportOptions.parser(), - extensionRegistry); - if (nfsExportOptionsBuilder_ == null) { - ensureNfsExportOptionsIsMutable(); - nfsExportOptions_.add(m); - } else { - nfsExportOptionsBuilder_.addMessage(m); - } - break; - } // case 42 - case 48: { - state_ = input.readEnum(); - - break; - } // case 48 - case 58: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 58 - case 66: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + mountName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + capacityGb_ = input.readInt64(); + + break; + } // case 32 + case 42: + { + com.google.cloud.filestore.v1beta1.NfsExportOptions m = + input.readMessage( + com.google.cloud.filestore.v1beta1.NfsExportOptions.parser(), + extensionRegistry); + if (nfsExportOptionsBuilder_ == null) { + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.add(m); + } else { + nfsExportOptionsBuilder_.addMessage(m); + } + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + + break; + } // case 48 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1182,23 +1264,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the share, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1207,21 +1292,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the share, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1229,57 +1315,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the share, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the share, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
      * 
* * 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 resource name of the share, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + 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; @@ -1287,19 +1380,21 @@ public Builder setNameBytes( private java.lang.Object mountName_ = ""; /** + * + * *
      * The mount name of the share. Must be 63 characters or less and consist of
      * uppercase or lowercase letters, numbers, and underscores.
      * 
* * string mount_name = 2; + * * @return The mountName. */ public java.lang.String getMountName() { java.lang.Object ref = mountName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountName_ = s; return s; @@ -1308,21 +1403,22 @@ public java.lang.String getMountName() { } } /** + * + * *
      * The mount name of the share. Must be 63 characters or less and consist of
      * uppercase or lowercase letters, numbers, and underscores.
      * 
* * string mount_name = 2; + * * @return The bytes for mountName. */ - public com.google.protobuf.ByteString - getMountNameBytes() { + public com.google.protobuf.ByteString getMountNameBytes() { java.lang.Object ref = mountName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountName_ = b; return b; } else { @@ -1330,57 +1426,64 @@ public java.lang.String getMountName() { } } /** + * + * *
      * The mount name of the share. Must be 63 characters or less and consist of
      * uppercase or lowercase letters, numbers, and underscores.
      * 
* * string mount_name = 2; + * * @param value The mountName to set. * @return This builder for chaining. */ - public Builder setMountName( - java.lang.String value) { + public Builder setMountName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mountName_ = value; onChanged(); return this; } /** + * + * *
      * The mount name of the share. Must be 63 characters or less and consist of
      * uppercase or lowercase letters, numbers, and underscores.
      * 
* * string mount_name = 2; + * * @return This builder for chaining. */ public Builder clearMountName() { - + mountName_ = getDefaultInstance().getMountName(); onChanged(); return this; } /** + * + * *
      * The mount name of the share. Must be 63 characters or less and consist of
      * uppercase or lowercase letters, numbers, and underscores.
      * 
* * string mount_name = 2; + * * @param value The bytes for mountName to set. * @return This builder for chaining. */ - public Builder setMountNameBytes( - com.google.protobuf.ByteString value) { + public Builder setMountNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mountName_ = value; onChanged(); return this; @@ -1388,19 +1491,21 @@ public Builder setMountNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * A description of the share with 2048 characters or less. Requests with
      * longer descriptions will be rejected.
      * 
* * string description = 3; + * * @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; @@ -1409,21 +1514,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the share with 2048 characters or less. Requests with
      * longer descriptions will be rejected.
      * 
* * string description = 3; + * * @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 { @@ -1431,70 +1537,80 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the share with 2048 characters or less. Requests with
      * longer descriptions will be rejected.
      * 
* * string description = 3; + * * @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; } /** + * + * *
      * A description of the share with 2048 characters or less. Requests with
      * longer descriptions will be rejected.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A description of the share with 2048 characters or less. Requests with
      * longer descriptions will be rejected.
      * 
* * string description = 3; + * * @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 long capacityGb_ ; + private long capacityGb_; /** + * + * *
      * File share capacity in gigabytes (GB). Filestore defines 1 GB as
      * 1024^3 bytes. Must be greater than 0.
      * 
* * int64 capacity_gb = 4; + * * @return The capacityGb. */ @java.lang.Override @@ -1502,58 +1618,74 @@ public long getCapacityGb() { return capacityGb_; } /** + * + * *
      * File share capacity in gigabytes (GB). Filestore defines 1 GB as
      * 1024^3 bytes. Must be greater than 0.
      * 
* * int64 capacity_gb = 4; + * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** + * + * *
      * File share capacity in gigabytes (GB). Filestore defines 1 GB as
      * 1024^3 bytes. Must be greater than 0.
      * 
* * int64 capacity_gb = 4; + * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } private java.util.List nfsExportOptions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNfsExportOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nfsExportOptions_ = new java.util.ArrayList(nfsExportOptions_); + nfsExportOptions_ = + new java.util.ArrayList( + nfsExportOptions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> nfsExportOptionsBuilder_; + com.google.cloud.filestore.v1beta1.NfsExportOptions, + com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, + com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> + nfsExportOptionsBuilder_; /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ - public java.util.List getNfsExportOptionsList() { + public java.util.List + getNfsExportOptionsList() { if (nfsExportOptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(nfsExportOptions_); } else { @@ -1561,12 +1693,15 @@ public java.util.List getNf } } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ public int getNfsExportOptionsCount() { if (nfsExportOptionsBuilder_ == null) { @@ -1576,12 +1711,15 @@ public int getNfsExportOptionsCount() { } } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(int index) { if (nfsExportOptionsBuilder_ == null) { @@ -1591,12 +1729,15 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(i } } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ public Builder setNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions value) { @@ -1613,12 +1754,15 @@ public Builder setNfsExportOptions( return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ public Builder setNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1632,12 +1776,15 @@ public Builder setNfsExportOptions( return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ public Builder addNfsExportOptions(com.google.cloud.filestore.v1beta1.NfsExportOptions value) { if (nfsExportOptionsBuilder_ == null) { @@ -1653,12 +1800,15 @@ public Builder addNfsExportOptions(com.google.cloud.filestore.v1beta1.NfsExportO return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ public Builder addNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions value) { @@ -1675,12 +1825,15 @@ public Builder addNfsExportOptions( return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ public Builder addNfsExportOptions( com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1694,12 +1847,15 @@ public Builder addNfsExportOptions( return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ public Builder addNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1713,19 +1869,21 @@ public Builder addNfsExportOptions( return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ public Builder addAllNfsExportOptions( java.lang.Iterable values) { if (nfsExportOptionsBuilder_ == null) { ensureNfsExportOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nfsExportOptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsExportOptions_); onChanged(); } else { nfsExportOptionsBuilder_.addAllMessages(values); @@ -1733,12 +1891,15 @@ public Builder addAllNfsExportOptions( return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ public Builder clearNfsExportOptions() { if (nfsExportOptionsBuilder_ == null) { @@ -1751,12 +1912,15 @@ public Builder clearNfsExportOptions() { return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ public Builder removeNfsExportOptions(int index) { if (nfsExportOptionsBuilder_ == null) { @@ -1769,42 +1933,52 @@ public Builder removeNfsExportOptions(int index) { return this; } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder getNfsExportOptionsBuilder( int index) { return getNfsExportOptionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ - public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder( - int index) { + public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder + getNfsExportOptionsOrBuilder(int index) { if (nfsExportOptionsBuilder_ == null) { - return nfsExportOptions_.get(index); } else { + return nfsExportOptions_.get(index); + } else { return nfsExportOptionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ - public java.util.List - getNfsExportOptionsOrBuilderList() { + public java.util.List + getNfsExportOptionsOrBuilderList() { if (nfsExportOptionsBuilder_ != null) { return nfsExportOptionsBuilder_.getMessageOrBuilderList(); } else { @@ -1812,48 +1986,65 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExport } } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ - public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportOptionsBuilder() { - return getNfsExportOptionsFieldBuilder().addBuilder( - com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); + public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder + addNfsExportOptionsBuilder() { + return getNfsExportOptionsFieldBuilder() + .addBuilder(com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportOptionsBuilder( int index) { - return getNfsExportOptionsFieldBuilder().addBuilder( - index, com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); + return getNfsExportOptionsFieldBuilder() + .addBuilder( + index, com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); } /** + * + * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + * */ - public java.util.List - getNfsExportOptionsBuilderList() { + public java.util.List + getNfsExportOptionsBuilderList() { return getNfsExportOptionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> + com.google.cloud.filestore.v1beta1.NfsExportOptions, + com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, + com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> getNfsExportOptionsFieldBuilder() { if (nfsExportOptionsBuilder_ == null) { - nfsExportOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder>( + nfsExportOptionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.NfsExportOptions, + com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, + com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder>( nfsExportOptions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1865,51 +2056,73 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportO private int state_ = 0; /** + * + * *
      * Output only. The share state.
      * 
* - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.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 share state.
      * 
* - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.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 share state.
      * 
* - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Share.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Share.State result = com.google.cloud.filestore.v1beta1.Share.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Share.State result = + com.google.cloud.filestore.v1beta1.Share.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Share.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The share state.
      * 
* - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1917,21 +2130,26 @@ public Builder setState(com.google.cloud.filestore.v1beta1.Share.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The share state.
      * 
* - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1939,39 +2157,58 @@ public Builder clearState() { 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 when the share was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the share was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the share was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1987,14 +2224,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the share was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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(); @@ -2005,17 +2245,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the share was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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; } @@ -2027,11 +2271,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the share was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2045,69 +2293,84 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the share was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the share was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the share was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } - private 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(); @@ -2119,28 +2382,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * 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(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2148,11 +2413,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2160,16 +2426,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; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2177,12 +2444,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(); } @@ -2190,69 +2456,66 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * 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(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * 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; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * 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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2262,12 +2525,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.Share) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.Share) private static final com.google.cloud.filestore.v1beta1.Share DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.Share(); } @@ -2276,27 +2539,27 @@ public static com.google.cloud.filestore.v1beta1.Share getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Share parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Share parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2311,6 +2574,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.Share getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java similarity index 74% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java index 86c3e91b5eac..e13cade88f90 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java @@ -1,90 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ShareOrBuilder extends +public interface ShareOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.Share) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the share, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the share, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The mount name of the share. Must be 63 characters or less and consist of
    * uppercase or lowercase letters, numbers, and underscores.
    * 
* * string mount_name = 2; + * * @return The mountName. */ java.lang.String getMountName(); /** + * + * *
    * The mount name of the share. Must be 63 characters or less and consist of
    * uppercase or lowercase letters, numbers, and underscores.
    * 
* * string mount_name = 2; + * * @return The bytes for mountName. */ - com.google.protobuf.ByteString - getMountNameBytes(); + com.google.protobuf.ByteString getMountNameBytes(); /** + * + * *
    * A description of the share with 2048 characters or less. Requests with
    * longer descriptions will be rejected.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A description of the share with 2048 characters or less. Requests with
    * longer descriptions will be rejected.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * File share capacity in gigabytes (GB). Filestore defines 1 GB as
    * 1024^3 bytes. Must be greater than 0.
    * 
* * int64 capacity_gb = 4; + * * @return The capacityGb. */ long getCapacityGb(); /** + * + * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -92,9 +128,10 @@ public interface ShareOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
    */
-  java.util.List 
-      getNfsExportOptionsList();
+  java.util.List getNfsExportOptionsList();
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -104,6 +141,8 @@ public interface ShareOrBuilder extends
    */
   com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(int index);
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -113,6 +152,8 @@ public interface ShareOrBuilder extends
    */
   int getNfsExportOptionsCount();
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -120,9 +161,11 @@ public interface ShareOrBuilder extends
    *
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
    */
-  java.util.List 
+  java.util.List
       getNfsExportOptionsOrBuilderList();
   /**
+   *
+   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -134,52 +177,75 @@ com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExportOptions
       int index);
 
   /**
+   *
+   *
    * 
    * Output only. The share state.
    * 
* - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The share state.
    * 
* - * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.filestore.v1beta1.Share.State getState(); /** + * + * *
    * Output only. The time when the share was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the share was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the share was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -188,30 +254,31 @@ com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExportOptions */ int getLabelsCount(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * 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(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 8; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -220,18 +287,18 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 8; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java similarity index 65% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java index 72494c37924a..d98e59966851 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * A Filestore snapshot.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Snapshot} */ -public final class Snapshot extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Snapshot extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.Snapshot) SnapshotOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Snapshot.newBuilder() to construct. private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Snapshot() { name_ = ""; description_ = ""; @@ -27,51 +45,54 @@ private Snapshot() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Snapshot(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Snapshot_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 5: 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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Snapshot.class, com.google.cloud.filestore.v1beta1.Snapshot.Builder.class); + com.google.cloud.filestore.v1beta1.Snapshot.class, + com.google.cloud.filestore.v1beta1.Snapshot.Builder.class); } /** + * + * *
    * The snapshot state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Snapshot.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State not set.
      * 
@@ -80,6 +101,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Snapshot is being created.
      * 
@@ -88,6 +111,8 @@ public enum State */ CREATING(1), /** + * + * *
      * Snapshot is available for use.
      * 
@@ -96,6 +121,8 @@ public enum State */ READY(3), /** + * + * *
      * Snapshot is being deleted.
      * 
@@ -107,6 +134,8 @@ public enum State ; /** + * + * *
      * State not set.
      * 
@@ -115,6 +144,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Snapshot is being created.
      * 
@@ -123,6 +154,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * Snapshot is available for use.
      * 
@@ -131,6 +164,8 @@ public enum State */ public static final int READY_VALUE = 3; /** + * + * *
      * Snapshot is being deleted.
      * 
@@ -139,7 +174,6 @@ public enum State */ public static final int DELETING_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -164,50 +198,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 3: return READY; - case 4: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 3: + return READY; + case 4: + 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.filestore.v1beta1.Snapshot.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; @@ -227,12 +262,15 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -241,30 +279,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 resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -275,12 +313,15 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * A description of the snapshot with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -289,30 +330,30 @@ 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; } } /** + * + * *
    * A description of the snapshot with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; + * * @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 { @@ -323,38 +364,55 @@ public java.lang.String getDescription() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
    * Output only. The snapshot state.
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.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 snapshot state.
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.filestore.v1beta1.Snapshot.State getState() { + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Snapshot.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Snapshot.State result = com.google.cloud.filestore.v1beta1.Snapshot.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Snapshot.State result = + com.google.cloud.filestore.v1beta1.Snapshot.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Snapshot.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -362,11 +420,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -374,11 +436,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -386,24 +451,23 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; + 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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_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.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Snapshot_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_; } @@ -412,28 +476,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - @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(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -441,11 +507,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -453,16 +520,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @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; } /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -470,12 +537,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5; */ @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(); } @@ -485,11 +551,14 @@ public java.lang.String getLabelsOrThrow( public static final int FILESYSTEM_USED_BYTES_FIELD_NUMBER = 12; private long filesystemUsedBytes_; /** + * + * *
    * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
    * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The filesystemUsedBytes. */ @java.lang.Override @@ -498,6 +567,7 @@ public long getFilesystemUsedBytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -509,8 +579,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -523,12 +592,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (createTime_ != null) { output.writeMessage(4, getCreateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); if (filesystemUsedBytes_ != 0L) { output.writeInt64(12, filesystemUsedBytes_); } @@ -548,26 +613,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1beta1.Snapshot.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); - } - 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(5, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + 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(5, labels__); } if (filesystemUsedBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(12, filesystemUsedBytes_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, filesystemUsedBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -577,27 +639,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.filestore.v1beta1.Snapshot)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.Snapshot other = (com.google.cloud.filestore.v1beta1.Snapshot) obj; + com.google.cloud.filestore.v1beta1.Snapshot other = + (com.google.cloud.filestore.v1beta1.Snapshot) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (state_ != other.state_) 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 (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (getFilesystemUsedBytes() - != other.getFilesystemUsedBytes()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getFilesystemUsedBytes() != other.getFilesystemUsedBytes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -624,159 +682,162 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + FILESYSTEM_USED_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFilesystemUsedBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFilesystemUsedBytes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom(java.io.InputStream input) 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.filestore.v1beta1.Snapshot parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.Snapshot parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.Snapshot parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.Snapshot parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.Snapshot prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Filestore snapshot.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Snapshot} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.Snapshot) com.google.cloud.filestore.v1beta1.SnapshotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: 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 5: 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.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Snapshot.class, com.google.cloud.filestore.v1beta1.Snapshot.Builder.class); + com.google.cloud.filestore.v1beta1.Snapshot.class, + com.google.cloud.filestore.v1beta1.Snapshot.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.Snapshot.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -799,9 +860,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; } @java.lang.Override @@ -820,7 +881,8 @@ public com.google.cloud.filestore.v1beta1.Snapshot build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.Snapshot buildPartial() { - com.google.cloud.filestore.v1beta1.Snapshot result = new com.google.cloud.filestore.v1beta1.Snapshot(this); + com.google.cloud.filestore.v1beta1.Snapshot result = + new com.google.cloud.filestore.v1beta1.Snapshot(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -841,38 +903,39 @@ public com.google.cloud.filestore.v1beta1.Snapshot 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.filestore.v1beta1.Snapshot) { - return mergeFrom((com.google.cloud.filestore.v1beta1.Snapshot)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.Snapshot) other); } else { super.mergeFrom(other); return this; @@ -895,8 +958,7 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Snapshot other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.getFilesystemUsedBytes() != 0L) { setFilesystemUsedBytes(other.getFilesystemUsedBytes()); } @@ -926,47 +988,54 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - state_ = input.readEnum(); - - break; - } // case 24 - case 34: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 42 - case 96: { - filesystemUsedBytes_ = input.readInt64(); - - break; - } // case 96 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + + break; + } // case 24 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 42 + case 96: + { + filesystemUsedBytes_ = input.readInt64(); + + break; + } // case 96 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -976,23 +1045,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1001,21 +1073,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1023,57 +1096,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * 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 resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + 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; @@ -1081,19 +1161,21 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @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; @@ -1102,21 +1184,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @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 { @@ -1124,57 +1207,64 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @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; } /** + * + * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; + * * @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; @@ -1182,51 +1272,75 @@ public Builder setDescriptionBytes( private int state_ = 0; /** + * + * *
      * Output only. The snapshot state.
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.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 snapshot state.
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.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 snapshot state.
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Snapshot.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Snapshot.State result = com.google.cloud.filestore.v1beta1.Snapshot.State.valueOf(state_); - return result == null ? com.google.cloud.filestore.v1beta1.Snapshot.State.UNRECOGNIZED : result; + com.google.cloud.filestore.v1beta1.Snapshot.State result = + com.google.cloud.filestore.v1beta1.Snapshot.State.valueOf(state_); + return result == null + ? com.google.cloud.filestore.v1beta1.Snapshot.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The snapshot state.
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1234,21 +1348,26 @@ public Builder setState(com.google.cloud.filestore.v1beta1.Snapshot.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The snapshot state.
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1256,39 +1375,58 @@ public Builder clearState() { 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 when the snapshot was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time when the snapshot was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the snapshot was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1304,14 +1442,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the snapshot was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1322,17 +1463,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the snapshot was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1344,11 +1489,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the snapshot was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1362,69 +1511,84 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the snapshot was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the snapshot was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time when the snapshot was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } - 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(); @@ -1436,28 +1600,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - @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(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1465,11 +1631,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1477,16 +1644,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @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; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1494,12 +1662,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5; */ @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(); } @@ -1507,74 +1674,74 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - - 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(); } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - 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; } /** + * + * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - - 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 long filesystemUsedBytes_ ; + private long filesystemUsedBytes_; /** + * + * *
      * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
      * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The filesystemUsedBytes. */ @java.lang.Override @@ -1582,37 +1749,43 @@ public long getFilesystemUsedBytes() { return filesystemUsedBytes_; } /** + * + * *
      * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
      * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The filesystemUsedBytes to set. * @return This builder for chaining. */ public Builder setFilesystemUsedBytes(long value) { - + filesystemUsedBytes_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
      * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearFilesystemUsedBytes() { - + filesystemUsedBytes_ = 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); } @@ -1622,12 +1795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.Snapshot) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.Snapshot) private static final com.google.cloud.filestore.v1beta1.Snapshot DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.Snapshot(); } @@ -1636,27 +1809,27 @@ public static com.google.cloud.filestore.v1beta1.Snapshot getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Snapshot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Snapshot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1671,6 +1844,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.Snapshot getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java similarity index 68% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java index 78e1e0397201..f2176d6460f5 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java @@ -1,103 +1,152 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface SnapshotOrBuilder extends +public interface SnapshotOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.Snapshot) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A description of the snapshot with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A description of the snapshot with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The snapshot state.
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The snapshot state.
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.filestore.v1beta1.Snapshot.State getState(); /** + * + * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -106,30 +155,31 @@ public interface SnapshotOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - 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(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
@@ -138,27 +188,30 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
    * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The filesystemUsedBytes. */ long getFilesystemUsedBytes(); diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java similarity index 65% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java index 9378610c9c25..2a86c38d221a 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java @@ -1,60 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * UpdateBackupRequest updates description and/or labels for a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, com.google.cloud.filestore.v1beta1.UpdateBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, + com.google.cloud.filestore.v1beta1.UpdateBackupRequest.Builder.class); } public static final int BACKUP_FIELD_NUMBER = 1; private com.google.cloud.filestore.v1beta1.Backup backup_; /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backup field is set. */ @java.lang.Override @@ -62,23 +85,34 @@ public boolean hasBackup() { return backup_ != null; } /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup getBackup() { - return backup_ == null ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; + return backup_ == null + ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() + : backup_; } /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { @@ -88,12 +122,16 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -101,12 +139,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -114,12 +156,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -127,6 +172,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +184,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (backup_ != null) { output.writeMessage(1, getBackup()); } @@ -156,12 +201,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -171,22 +214,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.filestore.v1beta1.UpdateBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.UpdateBackupRequest other = (com.google.cloud.filestore.v1beta1.UpdateBackupRequest) obj; + com.google.cloud.filestore.v1beta1.UpdateBackupRequest other = + (com.google.cloud.filestore.v1beta1.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -213,129 +255,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.UpdateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.UpdateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.UpdateBackupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.UpdateBackupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.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.filestore.v1beta1.UpdateBackupRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.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; } /** + * + * *
    * UpdateBackupRequest updates description and/or labels for a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.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.filestore.v1beta1.UpdateBackupRequest) com.google.cloud.filestore.v1beta1.UpdateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, com.google.cloud.filestore.v1beta1.UpdateBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, + com.google.cloud.filestore.v1beta1.UpdateBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.UpdateBackupRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +404,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; } @java.lang.Override @@ -376,7 +425,8 @@ public com.google.cloud.filestore.v1beta1.UpdateBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.UpdateBackupRequest buildPartial() { - com.google.cloud.filestore.v1beta1.UpdateBackupRequest result = new com.google.cloud.filestore.v1beta1.UpdateBackupRequest(this); + com.google.cloud.filestore.v1beta1.UpdateBackupRequest result = + new com.google.cloud.filestore.v1beta1.UpdateBackupRequest(this); if (backupBuilder_ == null) { result.backup_ = backup_; } else { @@ -395,38 +445,39 @@ public com.google.cloud.filestore.v1beta1.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.filestore.v1beta1.UpdateBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateBackupRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateBackupRequest) other); } else { super.mergeFrom(other); return this; @@ -434,7 +485,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.UpdateBackupRequest other) { - if (other == com.google.cloud.filestore.v1beta1.UpdateBackupRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.UpdateBackupRequest.getDefaultInstance()) + return this; if (other.hasBackup()) { mergeBackup(other.getBackup()); } @@ -467,26 +519,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getBackupFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -499,39 +550,58 @@ public Builder mergeFrom( private com.google.cloud.filestore.v1beta1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> backupBuilder_; + com.google.cloud.filestore.v1beta1.Backup, + com.google.cloud.filestore.v1beta1.Backup.Builder, + com.google.cloud.filestore.v1beta1.BackupOrBuilder> + backupBuilder_; /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.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 [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ public com.google.cloud.filestore.v1beta1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; + return backup_ == null + ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() + : backup_; } else { return backupBuilder_.getMessage(); } } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup value) { if (backupBuilder_ == null) { @@ -547,14 +617,17 @@ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup value) { return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBackup( - com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) { + public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -565,17 +638,23 @@ public Builder setBackup( return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBackup(com.google.cloud.filestore.v1beta1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.filestore.v1beta1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); + com.google.cloud.filestore.v1beta1.Backup.newBuilder(backup_) + .mergeFrom(value) + .buildPartial(); } else { backup_ = value; } @@ -587,11 +666,15 @@ public Builder mergeBackup(com.google.cloud.filestore.v1beta1.Backup value) { return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBackup() { if (backupBuilder_ == null) { @@ -605,48 +688,64 @@ public Builder clearBackup() { return this; } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null ? - com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; + return backup_ == null + ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() + : backup_; } } /** + * + * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> + com.google.cloud.filestore.v1beta1.Backup, + com.google.cloud.filestore.v1beta1.Backup.Builder, + com.google.cloud.filestore.v1beta1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder>( - getBackup(), - getParentForChildren(), - isClean()); + backupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Backup, + com.google.cloud.filestore.v1beta1.Backup.Builder, + com.google.cloud.filestore.v1beta1.BackupOrBuilder>( + getBackup(), getParentForChildren(), isClean()); backup_ = null; } return backupBuilder_; @@ -654,42 +753,58 @@ public com.google.cloud.filestore.v1beta1.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_; /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -705,15 +820,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -724,18 +841,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ 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; } @@ -747,12 +867,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -766,58 +889,71 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -827,12 +963,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.UpdateBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.UpdateBackupRequest) private static final com.google.cloud.filestore.v1beta1.UpdateBackupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.UpdateBackupRequest(); } @@ -841,27 +977,27 @@ public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest getDefaultI 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -876,6 +1012,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.UpdateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java index e08fe71d8455..dd5cc07160c0 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java @@ -1,66 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface UpdateBackupRequestOrBuilder extends +public interface UpdateBackupRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.UpdateBackupRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backup field is set. */ boolean hasBackup(); /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ com.google.cloud.filestore.v1beta1.Backup getBackup(); /** + * + * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder(); /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java similarity index 67% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java index ac8bce9e9a4f..a0246d44b722 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java @@ -1,55 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * UpdateInstanceRequest updates the settings of an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateInstanceRequest() { - } + + private UpdateInstanceRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -59,7 +79,9 @@ protected java.lang.Object newInstance(
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -67,6 +89,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -76,7 +100,9 @@ public boolean hasUpdateMask() {
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -84,6 +110,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -93,7 +121,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -103,11 +132,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int INSTANCE_FIELD_NUMBER = 2; private com.google.cloud.filestore.v1beta1.Instance instance_; /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ @java.lang.Override @@ -115,23 +149,34 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance getInstance() { - return instance_ == null ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() + : instance_; } /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { @@ -139,6 +184,7 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,8 +196,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -168,12 +213,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInstance()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -183,22 +226,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.filestore.v1beta1.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest other = (com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest other = + (com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance() - .equals(other.getInstance())) return false; + if (!getInstance().equals(other.getInstance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -225,129 +267,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( - java.nio.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.filestore.v1beta1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.UpdateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.UpdateInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * UpdateInstanceRequest updates the settings of an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.UpdateInstanceRequest) com.google.cloud.filestore.v1beta1.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -367,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -388,7 +437,8 @@ public com.google.cloud.filestore.v1beta1.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.UpdateInstanceRequest buildPartial() { - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest result = new com.google.cloud.filestore.v1beta1.UpdateInstanceRequest(this); + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest result = + new com.google.cloud.filestore.v1beta1.UpdateInstanceRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -407,38 +457,39 @@ public com.google.cloud.filestore.v1beta1.UpdateInstanceRequest 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.filestore.v1beta1.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateInstanceRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -446,7 +497,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.UpdateInstanceRequest other) { - if (other == com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -479,26 +531,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getInstanceFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -511,8 +562,13 @@ public Builder mergeFrom( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -522,13 +578,17 @@ public Builder mergeFrom(
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -538,17 +598,23 @@ public boolean hasUpdateMask() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -558,7 +624,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -574,6 +641,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -583,10 +652,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -597,6 +666,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -606,13 +677,14 @@ public Builder setUpdateMask(
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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; } @@ -624,6 +696,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -633,7 +707,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -647,6 +722,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -656,14 +733,17 @@ public Builder clearUpdateMask() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -673,17 +753,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -693,17 +777,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -711,39 +799,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.filestore.v1beta1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> instanceBuilder_; + com.google.cloud.filestore.v1beta1.Instance, + com.google.cloud.filestore.v1beta1.Instance.Builder, + com.google.cloud.filestore.v1beta1.InstanceOrBuilder> + instanceBuilder_; /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ public com.google.cloud.filestore.v1beta1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance(com.google.cloud.filestore.v1beta1.Instance value) { if (instanceBuilder_ == null) { @@ -759,11 +866,15 @@ public Builder setInstance(com.google.cloud.filestore.v1beta1.Instance value) { return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance( com.google.cloud.filestore.v1beta1.Instance.Builder builderForValue) { @@ -777,17 +888,23 @@ public Builder setInstance( return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstance(com.google.cloud.filestore.v1beta1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.filestore.v1beta1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.filestore.v1beta1.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -799,11 +916,15 @@ public Builder mergeInstance(com.google.cloud.filestore.v1beta1.Instance value) return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -817,55 +938,71 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> + com.google.cloud.filestore.v1beta1.Instance, + com.google.cloud.filestore.v1beta1.Instance.Builder, + com.google.cloud.filestore.v1beta1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Instance, + com.google.cloud.filestore.v1beta1.Instance.Builder, + com.google.cloud.filestore.v1beta1.InstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); instance_ = null; } return instanceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -875,12 +1012,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.UpdateInstanceRequest) private static final com.google.cloud.filestore.v1beta1.UpdateInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.UpdateInstanceRequest(); } @@ -889,27 +1026,27 @@ public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -924,6 +1061,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java index 64763ee21151..ab4b44b8e29c 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface UpdateInstanceRequestOrBuilder extends +public interface UpdateInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -17,11 +35,15 @@ public interface UpdateInstanceRequestOrBuilder extends
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -31,11 +53,15 @@ public interface UpdateInstanceRequestOrBuilder extends
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -45,34 +71,49 @@ public interface UpdateInstanceRequestOrBuilder extends
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ com.google.cloud.filestore.v1beta1.Instance getInstance(); /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java similarity index 67% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java index 59294230de77..3eb418eeaf3a 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java @@ -1,61 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * UpdateShareRequest updates the settings of a share.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateShareRequest} */ -public final class UpdateShareRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateShareRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.UpdateShareRequest) UpdateShareRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateShareRequest.newBuilder() to construct. private UpdateShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateShareRequest() { - } + + private UpdateShareRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, com.google.cloud.filestore.v1beta1.UpdateShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, + com.google.cloud.filestore.v1beta1.UpdateShareRequest.Builder.class); } public static final int SHARE_FIELD_NUMBER = 1; private com.google.cloud.filestore.v1beta1.Share share_; /** + * + * *
    * Required. A share resource.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the share field is set. */ @java.lang.Override @@ -63,12 +86,17 @@ public boolean hasShare() { return share_ != null; } /** + * + * *
    * Required. A share resource.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The share. */ @java.lang.Override @@ -76,12 +104,16 @@ public com.google.cloud.filestore.v1beta1.Share getShare() { return share_ == null ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; } /** + * + * *
    * Required. A share resource.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { @@ -91,6 +123,8 @@ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in this
    * field.
@@ -101,7 +135,9 @@ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() {
    * * "nfs_export_options"
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -109,6 +145,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in this
    * field.
@@ -119,7 +157,9 @@ public boolean hasUpdateMask() {
    * * "nfs_export_options"
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -127,6 +167,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in this
    * field.
@@ -137,7 +179,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * * "nfs_export_options"
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -145,6 +188,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (share_ != null) { output.writeMessage(1, getShare()); } @@ -174,12 +217,10 @@ public int getSerializedSize() { size = 0; if (share_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getShare()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getShare()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -189,22 +230,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.filestore.v1beta1.UpdateShareRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.UpdateShareRequest other = (com.google.cloud.filestore.v1beta1.UpdateShareRequest) obj; + com.google.cloud.filestore.v1beta1.UpdateShareRequest other = + (com.google.cloud.filestore.v1beta1.UpdateShareRequest) obj; if (hasShare() != other.hasShare()) return false; if (hasShare()) { - if (!getShare() - .equals(other.getShare())) return false; + if (!getShare().equals(other.getShare())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -231,129 +271,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( - java.nio.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.filestore.v1beta1.UpdateShareRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.UpdateShareRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.UpdateShareRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.UpdateShareRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * UpdateShareRequest updates the settings of a share.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateShareRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.UpdateShareRequest) com.google.cloud.filestore.v1beta1.UpdateShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, com.google.cloud.filestore.v1beta1.UpdateShareRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, + com.google.cloud.filestore.v1beta1.UpdateShareRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.UpdateShareRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; } @java.lang.Override @@ -394,7 +441,8 @@ public com.google.cloud.filestore.v1beta1.UpdateShareRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.UpdateShareRequest buildPartial() { - com.google.cloud.filestore.v1beta1.UpdateShareRequest result = new com.google.cloud.filestore.v1beta1.UpdateShareRequest(this); + com.google.cloud.filestore.v1beta1.UpdateShareRequest result = + new com.google.cloud.filestore.v1beta1.UpdateShareRequest(this); if (shareBuilder_ == null) { result.share_ = share_; } else { @@ -413,38 +461,39 @@ public com.google.cloud.filestore.v1beta1.UpdateShareRequest 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.filestore.v1beta1.UpdateShareRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateShareRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateShareRequest) other); } else { super.mergeFrom(other); return this; @@ -452,7 +501,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.UpdateShareRequest other) { - if (other == com.google.cloud.filestore.v1beta1.UpdateShareRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.UpdateShareRequest.getDefaultInstance()) + return this; if (other.hasShare()) { mergeShare(other.getShare()); } @@ -485,26 +535,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getShareFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getShareFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -517,42 +566,61 @@ public Builder mergeFrom( private com.google.cloud.filestore.v1beta1.Share share_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> shareBuilder_; + com.google.cloud.filestore.v1beta1.Share, + com.google.cloud.filestore.v1beta1.Share.Builder, + com.google.cloud.filestore.v1beta1.ShareOrBuilder> + shareBuilder_; /** + * + * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the share field is set. */ public boolean hasShare() { return shareBuilder_ != null || share_ != null; } /** + * + * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The share. */ public com.google.cloud.filestore.v1beta1.Share getShare() { if (shareBuilder_ == null) { - return share_ == null ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; + return share_ == null + ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() + : share_; } else { return shareBuilder_.getMessage(); } } /** + * + * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setShare(com.google.cloud.filestore.v1beta1.Share value) { if (shareBuilder_ == null) { @@ -568,15 +636,18 @@ public Builder setShare(com.google.cloud.filestore.v1beta1.Share value) { return this; } /** + * + * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setShare( - com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { + public Builder setShare(com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { if (shareBuilder_ == null) { share_ = builderForValue.build(); onChanged(); @@ -587,18 +658,24 @@ public Builder setShare( return this; } /** + * + * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeShare(com.google.cloud.filestore.v1beta1.Share value) { if (shareBuilder_ == null) { if (share_ != null) { share_ = - com.google.cloud.filestore.v1beta1.Share.newBuilder(share_).mergeFrom(value).buildPartial(); + com.google.cloud.filestore.v1beta1.Share.newBuilder(share_) + .mergeFrom(value) + .buildPartial(); } else { share_ = value; } @@ -610,12 +687,16 @@ public Builder mergeShare(com.google.cloud.filestore.v1beta1.Share value) { return this; } /** + * + * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearShare() { if (shareBuilder_ == null) { @@ -629,51 +710,67 @@ public Builder clearShare() { return this; } /** + * + * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.Share.Builder getShareBuilder() { - + onChanged(); return getShareFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { if (shareBuilder_ != null) { return shareBuilder_.getMessageOrBuilder(); } else { - return share_ == null ? - com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; + return share_ == null + ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() + : share_; } } /** + * + * *
      * Required. A share resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> + com.google.cloud.filestore.v1beta1.Share, + com.google.cloud.filestore.v1beta1.Share.Builder, + com.google.cloud.filestore.v1beta1.ShareOrBuilder> getShareFieldBuilder() { if (shareBuilder_ == null) { - shareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder>( - getShare(), - getParentForChildren(), - isClean()); + shareBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, + com.google.cloud.filestore.v1beta1.Share.Builder, + com.google.cloud.filestore.v1beta1.ShareOrBuilder>( + getShare(), getParentForChildren(), isClean()); share_ = null; } return shareBuilder_; @@ -681,8 +778,13 @@ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -693,13 +795,17 @@ public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -710,17 +816,23 @@ public boolean hasUpdateMask() {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -731,7 +843,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -747,6 +860,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -757,10 +872,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -771,6 +886,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -781,13 +898,14 @@ public Builder setUpdateMask(
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ 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; } @@ -799,6 +917,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -809,7 +929,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -823,6 +944,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -833,14 +956,17 @@ public Builder clearUpdateMask() {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -851,17 +977,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Mask of fields to update. At least one path must be supplied in this
      * field.
@@ -872,24 +1002,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * * "nfs_export_options"
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -899,12 +1033,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.UpdateShareRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.UpdateShareRequest) private static final com.google.cloud.filestore.v1beta1.UpdateShareRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.UpdateShareRequest(); } @@ -913,27 +1047,27 @@ public static com.google.cloud.filestore.v1beta1.UpdateShareRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateShareRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,6 +1082,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.UpdateShareRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java index bd3761e15bc2..3f6d94b25bf1 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.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/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface UpdateShareRequestOrBuilder extends +public interface UpdateShareRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.UpdateShareRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. A share resource.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the share field is set. */ boolean hasShare(); /** + * + * *
    * Required. A share resource.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The share. */ com.google.cloud.filestore.v1beta1.Share getShare(); /** + * + * *
    * Required. A share resource.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder(); /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in this
    * field.
@@ -48,11 +80,15 @@ public interface UpdateShareRequestOrBuilder extends
    * * "nfs_export_options"
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in this
    * field.
@@ -63,11 +99,15 @@ public interface UpdateShareRequestOrBuilder extends
    * * "nfs_export_options"
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask of fields to update. At least one path must be supplied in this
    * field.
@@ -78,7 +118,8 @@ public interface UpdateShareRequestOrBuilder extends
    * * "nfs_export_options"
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java similarity index 65% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java index fee35b60fc13..9b431bc6598e 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java @@ -1,61 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** + * + * *
  * UpdateSnapshotRequest updates description and/or labels for a snapshot.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateSnapshotRequest} */ -public final class UpdateSnapshotRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) UpdateSnapshotRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSnapshotRequest.newBuilder() to construct. private UpdateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSnapshotRequest() { - } + + private UpdateSnapshotRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSnapshotRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -63,12 +85,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -76,12 +102,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -91,11 +120,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SNAPSHOT_FIELD_NUMBER = 2; private com.google.cloud.filestore.v1beta1.Snapshot snapshot_; /** + * + * *
    * Required. A snapshot resource
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the snapshot field is set. */ @java.lang.Override @@ -103,23 +137,34 @@ public boolean hasSnapshot() { return snapshot_ != null; } /** + * + * *
    * Required. A snapshot resource
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The snapshot. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot() { - return snapshot_ == null ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; + return snapshot_ == null + ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() + : snapshot_; } /** + * + * *
    * Required. A snapshot resource
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder() { @@ -127,6 +172,7 @@ public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +184,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -156,12 +201,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (snapshot_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSnapshot()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSnapshot()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -171,22 +214,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.filestore.v1beta1.UpdateSnapshotRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest other = (com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest) obj; + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest other = + (com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasSnapshot() != other.hasSnapshot()) return false; if (hasSnapshot()) { - if (!getSnapshot() - .equals(other.getSnapshot())) return false; + if (!getSnapshot().equals(other.getSnapshot())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -213,129 +255,136 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( - java.nio.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.filestore.v1beta1.UpdateSnapshotRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.filestore.v1beta1.UpdateSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * UpdateSnapshotRequest updates description and/or labels for a snapshot.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateSnapshotRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) com.google.cloud.filestore.v1beta1.UpdateSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +404,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; } @java.lang.Override @@ -376,7 +425,8 @@ public com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest buildPartial() { - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest result = new com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest(this); + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest result = + new com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -395,38 +445,39 @@ public com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest 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.filestore.v1beta1.UpdateSnapshotRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest)other); + return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest) other); } else { super.mergeFrom(other); return this; @@ -434,7 +485,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest other) { - if (other == com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -467,26 +519,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getSnapshotFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getSnapshotFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -499,42 +550,58 @@ public Builder mergeFrom( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -550,15 +617,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -569,18 +638,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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; } @@ -592,12 +664,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -611,51 +686,64 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -663,39 +751,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.filestore.v1beta1.Snapshot snapshot_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> snapshotBuilder_; + com.google.cloud.filestore.v1beta1.Snapshot, + com.google.cloud.filestore.v1beta1.Snapshot.Builder, + com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> + snapshotBuilder_; /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { return snapshotBuilder_ != null || snapshot_ != null; } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The snapshot. */ public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot() { if (snapshotBuilder_ == null) { - return snapshot_ == null ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; + return snapshot_ == null + ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() + : snapshot_; } else { return snapshotBuilder_.getMessage(); } } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { if (snapshotBuilder_ == null) { @@ -711,11 +818,15 @@ public Builder setSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { return this; } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSnapshot( com.google.cloud.filestore.v1beta1.Snapshot.Builder builderForValue) { @@ -729,17 +840,23 @@ public Builder setSnapshot( return this; } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { if (snapshotBuilder_ == null) { if (snapshot_ != null) { snapshot_ = - com.google.cloud.filestore.v1beta1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); + com.google.cloud.filestore.v1beta1.Snapshot.newBuilder(snapshot_) + .mergeFrom(value) + .buildPartial(); } else { snapshot_ = value; } @@ -751,11 +868,15 @@ public Builder mergeSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) return this; } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSnapshot() { if (snapshotBuilder_ == null) { @@ -769,55 +890,71 @@ public Builder clearSnapshot() { return this; } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.Snapshot.Builder getSnapshotBuilder() { - + onChanged(); return getSnapshotFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder() { if (snapshotBuilder_ != null) { return snapshotBuilder_.getMessageOrBuilder(); } else { - return snapshot_ == null ? - com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; + return snapshot_ == null + ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() + : snapshot_; } } /** + * + * *
      * Required. A snapshot resource
      * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> + com.google.cloud.filestore.v1beta1.Snapshot, + com.google.cloud.filestore.v1beta1.Snapshot.Builder, + com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> getSnapshotFieldBuilder() { if (snapshotBuilder_ == null) { - snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( - getSnapshot(), - getParentForChildren(), - isClean()); + snapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, + com.google.cloud.filestore.v1beta1.Snapshot.Builder, + com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( + getSnapshot(), getParentForChildren(), isClean()); snapshot_ = null; } return snapshotBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -827,12 +964,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) private static final com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest(); } @@ -841,27 +978,27 @@ public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -876,6 +1013,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java index c6cc75a0f414..3c8b06a5052d 100644 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java @@ -1,66 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface UpdateSnapshotRequestOrBuilder extends +public interface UpdateSnapshotRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. A snapshot resource
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the snapshot field is set. */ boolean hasSnapshot(); /** + * + * *
    * Required. A snapshot resource
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The snapshot. */ com.google.cloud.filestore.v1beta1.Snapshot getSnapshot(); /** + * + * *
    * Required. A snapshot resource
    * 
* - * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto rename to java-filestore/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackup.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstance.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/AsyncGetBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/AsyncGetBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/AsyncGetBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/AsyncGetBackup.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackup.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupString.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/AsyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/AsyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/AsyncGetInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/AsyncGetInstance.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackups.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackups.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackups.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackups.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackups.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackups.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackups.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackups.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsString.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstances.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstances.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstances.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstances.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstances.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstances.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstances.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstances.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesString.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackup.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShare.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShare.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShare.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShare.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShareLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShareLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShareLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShareLRO.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShare.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShare.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShare.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShare.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareInstancenameShareString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareInstancenameShareString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareInstancenameShareString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareInstancenameShareString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareStringShareString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareStringShareString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareStringShareString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareStringShareString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshot.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshot.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshot.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshot.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshotLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshotLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshotLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshotLRO.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshot.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshot.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshot.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshot.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotInstancenameSnapshotString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotInstancenameSnapshotString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotInstancenameSnapshotString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotInstancenameSnapshotString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotStringSnapshotString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotStringSnapshotString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotStringSnapshotString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotStringSnapshotString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShare.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShare.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShare.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShare.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShareLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShareLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShareLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShareLRO.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShare.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShare.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShare.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShare.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareSharename.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareSharename.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareSharename.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareSharename.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshot.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshot.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshot.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshot.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshotLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshotLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshotLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshotLRO.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshot.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshot.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshot.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshot.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotSnapshotname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotSnapshotname.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotSnapshotname.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotSnapshotname.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/AsyncGetBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/AsyncGetBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/AsyncGetBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/AsyncGetBackup.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackup.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/AsyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/AsyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/AsyncGetInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/AsyncGetInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/AsyncGetShare.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/AsyncGetShare.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/AsyncGetShare.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/AsyncGetShare.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShare.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShare.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShare.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShare.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareSharename.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareSharename.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareSharename.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareSharename.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/AsyncGetSnapshot.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/AsyncGetSnapshot.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/AsyncGetSnapshot.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/AsyncGetSnapshot.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshot.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshot.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshot.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshot.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotSnapshotname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotSnapshotname.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotSnapshotname.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotSnapshotname.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackups.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackups.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackups.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackups.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackups.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackups.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackups.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackups.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstances.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstances.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstances.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstances.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstances.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstances.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstances.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstances.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListShares.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListShares.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListShares.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListShares.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListSharesPaged.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListSharesPaged.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListSharesPaged.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListSharesPaged.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListShares.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListShares.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListShares.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListShares.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesInstancename.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesInstancename.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesInstancename.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesInstancename.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshots.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshots.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshots.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshots.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshotsPaged.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshotsPaged.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshotsPaged.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshotsPaged.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshots.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshots.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshots.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshots.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsInstancename.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsInstancename.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsInstancename.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsInstancename.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsString.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsString.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShare.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShare.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShare.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShare.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShareLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShareLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShareLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShareLRO.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShare.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShare.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShare.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShare.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShareShareFieldmask.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShareShareFieldmask.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShareShareFieldmask.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShareShareFieldmask.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshot.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshot.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshot.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshot.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshotLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshotLRO.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshotLRO.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshotLRO.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshot.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshot.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshot.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshot.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshotSnapshotFieldmask.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshotSnapshotFieldmask.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshotSnapshotFieldmask.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshotSnapshotFieldmask.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java rename to java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/java-filestore/v1/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java b/owl-bot-staging/java-filestore/v1/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java deleted file mode 100644 index f132c8392cdc..000000000000 --- a/owl-bot-staging/java-filestore/v1/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java +++ /dev/null @@ -1,1270 +0,0 @@ -package com.google.cloud.filestore.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Configures and manages Cloud Filestore resources.
- * Cloud Filestore Manager v1.
- * The `file.googleapis.com` service implements the Cloud Filestore API and
- * defines the following resource model for managing instances:
- * * The service works with a collection of cloud projects, named: `/projects/*`
- * * Each project has a collection of available locations, named: `/locations/*`
- * * Each location has a collection of instances and backups, named:
- * `/instances/*` and `/backups/*` respectively.
- * * As such, Cloud Filestore instances are resources of the form:
- *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
- *   and backups are resources of the form:
- *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
- * Note that location_id must be a GCP `zone` for instances and but to a GCP
- * `region` for backups; for example:
- * * `projects/12345/locations/us-central1-c/instances/my-filestore`
- * * `projects/12345/locations/us-central1/backups/my-backup`
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/filestore/v1/cloud_filestore_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudFilestoreManagerGrpc { - - private CloudFilestoreManagerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.filestore.v1.CloudFilestoreManager"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.filestore.v1.ListInstancesRequest.class, - responseType = com.google.cloud.filestore.v1.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListInstancesMethod() { - io.grpc.MethodDescriptor getListInstancesMethod; - if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { - CloudFilestoreManagerGrpc.getListInstancesMethod = getListInstancesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.ListInstancesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.ListInstancesResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.filestore.v1.GetInstanceRequest.class, - responseType = com.google.cloud.filestore.v1.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetInstanceMethod() { - io.grpc.MethodDescriptor getGetInstanceMethod; - if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getGetInstanceMethod = getGetInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.GetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.Instance.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateInstance", - requestType = com.google.cloud.filestore.v1.CreateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateInstanceMethod() { - io.grpc.MethodDescriptor getCreateInstanceMethod; - if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getCreateInstanceMethod = getCreateInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.CreateInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("CreateInstance")) - .build(); - } - } - } - return getCreateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", - requestType = com.google.cloud.filestore.v1.UpdateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateInstanceMethod() { - io.grpc.MethodDescriptor getUpdateInstanceMethod; - if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.UpdateInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("UpdateInstance")) - .build(); - } - } - } - return getUpdateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getRestoreInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RestoreInstance", - requestType = com.google.cloud.filestore.v1.RestoreInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRestoreInstanceMethod() { - io.grpc.MethodDescriptor getRestoreInstanceMethod; - if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getRestoreInstanceMethod = getRestoreInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.RestoreInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("RestoreInstance")) - .build(); - } - } - } - return getRestoreInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", - requestType = com.google.cloud.filestore.v1.DeleteInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteInstanceMethod() { - io.grpc.MethodDescriptor getDeleteInstanceMethod; - if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getDeleteInstanceMethod = getDeleteInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.DeleteInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("DeleteInstance")) - .build(); - } - } - } - return getDeleteInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getListBackupsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBackups", - requestType = com.google.cloud.filestore.v1.ListBackupsRequest.class, - responseType = com.google.cloud.filestore.v1.ListBackupsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListBackupsMethod() { - io.grpc.MethodDescriptor getListBackupsMethod; - if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1.ListBackupsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.ListBackupsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListBackups")) - .build(); - } - } - } - return getListBackupsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBackup", - requestType = com.google.cloud.filestore.v1.GetBackupRequest.class, - responseType = com.google.cloud.filestore.v1.Backup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBackupMethod() { - io.grpc.MethodDescriptor getGetBackupMethod; - if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1.GetBackupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1.Backup.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetBackup")) - .build(); - } - } - } - return getGetBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBackup", - requestType = com.google.cloud.filestore.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 = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getCreateBackupMethod = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1.CreateBackupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("CreateBackup")) - .build(); - } - } - } - return getCreateBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", - requestType = com.google.cloud.filestore.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 = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getDeleteBackupMethod = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1.DeleteBackupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("DeleteBackup")) - .build(); - } - } - } - return getDeleteBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", - requestType = com.google.cloud.filestore.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 = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getUpdateBackupMethod = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1.UpdateBackupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("UpdateBackup")) - .build(); - } - } - } - return getUpdateBackupMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static CloudFilestoreManagerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFilestoreManagerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerStub(channel, callOptions); - } - }; - return CloudFilestoreManagerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CloudFilestoreManagerBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFilestoreManagerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerBlockingStub(channel, callOptions); - } - }; - return CloudFilestoreManagerBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static CloudFilestoreManagerFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFilestoreManagerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerFutureStub(channel, callOptions); - } - }; - return CloudFilestoreManagerFutureStub.newStub(factory, channel); - } - - /** - *
-   * Configures and manages Cloud Filestore resources.
-   * Cloud Filestore Manager v1.
-   * The `file.googleapis.com` service implements the Cloud Filestore API and
-   * defines the following resource model for managing instances:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Cloud Filestore instances are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
-   *   and backups are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id must be a GCP `zone` for instances and but to a GCP
-   * `region` for backups; for example:
-   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
-   * * `projects/12345/locations/us-central1/backups/my-backup`
-   * 
- */ - public static abstract class CloudFilestoreManagerImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public void listInstances(com.google.cloud.filestore.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); - } - - /** - *
-     * Gets the details of a specific instance.
-     * 
- */ - public void getInstance(com.google.cloud.filestore.v1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); - } - - /** - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public void createInstance(com.google.cloud.filestore.v1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); - } - - /** - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public void updateInstance(com.google.cloud.filestore.v1.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); - } - - /** - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public void restoreInstance(com.google.cloud.filestore.v1.RestoreInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreInstanceMethod(), responseObserver); - } - - /** - *
-     * Deletes an instance.
-     * 
- */ - public void deleteInstance(com.google.cloud.filestore.v1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); - } - - /** - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public void listBackups(com.google.cloud.filestore.v1.ListBackupsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBackupsMethod(), responseObserver); - } - - /** - *
-     * Gets the details of a specific backup.
-     * 
- */ - public void getBackup(com.google.cloud.filestore.v1.GetBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); - } - - /** - *
-     * Creates a backup.
-     * 
- */ - public void createBackup(com.google.cloud.filestore.v1.CreateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBackupMethod(), responseObserver); - } - - /** - *
-     * Deletes a backup.
-     * 
- */ - public void deleteBackup(com.google.cloud.filestore.v1.DeleteBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBackupMethod(), responseObserver); - } - - /** - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public void updateBackup(com.google.cloud.filestore.v1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBackupMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.ListInstancesRequest, - com.google.cloud.filestore.v1.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.GetInstanceRequest, - com.google.cloud.filestore.v1.Instance>( - this, METHODID_GET_INSTANCE))) - .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.CreateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.UpdateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getRestoreInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.RestoreInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_RESTORE_INSTANCE))) - .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.DeleteInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_INSTANCE))) - .addMethod( - getListBackupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.ListBackupsRequest, - com.google.cloud.filestore.v1.ListBackupsResponse>( - this, METHODID_LIST_BACKUPS))) - .addMethod( - getGetBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.GetBackupRequest, - com.google.cloud.filestore.v1.Backup>( - this, METHODID_GET_BACKUP))) - .addMethod( - getCreateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.CreateBackupRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_BACKUP))) - .addMethod( - getDeleteBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.DeleteBackupRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_BACKUP))) - .addMethod( - getUpdateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.UpdateBackupRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_BACKUP))) - .build(); - } - } - - /** - *
-   * Configures and manages Cloud Filestore resources.
-   * Cloud Filestore Manager v1.
-   * The `file.googleapis.com` service implements the Cloud Filestore API and
-   * defines the following resource model for managing instances:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Cloud Filestore instances are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
-   *   and backups are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id must be a GCP `zone` for instances and but to a GCP
-   * `region` for backups; for example:
-   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
-   * * `projects/12345/locations/us-central1/backups/my-backup`
-   * 
- */ - public static final class CloudFilestoreManagerStub extends io.grpc.stub.AbstractAsyncStub { - private CloudFilestoreManagerStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudFilestoreManagerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerStub(channel, callOptions); - } - - /** - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public void listInstances(com.google.cloud.filestore.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details of a specific instance.
-     * 
- */ - public void getInstance(com.google.cloud.filestore.v1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public void createInstance(com.google.cloud.filestore.v1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public void updateInstance(com.google.cloud.filestore.v1.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public void restoreInstance(com.google.cloud.filestore.v1.RestoreInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an instance.
-     * 
- */ - public void deleteInstance(com.google.cloud.filestore.v1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public void listBackups(com.google.cloud.filestore.v1.ListBackupsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details of a specific backup.
-     * 
- */ - public void getBackup(com.google.cloud.filestore.v1.GetBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a backup.
-     * 
- */ - public void createBackup(com.google.cloud.filestore.v1.CreateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a backup.
-     * 
- */ - public void deleteBackup(com.google.cloud.filestore.v1.DeleteBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public void updateBackup(com.google.cloud.filestore.v1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Configures and manages Cloud Filestore resources.
-   * Cloud Filestore Manager v1.
-   * The `file.googleapis.com` service implements the Cloud Filestore API and
-   * defines the following resource model for managing instances:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Cloud Filestore instances are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
-   *   and backups are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id must be a GCP `zone` for instances and but to a GCP
-   * `region` for backups; for example:
-   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
-   * * `projects/12345/locations/us-central1/backups/my-backup`
-   * 
- */ - public static final class CloudFilestoreManagerBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private CloudFilestoreManagerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudFilestoreManagerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public com.google.cloud.filestore.v1.ListInstancesResponse listInstances(com.google.cloud.filestore.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details of a specific instance.
-     * 
- */ - public com.google.cloud.filestore.v1.Instance getInstance(com.google.cloud.filestore.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public com.google.longrunning.Operation createInstance(com.google.cloud.filestore.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public com.google.longrunning.Operation updateInstance(com.google.cloud.filestore.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public com.google.longrunning.Operation restoreInstance(com.google.cloud.filestore.v1.RestoreInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestoreInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an instance.
-     * 
- */ - public com.google.longrunning.Operation deleteInstance(com.google.cloud.filestore.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public com.google.cloud.filestore.v1.ListBackupsResponse listBackups(com.google.cloud.filestore.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBackupsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details of a specific backup.
-     * 
- */ - public com.google.cloud.filestore.v1.Backup getBackup(com.google.cloud.filestore.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBackupMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a backup.
-     * 
- */ - public com.google.longrunning.Operation createBackup(com.google.cloud.filestore.v1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBackupMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a backup.
-     * 
- */ - public com.google.longrunning.Operation deleteBackup(com.google.cloud.filestore.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBackupMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public com.google.longrunning.Operation updateBackup(com.google.cloud.filestore.v1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBackupMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Configures and manages Cloud Filestore resources.
-   * Cloud Filestore Manager v1.
-   * The `file.googleapis.com` service implements the Cloud Filestore API and
-   * defines the following resource model for managing instances:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Cloud Filestore instances are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
-   *   and backups are resources of the form:
-   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id must be a GCP `zone` for instances and but to a GCP
-   * `region` for backups; for example:
-   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
-   * * `projects/12345/locations/us-central1/backups/my-backup`
-   * 
- */ - public static final class CloudFilestoreManagerFutureStub extends io.grpc.stub.AbstractFutureStub { - private CloudFilestoreManagerFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudFilestoreManagerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerFutureStub(channel, callOptions); - } - - /** - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listInstances( - com.google.cloud.filestore.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the details of a specific instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getInstance( - com.google.cloud.filestore.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createInstance( - com.google.cloud.filestore.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateInstance( - com.google.cloud.filestore.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture restoreInstance( - com.google.cloud.filestore.v1.RestoreInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteInstance( - com.google.cloud.filestore.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listBackups( - com.google.cloud.filestore.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the details of a specific backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBackup( - com.google.cloud.filestore.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createBackup( - com.google.cloud.filestore.v1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteBackup( - com.google.cloud.filestore.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateBackup( - com.google.cloud.filestore.v1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_CREATE_INSTANCE = 2; - private static final int METHODID_UPDATE_INSTANCE = 3; - private static final int METHODID_RESTORE_INSTANCE = 4; - private static final int METHODID_DELETE_INSTANCE = 5; - private static final int METHODID_LIST_BACKUPS = 6; - private static final int METHODID_GET_BACKUP = 7; - private static final int METHODID_CREATE_BACKUP = 8; - private static final int METHODID_DELETE_BACKUP = 9; - private static final int METHODID_UPDATE_BACKUP = 10; - - 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 CloudFilestoreManagerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CloudFilestoreManagerImplBase 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_LIST_INSTANCES: - serviceImpl.listInstances((com.google.cloud.filestore.v1.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance((com.google.cloud.filestore.v1.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance((com.google.cloud.filestore.v1.CreateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance((com.google.cloud.filestore.v1.UpdateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESTORE_INSTANCE: - serviceImpl.restoreInstance((com.google.cloud.filestore.v1.RestoreInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance((com.google.cloud.filestore.v1.DeleteInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BACKUPS: - serviceImpl.listBackups((com.google.cloud.filestore.v1.ListBackupsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BACKUP: - serviceImpl.getBackup((com.google.cloud.filestore.v1.GetBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_BACKUP: - serviceImpl.createBackup((com.google.cloud.filestore.v1.CreateBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_BACKUP: - serviceImpl.deleteBackup((com.google.cloud.filestore.v1.DeleteBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_BACKUP: - serviceImpl.updateBackup((com.google.cloud.filestore.v1.UpdateBackupRequest) 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 CloudFilestoreManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CloudFilestoreManagerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CloudFilestoreManager"); - } - } - - private static final class CloudFilestoreManagerFileDescriptorSupplier - extends CloudFilestoreManagerBaseDescriptorSupplier { - CloudFilestoreManagerFileDescriptorSupplier() {} - } - - private static final class CloudFilestoreManagerMethodDescriptorSupplier - extends CloudFilestoreManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CloudFilestoreManagerMethodDescriptorSupplier(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 (CloudFilestoreManagerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudFilestoreManagerFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getRestoreInstanceMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getListBackupsMethod()) - .addMethod(getGetBackupMethod()) - .addMethod(getCreateBackupMethod()) - .addMethod(getDeleteBackupMethod()) - .addMethod(getUpdateBackupMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java deleted file mode 100644 index 8b00f4c11630..000000000000 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/common/operation_metadata.proto - -package com.google.cloud.common; - -public final class OperationMetadataOuterClass { - private OperationMetadataOuterClass() {} - 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_common_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_common_OperationMetadata_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/common/operation_metadata" + - ".proto\022\023google.cloud.common\032\037google/api/" + - "field_behavior.proto\032\037google/protobuf/ti" + - "mestamp.proto\"\371\001\n\021OperationMetadata\0224\n\013c" + - "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + - "tampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pro" + - "tobuf.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\032\n\rstatus_detail\030\005 " + - "\001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022" + - "\030\n\013api_version\030\007 \001(\tB\003\340A\003BV\n\027com.google." + - "cloud.commonP\001Z9google.golang.org/genpro" + - "to/googleapis/cloud/common;commonb\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_common_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_common_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java deleted file mode 100644 index 082657124478..000000000000 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java +++ /dev/null @@ -1,460 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public final class CloudFilestoreServiceProto { - private CloudFilestoreServiceProto() {} - 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_filestore_v1_NetworkConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_Instance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_Backup_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/filestore/v1/cloud_filest" + - "ore_service.proto\022\031google.cloud.filestor" + - "e.v1\032\034google/api/annotations.proto\032\027goog" + - "le/api/client.proto\032\037google/api/field_be" + - "havior.proto\032\031google/api/resource.proto\032" + - ",google/cloud/common/operation_metadata." + - "proto\032#google/longrunning/operations.pro" + - "to\032 google/protobuf/field_mask.proto\032\037go" + - "ogle/protobuf/timestamp.proto\032\036google/pr" + - "otobuf/wrappers.proto\"\327\001\n\rNetworkConfig\022" + - "\017\n\007network\030\001 \001(\t\022C\n\005modes\030\003 \003(\01624.google" + - ".cloud.filestore.v1.NetworkConfig.Addres" + - "sMode\022\031\n\021reserved_ip_range\030\004 \001(\t\022\031\n\014ip_a" + - "ddresses\030\005 \003(\tB\003\340A\003\":\n\013AddressMode\022\034\n\030AD" + - "DRESS_MODE_UNSPECIFIED\020\000\022\r\n\tMODE_IPV4\020\001\"" + - "\301\001\n\017FileShareConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013cap" + - "acity_gb\030\002 \001(\003\0228\n\rsource_backup\030\010 \001(\tB\037\372" + - "A\034\n\032file.googleapis.com/BackupH\000\022G\n\022nfs_" + - "export_options\030\007 \003(\0132+.google.cloud.file" + - "store.v1.NfsExportOptionsB\010\n\006source\"\375\002\n\020" + - "NfsExportOptions\022\021\n\tip_ranges\030\001 \003(\t\022K\n\013a" + - "ccess_mode\030\002 \001(\01626.google.cloud.filestor" + - "e.v1.NfsExportOptions.AccessMode\022K\n\013squa" + - "sh_mode\030\003 \001(\01626.google.cloud.filestore.v" + - "1.NfsExportOptions.SquashMode\022\020\n\010anon_ui" + - "d\030\004 \001(\003\022\020\n\010anon_gid\030\005 \001(\003\"H\n\nAccessMode\022" + - "\033\n\027ACCESS_MODE_UNSPECIFIED\020\000\022\r\n\tREAD_ONL" + - "Y\020\001\022\016\n\nREAD_WRITE\020\002\"N\n\nSquashMode\022\033\n\027SQU" + - "ASH_MODE_UNSPECIFIED\020\000\022\022\n\016NO_ROOT_SQUASH" + - "\020\001\022\017\n\013ROOT_SQUASH\020\002\"\353\006\n\010Instance\022\021\n\004name" + - "\030\001 \001(\tB\003\340A\003\022\023\n\013description\030\002 \001(\t\022=\n\005stat" + - "e\030\005 \001(\0162).google.cloud.filestore.v1.Inst" + - "ance.StateB\003\340A\003\022\033\n\016status_message\030\006 \001(\tB" + - "\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003\0226\n\004tier\030\010 \001(\0162(.googl" + - "e.cloud.filestore.v1.Instance.Tier\022?\n\006la" + - "bels\030\t \003(\0132/.google.cloud.filestore.v1.I" + - "nstance.LabelsEntry\022?\n\013file_shares\030\n \003(\013" + - "2*.google.cloud.filestore.v1.FileShareCo" + - "nfig\022:\n\010networks\030\013 \003(\0132(.google.cloud.fi" + - "lestore.v1.NetworkConfig\022\014\n\004etag\030\014 \001(\t\0226" + - "\n\rsatisfies_pzs\030\r \001(\0132\032.google.protobuf." + - "BoolValueB\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\n\005State\022\025\n\021STATE_" + - "UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\r" + - "\n\tREPAIRING\020\003\022\014\n\010DELETING\020\004\022\t\n\005ERROR\020\006\022\r" + - "\n\tRESTORING\020\007\"i\n\004Tier\022\024\n\020TIER_UNSPECIFIE" + - "D\020\000\022\014\n\010STANDARD\020\001\022\013\n\007PREMIUM\020\002\022\r\n\tBASIC_" + - "HDD\020\003\022\r\n\tBASIC_SSD\020\004\022\022\n\016HIGH_SCALE_SSD\020\005" + - ":_\352A\\\n\034file.googleapis.com/Instance\022\202\323\344\223\002/\022-/v1/{paren" + - "t=projects/*/locations/*}/instances\332A\006pa" + - "rent\022\237\001\n\013GetInstance\022-.google.cloud.file" + - "store.v1.GetInstanceRequest\032#.google.clo" + - "ud.filestore.v1.Instance\"<\202\323\344\223\002/\022-/v1/{n" + - "ame=projects/*/locations/*/instances/*}\332" + - "A\004name\022\365\001\n\016CreateInstance\0220.google.cloud" + - ".filestore.v1.CreateInstanceRequest\032\035.go" + - "ogle.longrunning.Operation\"\221\001\202\323\344\223\0029\"-/v1" + - "/{parent=projects/*/locations/*}/instanc" + - "es:\010instance\332A\033parent,instance,instance_" + - "id\312A1\n\010Instance\022%google.cloud.common.Ope" + - "rationMetadata\022\367\001\n\016UpdateInstance\0220.goog" + - "le.cloud.filestore.v1.UpdateInstanceRequ" + - "est\032\035.google.longrunning.Operation\"\223\001\202\323\344" + - "\223\002B26/v1/{instance.name=projects/*/locat" + - "ions/*/instances/*}:\010instance\332A\024instance" + - ",update_mask\312A1\n\010Instance\022%google.cloud." + - "common.OperationMetadata\022\331\001\n\017RestoreInst" + - "ance\0221.google.cloud.filestore.v1.Restore" + - "InstanceRequest\032\035.google.longrunning.Ope" + - "ration\"t\202\323\344\223\002:\"5/v1/{name=projects/*/loc" + - "ations/*/instances/*}:restore:\001*\312A1\n\010Ins" + - "tance\022%google.cloud.common.OperationMeta" + - "data\022\340\001\n\016DeleteInstance\0220.google.cloud.f" + - "ilestore.v1.DeleteInstanceRequest\032\035.goog" + - "le.longrunning.Operation\"}\202\323\344\223\002/*-/v1/{n" + - "ame=projects/*/locations/*/instances/*}\332" + - "A\004name\312A>\n\025google.protobuf.Empty\022%google" + - ".cloud.common.OperationMetadata\022\252\001\n\013List" + - "Backups\022-.google.cloud.filestore.v1.List" + - "BackupsRequest\032..google.cloud.filestore." + - "v1.ListBackupsResponse\"<\202\323\344\223\002-\022+/v1/{par" + - "ent=projects/*/locations/*}/backups\332A\006pa" + - "rent\022\227\001\n\tGetBackup\022+.google.cloud.filest" + - "ore.v1.GetBackupRequest\032!.google.cloud.f" + - "ilestore.v1.Backup\":\202\323\344\223\002-\022+/v1/{name=pr" + - "ojects/*/locations/*/backups/*}\332A\004name\022\347" + - "\001\n\014CreateBackup\022..google.cloud.filestore" + - ".v1.CreateBackupRequest\032\035.google.longrun" + - "ning.Operation\"\207\001\202\323\344\223\0025\"+/v1/{parent=pro" + - "jects/*/locations/*}/backups:\006backup\332A\027p" + - "arent,backup,backup_id\312A/\n\006Backup\022%googl" + - "e.cloud.common.OperationMetadata\022\332\001\n\014Del" + - "eteBackup\022..google.cloud.filestore.v1.De" + - "leteBackupRequest\032\035.google.longrunning.O" + - "peration\"{\202\323\344\223\002-*+/v1/{name=projects/*/l" + - "ocations/*/backups/*}\332A\004name\312A>\n\025google." + - "protobuf.Empty\022%google.cloud.common.Oper" + - "ationMetadata\022\351\001\n\014UpdateBackup\022..google." + - "cloud.filestore.v1.UpdateBackupRequest\032\035" + - ".google.longrunning.Operation\"\211\001\202\323\344\223\002<22" + - "/v1/{backup.name=projects/*/locations/*/" + - "backups/*}:\006backup\332A\022backup,update_mask\312" + - "A/\n\006Backup\022%google.cloud.common.Operatio" + - "nMetadata\032G\312A\023file.googleapis.com\322A.http" + - "s://www.googleapis.com/auth/cloud-platfo" + - "rmB\271\001\n\035com.google.cloud.filestore.v1B\032Cl" + - "oudFilestoreServiceProtoP\001ZBgoogle.golan" + - "g.org/genproto/googleapis/cloud/filestor" + - "e/v1;filestore\252\002\031Google.Cloud.Filestore." + - "V1\312\002\031Google\\Cloud\\Filestore\\V1b\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.common.OperationMetadataOuterClass.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor, - new java.lang.String[] { "Network", "Modes", "ReservedIpRange", "IpAddresses", }); - internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor, - new java.lang.String[] { "Name", "CapacityGb", "SourceBackup", "NfsExportOptions", "Source", }); - internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor, - new java.lang.String[] { "IpRanges", "AccessMode", "SquashMode", "AnonUid", "AnonGid", }); - internal_static_google_cloud_filestore_v1_Instance_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_Instance_descriptor, - new java.lang.String[] { "Name", "Description", "State", "StatusMessage", "CreateTime", "Tier", "Labels", "FileShares", "Networks", "Etag", "SatisfiesPzs", }); - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor, - new java.lang.String[] { "Parent", "InstanceId", "Instance", }); - internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor, - new java.lang.String[] { "UpdateMask", "Instance", }); - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor, - new java.lang.String[] { "Name", "FileShare", "SourceBackup", "Source", }); - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); - internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor, - new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_filestore_v1_Backup_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_Backup_descriptor, - new java.lang.String[] { "Name", "Description", "State", "CreateTime", "Labels", "CapacityGb", "StorageBytes", "SourceInstance", "SourceFileShare", "SourceInstanceTier", "DownloadBytes", "SatisfiesPzs", }); - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1_Backup_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor, - new java.lang.String[] { "Parent", "Backup", "BackupId", }); - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor, - new java.lang.String[] { "Backup", "UpdateMask", }); - internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); - internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor, - new java.lang.String[] { "Backups", "NextPageToken", "Unreachable", }); - 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.resource); - 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.common.OperationMetadataOuterClass.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java deleted file mode 100644 index 798cb71d5f5c..000000000000 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public interface DeleteBackupRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.DeleteBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_number}/locations/{location}/backups/{backup_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_number}/locations/{location}/backups/{backup_id}`
-   * 
- * - * 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/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java deleted file mode 100644 index c727919af13d..000000000000 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public interface DeleteInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.DeleteInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
-   * 
- * - * 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/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java deleted file mode 100644 index 7cb12bf67914..000000000000 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public interface GetBackupRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.GetBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
-   * 
- * - * 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/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java deleted file mode 100644 index 73fb1e671d99..000000000000 --- a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public interface GetInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
-   * 
- * - * 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/java-filestore/v1beta1/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java b/owl-bot-staging/java-filestore/v1beta1/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java deleted file mode 100644 index a11e4f872e23..000000000000 --- a/owl-bot-staging/java-filestore/v1beta1/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java +++ /dev/null @@ -1,2235 +0,0 @@ -package com.google.cloud.filestore.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Configures and manages Filestore resources.
- * Filestore Manager v1beta1.
- * The `file.googleapis.com` service implements the Filestore API and
- * defines the following model for managing resources:
- * * The service works with a collection of cloud projects, named: `/projects/*`
- * * Each project has a collection of available locations, named: `/locations/*`
- * * Each location has a collection of instances and backups, named:
- * `/instances/*` and `/backups/*` respectively.
- * * As such, Filestore instances are resources of the form:
- *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- *   backups are resources of the form:
- *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
- * Note that location_id can represent a GCP `zone` or `region` depending on the
- * resource.
- * for example:
- * A zonal Filestore instance:
- * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
- * A regional Filestore instance:
- * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudFilestoreManagerGrpc { - - private CloudFilestoreManagerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.filestore.v1beta1.CloudFilestoreManager"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, - responseType = com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListInstancesMethod() { - io.grpc.MethodDescriptor getListInstancesMethod; - if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { - CloudFilestoreManagerGrpc.getListInstancesMethod = getListInstancesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListInstancesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListInstancesResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, - responseType = com.google.cloud.filestore.v1beta1.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetInstanceMethod() { - io.grpc.MethodDescriptor getGetInstanceMethod; - if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getGetInstanceMethod = getGetInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.GetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateInstance", - requestType = com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateInstanceMethod() { - io.grpc.MethodDescriptor getCreateInstanceMethod; - if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getCreateInstanceMethod = getCreateInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("CreateInstance")) - .build(); - } - } - } - return getCreateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", - requestType = com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateInstanceMethod() { - io.grpc.MethodDescriptor getUpdateInstanceMethod; - if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("UpdateInstance")) - .build(); - } - } - } - return getUpdateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getRestoreInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RestoreInstance", - requestType = com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRestoreInstanceMethod() { - io.grpc.MethodDescriptor getRestoreInstanceMethod; - if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getRestoreInstanceMethod = getRestoreInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("RestoreInstance")) - .build(); - } - } - } - return getRestoreInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getRevertInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RevertInstance", - requestType = com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRevertInstanceMethod() { - io.grpc.MethodDescriptor getRevertInstanceMethod; - if ((getRevertInstanceMethod = CloudFilestoreManagerGrpc.getRevertInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getRevertInstanceMethod = CloudFilestoreManagerGrpc.getRevertInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getRevertInstanceMethod = getRevertInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevertInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.RevertInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("RevertInstance")) - .build(); - } - } - } - return getRevertInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", - requestType = com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteInstanceMethod() { - io.grpc.MethodDescriptor getDeleteInstanceMethod; - if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { - CloudFilestoreManagerGrpc.getDeleteInstanceMethod = getDeleteInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("DeleteInstance")) - .build(); - } - } - } - return getDeleteInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSnapshotsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSnapshots", - requestType = com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, - responseType = com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSnapshotsMethod() { - io.grpc.MethodDescriptor getListSnapshotsMethod; - if ((getListSnapshotsMethod = CloudFilestoreManagerGrpc.getListSnapshotsMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getListSnapshotsMethod = CloudFilestoreManagerGrpc.getListSnapshotsMethod) == null) { - CloudFilestoreManagerGrpc.getListSnapshotsMethod = getListSnapshotsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSnapshots")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListSnapshots")) - .build(); - } - } - } - return getListSnapshotsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSnapshotMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSnapshot", - requestType = com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, - responseType = com.google.cloud.filestore.v1beta1.Snapshot.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSnapshotMethod() { - io.grpc.MethodDescriptor getGetSnapshotMethod; - if ((getGetSnapshotMethod = CloudFilestoreManagerGrpc.getGetSnapshotMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getGetSnapshotMethod = CloudFilestoreManagerGrpc.getGetSnapshotMethod) == null) { - CloudFilestoreManagerGrpc.getGetSnapshotMethod = getGetSnapshotMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSnapshot")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.GetSnapshotRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetSnapshot")) - .build(); - } - } - } - return getGetSnapshotMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSnapshotMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSnapshot", - requestType = com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSnapshotMethod() { - io.grpc.MethodDescriptor getCreateSnapshotMethod; - if ((getCreateSnapshotMethod = CloudFilestoreManagerGrpc.getCreateSnapshotMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getCreateSnapshotMethod = CloudFilestoreManagerGrpc.getCreateSnapshotMethod) == null) { - CloudFilestoreManagerGrpc.getCreateSnapshotMethod = getCreateSnapshotMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSnapshot")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("CreateSnapshot")) - .build(); - } - } - } - return getCreateSnapshotMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSnapshotMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSnapshot", - requestType = com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSnapshotMethod() { - io.grpc.MethodDescriptor getDeleteSnapshotMethod; - if ((getDeleteSnapshotMethod = CloudFilestoreManagerGrpc.getDeleteSnapshotMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getDeleteSnapshotMethod = CloudFilestoreManagerGrpc.getDeleteSnapshotMethod) == null) { - CloudFilestoreManagerGrpc.getDeleteSnapshotMethod = getDeleteSnapshotMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSnapshot")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("DeleteSnapshot")) - .build(); - } - } - } - return getDeleteSnapshotMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSnapshotMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSnapshot", - requestType = com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSnapshotMethod() { - io.grpc.MethodDescriptor getUpdateSnapshotMethod; - if ((getUpdateSnapshotMethod = CloudFilestoreManagerGrpc.getUpdateSnapshotMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getUpdateSnapshotMethod = CloudFilestoreManagerGrpc.getUpdateSnapshotMethod) == null) { - CloudFilestoreManagerGrpc.getUpdateSnapshotMethod = getUpdateSnapshotMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSnapshot")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("UpdateSnapshot")) - .build(); - } - } - } - return getUpdateSnapshotMethod; - } - - private static volatile io.grpc.MethodDescriptor getListBackupsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBackups", - requestType = com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, - responseType = com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListBackupsMethod() { - io.grpc.MethodDescriptor getListBackupsMethod; - if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1beta1.ListBackupsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListBackupsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListBackups")) - .build(); - } - } - } - return getListBackupsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBackup", - requestType = com.google.cloud.filestore.v1beta1.GetBackupRequest.class, - responseType = com.google.cloud.filestore.v1beta1.Backup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBackupMethod() { - io.grpc.MethodDescriptor getGetBackupMethod; - if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1beta1.GetBackupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetBackup")) - .build(); - } - } - } - return getGetBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBackup", - requestType = com.google.cloud.filestore.v1beta1.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 = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getCreateBackupMethod = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1beta1.CreateBackupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("CreateBackup")) - .build(); - } - } - } - return getCreateBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", - requestType = com.google.cloud.filestore.v1beta1.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 = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getDeleteBackupMethod = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1beta1.DeleteBackupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("DeleteBackup")) - .build(); - } - } - } - return getDeleteBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", - requestType = com.google.cloud.filestore.v1beta1.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 = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getUpdateBackupMethod = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { - CloudFilestoreManagerGrpc.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.filestore.v1beta1.UpdateBackupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("UpdateBackup")) - .build(); - } - } - } - return getUpdateBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSharesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListShares", - requestType = com.google.cloud.filestore.v1beta1.ListSharesRequest.class, - responseType = com.google.cloud.filestore.v1beta1.ListSharesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSharesMethod() { - io.grpc.MethodDescriptor getListSharesMethod; - if ((getListSharesMethod = CloudFilestoreManagerGrpc.getListSharesMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getListSharesMethod = CloudFilestoreManagerGrpc.getListSharesMethod) == null) { - CloudFilestoreManagerGrpc.getListSharesMethod = getListSharesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListShares")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListSharesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListSharesResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListShares")) - .build(); - } - } - } - return getListSharesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetShare", - requestType = com.google.cloud.filestore.v1beta1.GetShareRequest.class, - responseType = com.google.cloud.filestore.v1beta1.Share.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetShareMethod() { - io.grpc.MethodDescriptor getGetShareMethod; - if ((getGetShareMethod = CloudFilestoreManagerGrpc.getGetShareMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getGetShareMethod = CloudFilestoreManagerGrpc.getGetShareMethod) == null) { - CloudFilestoreManagerGrpc.getGetShareMethod = getGetShareMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.GetShareRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.Share.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetShare")) - .build(); - } - } - } - return getGetShareMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateShare", - requestType = com.google.cloud.filestore.v1beta1.CreateShareRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateShareMethod() { - io.grpc.MethodDescriptor getCreateShareMethod; - if ((getCreateShareMethod = CloudFilestoreManagerGrpc.getCreateShareMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getCreateShareMethod = CloudFilestoreManagerGrpc.getCreateShareMethod) == null) { - CloudFilestoreManagerGrpc.getCreateShareMethod = getCreateShareMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.CreateShareRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("CreateShare")) - .build(); - } - } - } - return getCreateShareMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteShare", - requestType = com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteShareMethod() { - io.grpc.MethodDescriptor getDeleteShareMethod; - if ((getDeleteShareMethod = CloudFilestoreManagerGrpc.getDeleteShareMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getDeleteShareMethod = CloudFilestoreManagerGrpc.getDeleteShareMethod) == null) { - CloudFilestoreManagerGrpc.getDeleteShareMethod = getDeleteShareMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.DeleteShareRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("DeleteShare")) - .build(); - } - } - } - return getDeleteShareMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateShare", - requestType = com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateShareMethod() { - io.grpc.MethodDescriptor getUpdateShareMethod; - if ((getUpdateShareMethod = CloudFilestoreManagerGrpc.getUpdateShareMethod) == null) { - synchronized (CloudFilestoreManagerGrpc.class) { - if ((getUpdateShareMethod = CloudFilestoreManagerGrpc.getUpdateShareMethod) == null) { - CloudFilestoreManagerGrpc.getUpdateShareMethod = getUpdateShareMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.UpdateShareRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("UpdateShare")) - .build(); - } - } - } - return getUpdateShareMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static CloudFilestoreManagerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFilestoreManagerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerStub(channel, callOptions); - } - }; - return CloudFilestoreManagerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CloudFilestoreManagerBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFilestoreManagerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerBlockingStub(channel, callOptions); - } - }; - return CloudFilestoreManagerBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static CloudFilestoreManagerFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFilestoreManagerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerFutureStub(channel, callOptions); - } - }; - return CloudFilestoreManagerFutureStub.newStub(factory, channel); - } - - /** - *
-   * Configures and manages Filestore resources.
-   * Filestore Manager v1beta1.
-   * The `file.googleapis.com` service implements the Filestore API and
-   * defines the following model for managing resources:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Filestore instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   *   backups are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id can represent a GCP `zone` or `region` depending on the
-   * resource.
-   * for example:
-   * A zonal Filestore instance:
-   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
-   * A regional Filestore instance:
-   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
-   * 
- */ - public static abstract class CloudFilestoreManagerImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public void listInstances(com.google.cloud.filestore.v1beta1.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); - } - - /** - *
-     * Gets the details of a specific instance.
-     * 
- */ - public void getInstance(com.google.cloud.filestore.v1beta1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); - } - - /** - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public void createInstance(com.google.cloud.filestore.v1beta1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); - } - - /** - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public void updateInstance(com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); - } - - /** - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public void restoreInstance(com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreInstanceMethod(), responseObserver); - } - - /** - *
-     * Revert an existing instance's file system to a specified snapshot.
-     * 
- */ - public void revertInstance(com.google.cloud.filestore.v1beta1.RevertInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevertInstanceMethod(), responseObserver); - } - - /** - *
-     * Deletes an instance.
-     * 
- */ - public void deleteInstance(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); - } - - /** - *
-     * Lists all snapshots in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public void listSnapshots(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSnapshotsMethod(), responseObserver); - } - - /** - *
-     * Gets the details of a specific snapshot.
-     * 
- */ - public void getSnapshot(com.google.cloud.filestore.v1beta1.GetSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSnapshotMethod(), responseObserver); - } - - /** - *
-     * Creates a snapshot.
-     * 
- */ - public void createSnapshot(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSnapshotMethod(), responseObserver); - } - - /** - *
-     * Deletes a snapshot.
-     * 
- */ - public void deleteSnapshot(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSnapshotMethod(), responseObserver); - } - - /** - *
-     * Updates the settings of a specific snapshot.
-     * 
- */ - public void updateSnapshot(com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSnapshotMethod(), responseObserver); - } - - /** - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public void listBackups(com.google.cloud.filestore.v1beta1.ListBackupsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBackupsMethod(), responseObserver); - } - - /** - *
-     * Gets the details of a specific backup.
-     * 
- */ - public void getBackup(com.google.cloud.filestore.v1beta1.GetBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); - } - - /** - *
-     * Creates a backup.
-     * 
- */ - public void createBackup(com.google.cloud.filestore.v1beta1.CreateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBackupMethod(), responseObserver); - } - - /** - *
-     * Deletes a backup.
-     * 
- */ - public void deleteBackup(com.google.cloud.filestore.v1beta1.DeleteBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBackupMethod(), responseObserver); - } - - /** - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public void updateBackup(com.google.cloud.filestore.v1beta1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBackupMethod(), responseObserver); - } - - /** - *
-     * Lists all shares for a specified instance.
-     * 
- */ - public void listShares(com.google.cloud.filestore.v1beta1.ListSharesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSharesMethod(), responseObserver); - } - - /** - *
-     * Gets the details of a specific share.
-     * 
- */ - public void getShare(com.google.cloud.filestore.v1beta1.GetShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetShareMethod(), responseObserver); - } - - /** - *
-     * Creates a share.
-     * 
- */ - public void createShare(com.google.cloud.filestore.v1beta1.CreateShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateShareMethod(), responseObserver); - } - - /** - *
-     * Deletes a share.
-     * 
- */ - public void deleteShare(com.google.cloud.filestore.v1beta1.DeleteShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteShareMethod(), responseObserver); - } - - /** - *
-     * Updates the settings of a specific share.
-     * 
- */ - public void updateShare(com.google.cloud.filestore.v1beta1.UpdateShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateShareMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.ListInstancesRequest, - com.google.cloud.filestore.v1beta1.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.GetInstanceRequest, - com.google.cloud.filestore.v1beta1.Instance>( - this, METHODID_GET_INSTANCE))) - .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.CreateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getRestoreInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_RESTORE_INSTANCE))) - .addMethod( - getRevertInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.RevertInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_REVERT_INSTANCE))) - .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_INSTANCE))) - .addMethod( - getListSnapshotsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest, - com.google.cloud.filestore.v1beta1.ListSnapshotsResponse>( - this, METHODID_LIST_SNAPSHOTS))) - .addMethod( - getGetSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.GetSnapshotRequest, - com.google.cloud.filestore.v1beta1.Snapshot>( - this, METHODID_GET_SNAPSHOT))) - .addMethod( - getCreateSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_SNAPSHOT))) - .addMethod( - getDeleteSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_SNAPSHOT))) - .addMethod( - getUpdateSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_SNAPSHOT))) - .addMethod( - getListBackupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.ListBackupsRequest, - com.google.cloud.filestore.v1beta1.ListBackupsResponse>( - this, METHODID_LIST_BACKUPS))) - .addMethod( - getGetBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.GetBackupRequest, - com.google.cloud.filestore.v1beta1.Backup>( - this, METHODID_GET_BACKUP))) - .addMethod( - getCreateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.CreateBackupRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_BACKUP))) - .addMethod( - getDeleteBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.DeleteBackupRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_BACKUP))) - .addMethod( - getUpdateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.UpdateBackupRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_BACKUP))) - .addMethod( - getListSharesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.ListSharesRequest, - com.google.cloud.filestore.v1beta1.ListSharesResponse>( - this, METHODID_LIST_SHARES))) - .addMethod( - getGetShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.GetShareRequest, - com.google.cloud.filestore.v1beta1.Share>( - this, METHODID_GET_SHARE))) - .addMethod( - getCreateShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.CreateShareRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_SHARE))) - .addMethod( - getDeleteShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.DeleteShareRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_SHARE))) - .addMethod( - getUpdateShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.UpdateShareRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_SHARE))) - .build(); - } - } - - /** - *
-   * Configures and manages Filestore resources.
-   * Filestore Manager v1beta1.
-   * The `file.googleapis.com` service implements the Filestore API and
-   * defines the following model for managing resources:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Filestore instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   *   backups are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id can represent a GCP `zone` or `region` depending on the
-   * resource.
-   * for example:
-   * A zonal Filestore instance:
-   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
-   * A regional Filestore instance:
-   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
-   * 
- */ - public static final class CloudFilestoreManagerStub extends io.grpc.stub.AbstractAsyncStub { - private CloudFilestoreManagerStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudFilestoreManagerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerStub(channel, callOptions); - } - - /** - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public void listInstances(com.google.cloud.filestore.v1beta1.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details of a specific instance.
-     * 
- */ - public void getInstance(com.google.cloud.filestore.v1beta1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public void createInstance(com.google.cloud.filestore.v1beta1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public void updateInstance(com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public void restoreInstance(com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Revert an existing instance's file system to a specified snapshot.
-     * 
- */ - public void revertInstance(com.google.cloud.filestore.v1beta1.RevertInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRevertInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an instance.
-     * 
- */ - public void deleteInstance(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all snapshots in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public void listSnapshots(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details of a specific snapshot.
-     * 
- */ - public void getSnapshot(com.google.cloud.filestore.v1beta1.GetSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a snapshot.
-     * 
- */ - public void createSnapshot(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a snapshot.
-     * 
- */ - public void deleteSnapshot(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the settings of a specific snapshot.
-     * 
- */ - public void updateSnapshot(com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public void listBackups(com.google.cloud.filestore.v1beta1.ListBackupsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details of a specific backup.
-     * 
- */ - public void getBackup(com.google.cloud.filestore.v1beta1.GetBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a backup.
-     * 
- */ - public void createBackup(com.google.cloud.filestore.v1beta1.CreateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a backup.
-     * 
- */ - public void deleteBackup(com.google.cloud.filestore.v1beta1.DeleteBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public void updateBackup(com.google.cloud.filestore.v1beta1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all shares for a specified instance.
-     * 
- */ - public void listShares(com.google.cloud.filestore.v1beta1.ListSharesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSharesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details of a specific share.
-     * 
- */ - public void getShare(com.google.cloud.filestore.v1beta1.GetShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetShareMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a share.
-     * 
- */ - public void createShare(com.google.cloud.filestore.v1beta1.CreateShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateShareMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a share.
-     * 
- */ - public void deleteShare(com.google.cloud.filestore.v1beta1.DeleteShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteShareMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the settings of a specific share.
-     * 
- */ - public void updateShare(com.google.cloud.filestore.v1beta1.UpdateShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateShareMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Configures and manages Filestore resources.
-   * Filestore Manager v1beta1.
-   * The `file.googleapis.com` service implements the Filestore API and
-   * defines the following model for managing resources:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Filestore instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   *   backups are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id can represent a GCP `zone` or `region` depending on the
-   * resource.
-   * for example:
-   * A zonal Filestore instance:
-   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
-   * A regional Filestore instance:
-   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
-   * 
- */ - public static final class CloudFilestoreManagerBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private CloudFilestoreManagerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudFilestoreManagerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.ListInstancesResponse listInstances(com.google.cloud.filestore.v1beta1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details of a specific instance.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.Instance getInstance(com.google.cloud.filestore.v1beta1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public com.google.longrunning.Operation createInstance(com.google.cloud.filestore.v1beta1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public com.google.longrunning.Operation updateInstance(com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public com.google.longrunning.Operation restoreInstance(com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestoreInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Revert an existing instance's file system to a specified snapshot.
-     * 
- */ - public com.google.longrunning.Operation revertInstance(com.google.cloud.filestore.v1beta1.RevertInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRevertInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an instance.
-     * 
- */ - public com.google.longrunning.Operation deleteInstance(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all snapshots in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse listSnapshots(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSnapshotsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details of a specific snapshot.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot(com.google.cloud.filestore.v1beta1.GetSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSnapshotMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a snapshot.
-     * 
- */ - public com.google.longrunning.Operation createSnapshot(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a snapshot.
-     * 
- */ - public com.google.longrunning.Operation deleteSnapshot(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the settings of a specific snapshot.
-     * 
- */ - public com.google.longrunning.Operation updateSnapshot(com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.ListBackupsResponse listBackups(com.google.cloud.filestore.v1beta1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBackupsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details of a specific backup.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.Backup getBackup(com.google.cloud.filestore.v1beta1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBackupMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a backup.
-     * 
- */ - public com.google.longrunning.Operation createBackup(com.google.cloud.filestore.v1beta1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBackupMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a backup.
-     * 
- */ - public com.google.longrunning.Operation deleteBackup(com.google.cloud.filestore.v1beta1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBackupMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public com.google.longrunning.Operation updateBackup(com.google.cloud.filestore.v1beta1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBackupMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all shares for a specified instance.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.ListSharesResponse listShares(com.google.cloud.filestore.v1beta1.ListSharesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSharesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details of a specific share.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.Share getShare(com.google.cloud.filestore.v1beta1.GetShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetShareMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a share.
-     * 
- */ - public com.google.longrunning.Operation createShare(com.google.cloud.filestore.v1beta1.CreateShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateShareMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a share.
-     * 
- */ - public com.google.longrunning.Operation deleteShare(com.google.cloud.filestore.v1beta1.DeleteShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteShareMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the settings of a specific share.
-     * 
- */ - public com.google.longrunning.Operation updateShare(com.google.cloud.filestore.v1beta1.UpdateShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateShareMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Configures and manages Filestore resources.
-   * Filestore Manager v1beta1.
-   * The `file.googleapis.com` service implements the Filestore API and
-   * defines the following model for managing resources:
-   * * The service works with a collection of cloud projects, named: `/projects/*`
-   * * Each project has a collection of available locations, named: `/locations/*`
-   * * Each location has a collection of instances and backups, named:
-   * `/instances/*` and `/backups/*` respectively.
-   * * As such, Filestore instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   *   backups are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id can represent a GCP `zone` or `region` depending on the
-   * resource.
-   * for example:
-   * A zonal Filestore instance:
-   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
-   * A regional Filestore instance:
-   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
-   * 
- */ - public static final class CloudFilestoreManagerFutureStub extends io.grpc.stub.AbstractFutureStub { - private CloudFilestoreManagerFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudFilestoreManagerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFilestoreManagerFutureStub(channel, callOptions); - } - - /** - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listInstances( - com.google.cloud.filestore.v1beta1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the details of a specific instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getInstance( - com.google.cloud.filestore.v1beta1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates an instance.
-     * When creating from a backup, the capacity of the new instance needs to be
-     * equal to or larger than the capacity of the backup (and also equal to or
-     * larger than the minimum capacity of the tier).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createInstance( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateInstance( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Restores an existing instance's file share from a backup.
-     * The capacity of the instance needs to be equal to or larger than the
-     * capacity of the backup (and also equal to or larger than the minimum
-     * capacity of the tier).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture restoreInstance( - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Revert an existing instance's file system to a specified snapshot.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture revertInstance( - com.google.cloud.filestore.v1beta1.RevertInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRevertInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteInstance( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all snapshots in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSnapshots( - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the details of a specific snapshot.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSnapshot( - com.google.cloud.filestore.v1beta1.GetSnapshotRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a snapshot.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSnapshot( - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a snapshot.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSnapshot( - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the settings of a specific snapshot.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSnapshot( - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listBackups( - com.google.cloud.filestore.v1beta1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the details of a specific backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBackup( - com.google.cloud.filestore.v1beta1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createBackup( - com.google.cloud.filestore.v1beta1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteBackup( - com.google.cloud.filestore.v1beta1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateBackup( - com.google.cloud.filestore.v1beta1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all shares for a specified instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listShares( - com.google.cloud.filestore.v1beta1.ListSharesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSharesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the details of a specific share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getShare( - com.google.cloud.filestore.v1beta1.GetShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetShareMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createShare( - com.google.cloud.filestore.v1beta1.CreateShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateShareMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteShare( - com.google.cloud.filestore.v1beta1.DeleteShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteShareMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the settings of a specific share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateShare( - com.google.cloud.filestore.v1beta1.UpdateShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateShareMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_CREATE_INSTANCE = 2; - private static final int METHODID_UPDATE_INSTANCE = 3; - private static final int METHODID_RESTORE_INSTANCE = 4; - private static final int METHODID_REVERT_INSTANCE = 5; - private static final int METHODID_DELETE_INSTANCE = 6; - private static final int METHODID_LIST_SNAPSHOTS = 7; - private static final int METHODID_GET_SNAPSHOT = 8; - private static final int METHODID_CREATE_SNAPSHOT = 9; - private static final int METHODID_DELETE_SNAPSHOT = 10; - private static final int METHODID_UPDATE_SNAPSHOT = 11; - private static final int METHODID_LIST_BACKUPS = 12; - private static final int METHODID_GET_BACKUP = 13; - private static final int METHODID_CREATE_BACKUP = 14; - private static final int METHODID_DELETE_BACKUP = 15; - private static final int METHODID_UPDATE_BACKUP = 16; - private static final int METHODID_LIST_SHARES = 17; - private static final int METHODID_GET_SHARE = 18; - private static final int METHODID_CREATE_SHARE = 19; - private static final int METHODID_DELETE_SHARE = 20; - private static final int METHODID_UPDATE_SHARE = 21; - - 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 CloudFilestoreManagerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CloudFilestoreManagerImplBase 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_LIST_INSTANCES: - serviceImpl.listInstances((com.google.cloud.filestore.v1beta1.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance((com.google.cloud.filestore.v1beta1.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance((com.google.cloud.filestore.v1beta1.CreateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance((com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESTORE_INSTANCE: - serviceImpl.restoreInstance((com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REVERT_INSTANCE: - serviceImpl.revertInstance((com.google.cloud.filestore.v1beta1.RevertInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance((com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SNAPSHOTS: - serviceImpl.listSnapshots((com.google.cloud.filestore.v1beta1.ListSnapshotsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SNAPSHOT: - serviceImpl.getSnapshot((com.google.cloud.filestore.v1beta1.GetSnapshotRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SNAPSHOT: - serviceImpl.createSnapshot((com.google.cloud.filestore.v1beta1.CreateSnapshotRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SNAPSHOT: - serviceImpl.deleteSnapshot((com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SNAPSHOT: - serviceImpl.updateSnapshot((com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BACKUPS: - serviceImpl.listBackups((com.google.cloud.filestore.v1beta1.ListBackupsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BACKUP: - serviceImpl.getBackup((com.google.cloud.filestore.v1beta1.GetBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_BACKUP: - serviceImpl.createBackup((com.google.cloud.filestore.v1beta1.CreateBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_BACKUP: - serviceImpl.deleteBackup((com.google.cloud.filestore.v1beta1.DeleteBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_BACKUP: - serviceImpl.updateBackup((com.google.cloud.filestore.v1beta1.UpdateBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SHARES: - serviceImpl.listShares((com.google.cloud.filestore.v1beta1.ListSharesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SHARE: - serviceImpl.getShare((com.google.cloud.filestore.v1beta1.GetShareRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SHARE: - serviceImpl.createShare((com.google.cloud.filestore.v1beta1.CreateShareRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SHARE: - serviceImpl.deleteShare((com.google.cloud.filestore.v1beta1.DeleteShareRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SHARE: - serviceImpl.updateShare((com.google.cloud.filestore.v1beta1.UpdateShareRequest) 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 CloudFilestoreManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CloudFilestoreManagerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CloudFilestoreManager"); - } - } - - private static final class CloudFilestoreManagerFileDescriptorSupplier - extends CloudFilestoreManagerBaseDescriptorSupplier { - CloudFilestoreManagerFileDescriptorSupplier() {} - } - - private static final class CloudFilestoreManagerMethodDescriptorSupplier - extends CloudFilestoreManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CloudFilestoreManagerMethodDescriptorSupplier(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 (CloudFilestoreManagerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudFilestoreManagerFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getRestoreInstanceMethod()) - .addMethod(getRevertInstanceMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getListSnapshotsMethod()) - .addMethod(getGetSnapshotMethod()) - .addMethod(getCreateSnapshotMethod()) - .addMethod(getDeleteSnapshotMethod()) - .addMethod(getUpdateSnapshotMethod()) - .addMethod(getListBackupsMethod()) - .addMethod(getGetBackupMethod()) - .addMethod(getCreateBackupMethod()) - .addMethod(getDeleteBackupMethod()) - .addMethod(getUpdateBackupMethod()) - .addMethod(getListSharesMethod()) - .addMethod(getGetShareMethod()) - .addMethod(getCreateShareMethod()) - .addMethod(getDeleteShareMethod()) - .addMethod(getUpdateShareMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java deleted file mode 100644 index 8b00f4c11630..000000000000 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/common/operation_metadata.proto - -package com.google.cloud.common; - -public final class OperationMetadataOuterClass { - private OperationMetadataOuterClass() {} - 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_common_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_common_OperationMetadata_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/common/operation_metadata" + - ".proto\022\023google.cloud.common\032\037google/api/" + - "field_behavior.proto\032\037google/protobuf/ti" + - "mestamp.proto\"\371\001\n\021OperationMetadata\0224\n\013c" + - "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + - "tampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pro" + - "tobuf.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\032\n\rstatus_detail\030\005 " + - "\001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022" + - "\030\n\013api_version\030\007 \001(\tB\003\340A\003BV\n\027com.google." + - "cloud.commonP\001Z9google.golang.org/genpro" + - "to/googleapis/cloud/common;commonb\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_common_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_common_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java deleted file mode 100644 index e2c7c65f79ee..000000000000 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java +++ /dev/null @@ -1,801 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public final class CloudFilestoreServiceProto { - private CloudFilestoreServiceProto() {} - 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_filestore_v1beta1_NetworkConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Share_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_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\"2/v" + - "1beta1/{parent=projects/*/locations/*}/i" + - "nstances:\010instance\332A\033parent,instance,ins" + - "tance_id\312A1\n\010Instance\022%google.cloud.comm" + - "on.OperationMetadata\022\201\002\n\016UpdateInstance\022" + - "5.google.cloud.filestore.v1beta1.UpdateI" + - "nstanceRequest\032\035.google.longrunning.Oper" + - "ation\"\230\001\202\323\344\223\002G2;/v1beta1/{instance.name=" + - "projects/*/locations/*/instances/*}:\010ins" + - "tance\332A\024instance,update_mask\312A1\n\010Instanc" + - "e\022%google.cloud.common.OperationMetadata" + - "\022\343\001\n\017RestoreInstance\0226.google.cloud.file" + - "store.v1beta1.RestoreInstanceRequest\032\035.g" + - "oogle.longrunning.Operation\"y\202\323\344\223\002?\":/v1" + - "beta1/{name=projects/*/locations/*/insta" + - "nces/*}:restore:\001*\312A1\n\010Instance\022%google." + - "cloud.common.OperationMetadata\022\340\001\n\016Rever" + - "tInstance\0225.google.cloud.filestore.v1bet" + - "a1.RevertInstanceRequest\032\035.google.longru" + - "nning.Operation\"x\202\323\344\223\002>\"9/v1beta1/{name=" + - "projects/*/locations/*/instances/*}:reve" + - "rt:\001*\312A1\n\010Instance\022%google.cloud.common." + - "OperationMetadata\022\353\001\n\016DeleteInstance\0225.g" + - "oogle.cloud.filestore.v1beta1.DeleteInst" + - "anceRequest\032\035.google.longrunning.Operati" + - "on\"\202\001\202\323\344\223\0024*2/v1beta1/{name=projects/*/l" + - "ocations/*/instances/*}\332A\004name\312A>\n\025googl" + - "e.protobuf.Empty\022%google.cloud.common.Op" + - "erationMetadata\022\315\001\n\rListSnapshots\0224.goog" + - "le.cloud.filestore.v1beta1.ListSnapshots" + - "Request\0325.google.cloud.filestore.v1beta1" + - ".ListSnapshotsResponse\"O\202\323\344\223\002@\022>/v1beta1" + - "/{parent=projects/*/locations/*/instance" + - "s/*}/snapshots\332A\006parent\022\272\001\n\013GetSnapshot\022" + - "2.google.cloud.filestore.v1beta1.GetSnap" + - "shotRequest\032(.google.cloud.filestore.v1b" + - "eta1.Snapshot\"M\202\323\344\223\002@\022>/v1beta1/{name=pr" + - "ojects/*/locations/*/instances/*/snapsho" + - "ts/*}\332A\004name\022\213\002\n\016CreateSnapshot\0225.google" + - ".cloud.filestore.v1beta1.CreateSnapshotR" + - "equest\032\035.google.longrunning.Operation\"\242\001" + - "\202\323\344\223\002J\">/v1beta1/{parent=projects/*/loca" + - "tions/*/instances/*}/snapshots:\010snapshot" + - "\332A\033parent,snapshot,snapshot_id\312A1\n\010Snaps" + - "hot\022%google.cloud.common.OperationMetada" + - "ta\022\367\001\n\016DeleteSnapshot\0225.google.cloud.fil" + - "estore.v1beta1.DeleteSnapshotRequest\032\035.g" + - "oogle.longrunning.Operation\"\216\001\202\323\344\223\002@*>/v" + - "1beta1/{name=projects/*/locations/*/inst" + - "ances/*/snapshots/*}\332A\004name\312A>\n\025google.p" + - "rotobuf.Empty\022%google.cloud.common.Opera" + - "tionMetadata\022\215\002\n\016UpdateSnapshot\0225.google" + - ".cloud.filestore.v1beta1.UpdateSnapshotR" + - "equest\032\035.google.longrunning.Operation\"\244\001" + - "\202\323\344\223\002S2G/v1beta1/{snapshot.name=projects" + - "/*/locations/*/instances/*/snapshots/*}:" + - "\010snapshot\332A\024snapshot,update_mask\312A1\n\010Sna" + - "pshot\022%google.cloud.common.OperationMeta" + - "data\022\271\001\n\013ListBackups\0222.google.cloud.file" + - "store.v1beta1.ListBackupsRequest\0323.googl" + - "e.cloud.filestore.v1beta1.ListBackupsRes" + - "ponse\"A\202\323\344\223\0022\0220/v1beta1/{parent=projects" + - "/*/locations/*}/backups\332A\006parent\022\246\001\n\tGet" + - "Backup\0220.google.cloud.filestore.v1beta1." + - "GetBackupRequest\032&.google.cloud.filestor" + - "e.v1beta1.Backup\"?\202\323\344\223\0022\0220/v1beta1/{name" + - "=projects/*/locations/*/backups/*}\332A\004nam" + - "e\022\361\001\n\014CreateBackup\0223.google.cloud.filest" + - "ore.v1beta1.CreateBackupRequest\032\035.google" + - ".longrunning.Operation\"\214\001\202\323\344\223\002:\"0/v1beta" + - "1/{parent=projects/*/locations/*}/backup" + - "s:\006backup\332A\027parent,backup,backup_id\312A/\n\006" + - "Backup\022%google.cloud.common.OperationMet" + - "adata\022\345\001\n\014DeleteBackup\0223.google.cloud.fi" + - "lestore.v1beta1.DeleteBackupRequest\032\035.go" + - "ogle.longrunning.Operation\"\200\001\202\323\344\223\0022*0/v1" + - "beta1/{name=projects/*/locations/*/backu" + - "ps/*}\332A\004name\312A>\n\025google.protobuf.Empty\022%" + - "google.cloud.common.OperationMetadata\022\363\001" + - "\n\014UpdateBackup\0223.google.cloud.filestore." + - "v1beta1.UpdateBackupRequest\032\035.google.lon" + - "grunning.Operation\"\216\001\202\323\344\223\002A27/v1beta1/{b" + - "ackup.name=projects/*/locations/*/backup" + - "s/*}:\006backup\332A\022backup,update_mask\312A/\n\006Ba" + - "ckup\022%google.cloud.common.OperationMetad" + - "ata\022\301\001\n\nListShares\0221.google.cloud.filest" + - "ore.v1beta1.ListSharesRequest\0322.google.c" + - "loud.filestore.v1beta1.ListSharesRespons" + - "e\"L\202\323\344\223\002=\022;/v1beta1/{parent=projects/*/l" + - "ocations/*/instances/*}/shares\332A\006parent\022" + - "\256\001\n\010GetShare\022/.google.cloud.filestore.v1" + - "beta1.GetShareRequest\032%.google.cloud.fil" + - "estore.v1beta1.Share\"J\202\323\344\223\002=\022;/v1beta1/{" + - "name=projects/*/locations/*/instances/*/" + - "shares/*}\332A\004name\022\366\001\n\013CreateShare\0222.googl" + - "e.cloud.filestore.v1beta1.CreateShareReq" + - "uest\032\035.google.longrunning.Operation\"\223\001\202\323" + - "\344\223\002D\";/v1beta1/{parent=projects/*/locati" + - "ons/*/instances/*}/shares:\005share\332A\025paren" + - "t,share,share_id\312A.\n\005Share\022%google.cloud" + - ".common.OperationMetadata\022\356\001\n\013DeleteShar" + - "e\0222.google.cloud.filestore.v1beta1.Delet" + - "eShareRequest\032\035.google.longrunning.Opera" + - "tion\"\213\001\202\323\344\223\002=*;/v1beta1/{name=projects/*" + - "/locations/*/instances/*/shares/*}\332A\004nam" + - "e\312A>\n\025google.protobuf.Empty\022%google.clou" + - "d.common.OperationMetadata\022\370\001\n\013UpdateSha" + - "re\0222.google.cloud.filestore.v1beta1.Upda" + - "teShareRequest\032\035.google.longrunning.Oper" + - "ation\"\225\001\202\323\344\223\002J2A/v1beta1/{share.name=pro" + - "jects/*/locations/*/instances/*/shares/*" + - "}:\005share\332A\021share,update_mask\312A.\n\005Share\022%" + - "google.cloud.common.OperationMetadata\032G\312" + - "A\023file.googleapis.com\322A.https://www.goog" + - "leapis.com/auth/cloud-platformB\315\001\n\"com.g" + - "oogle.cloud.filestore.v1beta1B\032CloudFile" + - "storeServiceProtoP\001ZGgoogle.golang.org/g" + - "enproto/googleapis/cloud/filestore/v1bet" + - "a1;filestore\252\002\036Google.Cloud.Filestore.V1" + - "Beta1\312\002\036Google\\Cloud\\Filestore\\V1beta1b\006" + - "proto3" - }; - 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.common.OperationMetadataOuterClass.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor, - new java.lang.String[] { "Network", "Modes", "ReservedIpRange", "IpAddresses", "ConnectMode", }); - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor, - new java.lang.String[] { "Name", "CapacityGb", "SourceBackup", "NfsExportOptions", "Source", }); - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor, - new java.lang.String[] { "IpRanges", "AccessMode", "SquashMode", "AnonUid", "AnonGid", }); - internal_static_google_cloud_filestore_v1beta1_Instance_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Instance_descriptor, - new java.lang.String[] { "Name", "Description", "State", "StatusMessage", "CreateTime", "Tier", "Labels", "FileShares", "Networks", "Etag", "SatisfiesPzs", "KmsKeyName", "SuspensionReasons", "MaxCapacityGb", "CapacityStepSizeGb", "MaxShareCount", "CapacityGb", "MultiShareEnabled", }); - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1beta1_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor, - new java.lang.String[] { "Parent", "InstanceId", "Instance", }); - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor, - new java.lang.String[] { "UpdateMask", "Instance", }); - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor, - new java.lang.String[] { "Name", "FileShare", "SourceSnapshot", "SourceBackup", "Source", }); - internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor, - new java.lang.String[] { "Name", "TargetSnapshotId", }); - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor, - new java.lang.String[] { "Name", "Force", }); - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor, - new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor, - new java.lang.String[] { "Name", "Description", "State", "CreateTime", "Labels", "FilesystemUsedBytes", }); - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor, - new java.lang.String[] { "Parent", "SnapshotId", "Snapshot", }); - internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor, - new java.lang.String[] { "UpdateMask", "Snapshot", }); - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor, - new java.lang.String[] { "Snapshots", "NextPageToken", }); - internal_static_google_cloud_filestore_v1beta1_Backup_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Backup_descriptor, - new java.lang.String[] { "Name", "Description", "State", "CreateTime", "Labels", "CapacityGb", "StorageBytes", "SourceInstance", "SourceFileShare", "SourceInstanceTier", "DownloadBytes", "SatisfiesPzs", "KmsKeyName", }); - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1beta1_Backup_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor, - new java.lang.String[] { "Parent", "Backup", "BackupId", }); - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor, - new java.lang.String[] { "Backup", "UpdateMask", }); - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor, - new java.lang.String[] { "Backups", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_filestore_v1beta1_Share_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Share_descriptor, - new java.lang.String[] { "Name", "MountName", "Description", "CapacityGb", "NfsExportOptions", "State", "CreateTime", "Labels", }); - internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1beta1_Share_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor, - new java.lang.String[] { "Parent", "ShareId", "Share", }); - internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); - internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor, - new java.lang.String[] { "Shares", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor, - new java.lang.String[] { "Share", "UpdateMask", }); - 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.resource); - 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.common.OperationMetadataOuterClass.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java deleted file mode 100644 index 46bf045c3ce5..000000000000 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface DeleteBackupRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_id}/locations/{location}/backups/{backup_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_id}/locations/{location}/backups/{backup_id}`
-   * 
- * - * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java deleted file mode 100644 index 567d5af85793..000000000000 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface DeleteShareRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteShareRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The share resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The share resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
-   * 
- * - * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java deleted file mode 100644 index cf7bb2e43c5b..000000000000 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface DeleteSnapshotRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The snapshot resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The snapshot resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
-   * 
- * - * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java deleted file mode 100644 index a64f2b9d2fdb..000000000000 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface GetBackupRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
-   * 
- * - * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java deleted file mode 100644 index 80e191742978..000000000000 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface GetInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
-   * 
- * - * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java deleted file mode 100644 index 00fd3ccd7c96..000000000000 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface GetShareRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetShareRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The share resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The share resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
-   * 
- * - * 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/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java deleted file mode 100644 index 44969c0e9600..000000000000 --- a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface GetSnapshotRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetSnapshotRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The snapshot resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The snapshot resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -}